Quantcast
Viewing all articles
Browse latest Browse all 85594

Mapping joystick keycodes for android ?

On connecting Logitech ControllerF710 to an android device, KeyboardEvents in AS3 gives the following as keycode and keylocation-

Buttons                   keycode          keylocation

A,B,X                     16777238         0    

Y,LB,RB                 13                   4

 

The issue is that many buttons are giving the same keycodes. Is there a way to map these get different keycodes ?

Also any button with 16777238 , the android devices goes to home.

The similar issue is happening for any joystick.


Viewing all articles
Browse latest Browse all 85594

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>