diff options
Diffstat (limited to 'backends/platform/dc/input.cpp')
-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; |