We're no longer updating This wiki!!

This is an old revision of the document!


Button mappings

The mapping of the keypad’s operation can be set by using the “button_map” boot argument. The key label’s number is used as the first parameter. The second parameter specifies the operation, with the third and fourth parameters setting the corresponding values of the operation. The buttons can also be mapped to mouse functionality or touchscreen points instead of normal key inputs.

button_map=[KEY] : [type] : [value1] : [value2]

For example, to map the KEY0 input to a mouse left click and the KEY1 to a touching coordinates x=200, y=200, the parameters would be:

button_map=0:M:l,1:T:1200:200

You can obtain the coordinates for a touch input by enabling the “Settings” → “Developer options” → “Pointer location” setting on Android.

en/universal_motion_joypad/btnmap.1452584068.txt.gz · Last modified: 2016/01/12 16:04 by john1117
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0