diff options
author | Marcus Comstedt | 2007-09-19 19:28:05 +0000 |
---|---|---|
committer | Marcus Comstedt | 2007-09-19 19:28:05 +0000 |
commit | 14efdd187345706df854ddad7c58a06433efa8e5 (patch) | |
tree | 4cf9641c430fc3b4ad59897ca677e17bcb4b984c /backends | |
parent | 7668ac231fa3f2db6b72b5913f42cf5f213f476c (diff) | |
download | scummvm-rg350-14efdd187345706df854ddad7c58a06433efa8e5.tar.gz scummvm-rg350-14efdd187345706df854ddad7c58a06433efa8e5.tar.bz2 scummvm-rg350-14efdd187345706df854ddad7c58a06433efa8e5.zip |
Fixed fallout from keycode being made an enum.
svn-id: r28970
Diffstat (limited to 'backends')
-rw-r--r-- | backends/platform/dc/input.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backends/platform/dc/input.cpp b/backends/platform/dc/input.cpp index be2ac2f178..1b85f601a6 100644 --- a/backends/platform/dc/input.cpp +++ b/backends/platform/dc/input.cpp @@ -218,7 +218,8 @@ bool OSystem_Dreamcast::pollEvent(Common::Event &event) event.mouse.x -= _overlay_x; event.mouse.y -= _overlay_y; } - event.kbd.ascii = event.kbd.keycode = 0; + event.kbd.ascii = 0; + event.kbd.keycode = Common::KEYCODE_INVALID; if (e<0) { event.type = (Common::EventType)-e; return true; @@ -227,7 +228,7 @@ bool OSystem_Dreamcast::pollEvent(Common::Event &event) e &= ~(1<<30); if (e < 1000) { event.type = (down? Common::EVENT_KEYDOWN : Common::EVENT_KEYUP); - event.kbd.keycode = e; + event.kbd.keycode = (Common::KeyCode)e; event.kbd.ascii = (e>='a' && e<='z' && (event.kbd.flags & Common::KBD_SHIFT)? e &~ 0x20 : e); processed = true; |