diff options
author | Won Star | 2005-12-18 06:08:54 +0000 |
---|---|---|
committer | Won Star | 2005-12-18 06:08:54 +0000 |
commit | 17319d77cfccec4f12b15f05ce21b2c4958a89b7 (patch) | |
tree | 2ebea35061bbc11cda62fd21395df8e32f2d44a3 /backends | |
parent | 80182307c16fbb71f926059374bb435e5e366e94 (diff) | |
download | scummvm-rg350-17319d77cfccec4f12b15f05ce21b2c4958a89b7.tar.gz scummvm-rg350-17319d77cfccec4f12b15f05ce21b2c4958a89b7.tar.bz2 scummvm-rg350-17319d77cfccec4f12b15f05ce21b2c4958a89b7.zip |
More key mappings. Now we can play monkey2 :)
svn-id: r19803
Diffstat (limited to 'backends')
-rw-r--r-- | backends/gp32/gp32_osys.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/backends/gp32/gp32_osys.cpp b/backends/gp32/gp32_osys.cpp index f4a86635c8..bb4933c2c4 100644 --- a/backends/gp32/gp32_osys.cpp +++ b/backends/gp32/gp32_osys.cpp @@ -478,6 +478,11 @@ bool OSystem_GP32::pollEvent(Event &event) { event.kbd.keycode = event.kbd.ascii = 32; return true; } + if (ev.button == GPC_VK_FL) { + event.type = EVENT_KEYDOWN; + event.kbd.keycode = event.kbd.ascii = '0'; + return true; + } if (ev.button == GPC_VK_FR) { // R = ESC event.type = EVENT_KEYDOWN; event.kbd.keycode = event.kbd.ascii = 27; @@ -545,6 +550,11 @@ bool OSystem_GP32::pollEvent(Event &event) { event.kbd.keycode = event.kbd.ascii = 32; return true; } + if (ev.button == GPC_VK_FL) { + event.type = EVENT_KEYUP; + event.kbd.keycode = event.kbd.ascii = '0'; + return true; + } if (ev.button == GPC_VK_FR) { event.type = EVENT_KEYUP; event.kbd.keycode = event.kbd.ascii = 27; |