how to read Phone buttons?

Monkey Targets Forums/Android/how to read Phone buttons?

visionastral(Posted 2012) [#1]
Hello, I have a noob question for android:
How can I check if the user has pressed the "option", "search" or "volume up" / "volume down" buttons of the phone?
I do know KEY_ESCAPE = Back Button, but I have been looking around in the docs and didnt' find anything for the rest of the buttons.

can someone enlighten me? :)


AdamRedwoods(Posted 2012) [#2]
i thought diddy might have it, but does not. therefore, you need to hack mojo:

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


therevills(Posted 2012) [#3]
i thought diddy might have it, but does not.


Correct, its not in Diddy - its would be next impossible to add externally from mojo (only if you did your own Android target)...


visionastral(Posted 2012) [#4]
ok... I should had supposed it wouldn't be that easy... Anyway, it's not worth the pain. Thank you for the info!


Soap(Posted 2012) [#5]
Is there any good reason why this hasn't been added to Monkey properly? :\


DPbrad(Posted 2012) [#6]
Yeah, I would really like this functionality added too...