Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:universal_motion_joypad:btnmap [2016/01/12 15:57] john1117 created |
en:universal_motion_joypad:btnmap [2016/01/13 08:55] (current) john1117 |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Button mappings ====== | ====== Button mappings ====== | ||
- | {{:en:universal_motion_joypad:btnmappingtable.png?300|}} | + | {{:en:universal_motion_joypad:btnmappingtable.png?500|}} |
- | 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 | + | 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 | ||
+ | |||
+ | <WRAP center round important 100%> | ||
+ | **The X-Y coordinates of the touchscreen are tuned for an HDMI screen resolution of 1280x720.**\\ | ||
+ | **If you are using a different resolution such as 1920x1080,the coordinates must be changed.**\\ | ||
+ | </WRAP> | ||
+ | |||
+ | You can obtain the coordinates for a touch input by enabling the “Settings” -> “Developer options” -> “Pointer location” setting on Android. | ||
+ | |||
+ | {{:en:universal_motion_joypad:pointer_location.png?500|}} |