XverhelstX Well-Known Member Licensed User Longtime User Sep 17, 2011 #1 Hey guys, I'm just wondering, is there anything available to work with the Trackball in Basic4Android? like the keycodes? This is a trackball: http://www.eurodroid.com/pics/nexus_one_trackball_mod.jpg If not, I could try and make out a library for it as I need it for my app though. Does someone knows a link/tutorial to the trackball movement, etc. Thanks, XverhelstX
Hey guys, I'm just wondering, is there anything available to work with the Trackball in Basic4Android? like the keycodes? This is a trackball: http://www.eurodroid.com/pics/nexus_one_trackball_mod.jpg If not, I could try and make out a library for it as I need it for my app though. Does someone knows a link/tutorial to the trackball movement, etc. Thanks, XverhelstX
Erel B4X founder Staff member Licensed User Longtime User Sep 18, 2011 #2 Activity_KeyPress should handle the trackball events. It should send KEYCODE_DPAD_DOWN / UP/ ... codes. Upvote 0
Activity_KeyPress should handle the trackball events. It should send KEYCODE_DPAD_DOWN / UP/ ... codes.
XverhelstX Well-Known Member Licensed User Longtime User Sep 18, 2011 #3 Okay, great! Thanks Erel. Is there also any keycode for the 2 Xperia PLAY joysticks? Thanks, XverhelstX Upvote 0
Okay, great! Thanks Erel. Is there also any keycode for the 2 Xperia PLAY joysticks? Thanks, XverhelstX
Erel B4X founder Staff member Licensed User Longtime User Sep 18, 2011 #4 I think that they are mapped to the regular arrow keys. You can log the keycodes and compare them to this list: KeyEvent | Android Developers It is the same codes as used by B4A. Upvote 0
I think that they are mapped to the regular arrow keys. You can log the keycodes and compare them to this list: KeyEvent | Android Developers It is the same codes as used by B4A.
NeoTechni Well-Known Member Licensed User Longtime User Sep 18, 2011 #5 XverhelstX said: Okay, great! Thanks Erel. Is there also any keycode for the 2 Xperia PLAY joysticks? Thanks, XverhelstX Click to expand... No. Those are only accessible via the NDK/C++, and I think B4A is layered on top of java. It might be possible for a plugin made in the NDK itself to do it though. Upvote 0
XverhelstX said: Okay, great! Thanks Erel. Is there also any keycode for the 2 Xperia PLAY joysticks? Thanks, XverhelstX Click to expand... No. Those are only accessible via the NDK/C++, and I think B4A is layered on top of java. It might be possible for a plugin made in the NDK itself to do it though.