1404 | | switch(args[1]) { |
1405 | | // Stub out a few specific cases, just to make things less noisy |
1406 | | |
1407 | | // To actually implement this, we may need a new OSystem call to do |
1408 | | // asyncronous keyboard state checking... |
1409 | | case 0x14B: // Left Arrow depressed? |
1410 | | case 0x14D: // Right Arrow depressed? |
1411 | | case 0x09: // Tab depressed (fire in ship combat) |
1412 | | push(0); |
1413 | | break; |
1414 | | default: |
1415 | | warning("getKeyState(0x%X)", args[1]); |
1416 | | push(0); |
1417 | | break; |
1418 | | } |
| 1404 | push(getKeyState(args[1])); |