diff options
author | Torbjörn Andersson | 2006-05-28 11:08:46 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-05-28 11:08:46 +0000 |
commit | db558e3d92465d889b193783640b5fdbe962af91 (patch) | |
tree | 72ac7b3573ffac793d975edb3c56a8ae4cdf0365 /engines | |
parent | b17f0e8b6d2073fa91bbd6096bad367531d18baa (diff) | |
download | scummvm-rg350-db558e3d92465d889b193783640b5fdbe962af91.tar.gz scummvm-rg350-db558e3d92465d889b193783640b5fdbe962af91.tar.bz2 scummvm-rg350-db558e3d92465d889b193783640b5fdbe962af91.zip |
Allow key pad navigation.
svn-id: r22706
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agi/agi.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp index 16aa3fa975..f3b016781b 100644 --- a/engines/agi/agi.cpp +++ b/engines/agi/agi.cpp @@ -131,29 +131,40 @@ static void process_events() { switch (key = event.kbd.keycode) { case 256 + 20: // left arrow + case 260: // key pad 4 key = KEY_LEFT; break; case 256 + 19: // right arrow + case 262: // key pad 6 key = KEY_RIGHT; break; case 256 + 17: // up arrow + case 264: // key pad 8 key = KEY_UP; break; case 256 + 18: // down arrow + case 258: // key pad 2 key = KEY_DOWN; break; case 256 + 24: // page up + case 265: // key pad 9 key = KEY_UP_RIGHT; break; case 256 + 25: // page down + case 259: // key pad 3 key = KEY_DOWN_RIGHT; break; case 256 + 22: // home + case 263: // key pad 7 key = KEY_UP_LEFT; break; case 256 + 23: // end + case 257: // key pad 1 key = KEY_DOWN_LEFT; break; + case 261: // key pad 5 + key = KEY_STATIONARY; + break; case '+': key = '+'; break; |