mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Add input_info app to discover buttons src numbers, add '-d' parameter to dynamically (during use) compute calibration value so that events are reported in the range -32767 to 32767
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
#!/bin/busybox sh
|
||||
loadmap /mnt/joymap.map -b
|
||||
loadmap /mnt/joymap.map -d -b
|
@@ -1,15 +1,13 @@
|
||||
#Microsoft X-Box One S pad
|
||||
button vendor=0x045e product=0x2ea src=16 target=kbd button="leftalt"
|
||||
button vendor=0x045e product=0x2ea src=17 target=kbd button="leftctrl"
|
||||
button vendor=0x045e product=0x2ea src=18 target=kbd button=""
|
||||
button vendor=0x045e product=0x2ea src=19 target=kbd button="leftshift"
|
||||
button vendor=0x045e product=0x2ea src=20 target=kbd button="space"
|
||||
button vendor=0x045e product=0x2ea src=21 target=kbd button=""
|
||||
button vendor=0x045e product=0x2ea src=22 target=kbd button="tab"
|
||||
button vendor=0x045e product=0x2ea src=23 target=kbd button="backspace"
|
||||
button vendor=0x045e product=0x2ea src=24 target=kbd button="rightalt"
|
||||
button vendor=0x045e product=0x2ea src=25 target=kbd button="rightshift"
|
||||
button vendor=0x045e product=0x2ea src=26 target=kbd button="esc"
|
||||
|
||||
|
||||
button vendor=0x045e product=0x2ea src=27 target=kbd button="enter"
|
||||
axis vendor=0x045e product=0x2ea src=16 target=kbd plus="right" minus="left" flags=trinary
|
||||
axis vendor=0x045e product=0x2ea src=17 target=kbd plus="down" minus="up" flags=trinary
|
||||
|
@@ -3,10 +3,12 @@ JOYMAP_SITE_METHOD = git
|
||||
JOYMAP_SITE = https://git.code.sf.net/p/linuxjoymap/git
|
||||
define JOYMAP_BUILD_CMDS
|
||||
$(MAKE) CC="$(TARGET_CC)" CXX="$(TARGET_CXX)" LD="$(TARGET_LD)" -C $(@D) -f Makefile
|
||||
"$(TARGET_CC)" $(@D)/tools/input_info.c -o $(@D)/tools/input_info
|
||||
endef
|
||||
|
||||
define JOYMAP_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D -m 0755 $(@D)/loadmap $(TARGET_DIR)/usr/bin
|
||||
$(INSTALL) -D -m 0755 $(@D)/tools/input_info $(TARGET_DIR)/usr/bin
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
Reference in New Issue
Block a user