About intercepting keys

Monkey Targets Forums/Android/About intercepting keys

Vinians(Posted 2011) [#1]
The emulator is working correctly, although it is very slow. Well, I'm trying to move my pacman but I can not. In HTML5 I used the cursor keys, and I'm trying to JoyDown Android (JOY_LEFT) etc.. but not working. What do I do? Note the touch works normally.


therevills(Posted 2011) [#2]
Virtual Joystick?

http://www.monkeycoder.co.nz/Community/posts.php?topic=396


Vinians(Posted 2011) [#3]
@threvills sure its nice, but what I want is to intercept that key buttons that some smartphones have. If you see on the android device emulator it have arrow keys, how can I intercept them?


therevills(Posted 2011) [#4]
You will need to "hack" the mojo code to get to them, I found how to access the Search and Options buttons awhile ago:

http://www.monkeycoder.co.nz/Community/posts.php?topic=496#5130