M malay Newbie May 3, 2012 #1 How to know whether a particular key (ex-KEYCODE_Q) is pressed or not in android at any instant. Is there any API like(GetPressedState(int keycode))?? Thanks in advance MAlaya
How to know whether a particular key (ex-KEYCODE_Q) is pressed or not in android at any instant. Is there any API like(GetPressedState(int keycode))?? Thanks in advance MAlaya
W wubbzy Well-Known Member May 3, 2012 #2 keyDown/keyUp along with cousins onKeyDown etc. Bunch of links for you to read thru: View | Android Developers KeyEvent | Android Developers How to know whether a particular key (ex-KEYCODE_Q) is pressed or not in android at any instant. Click to expand... Does "any instant" mean even when your activity is not on the top?
keyDown/keyUp along with cousins onKeyDown etc. Bunch of links for you to read thru: View | Android Developers KeyEvent | Android Developers How to know whether a particular key (ex-KEYCODE_Q) is pressed or not in android at any instant. Click to expand... Does "any instant" mean even when your activity is not on the top?