feat: analog joystick/thumbstick as pointing device
This commit is contained in:
parent
d6791790bc
commit
9ca1747162
8
geeboard_firmware/config.h
Normal file
8
geeboard_firmware/config.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
#pragma once
|
||||
|
||||
#define ANALOG_JOYSTICK_X_AXIS_PIN GP28
|
||||
#define ANALOG_JOYSTICK_Y_AXIS_PIN GP29
|
||||
#define POINTING_DEVICE_INVERT_Y
|
||||
#define POINTING_DEVICE_INVERT_X
|
||||
#define ANALOG_JOYSTICK_WEIGHTS {0,0,0,0,0,0,0,0,0,0,0,15,15,16,17,18,18,19,19,20,20,21,21,21,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,25,25,25,26,26,26,27,28,28,29,29,30,31,32,33,34,35,36,37,38,40,41,43,44,46,48,49,51,53,56,58,60,62,65,68,70,73,76,79,82,85,89,92,96,100}
|
||||
|
3
geeboard_firmware/rules.mk
Normal file
3
geeboard_firmware/rules.mk
Normal file
|
@ -0,0 +1,3 @@
|
|||
POINTING_DEVICE_ENABLE = yes
|
||||
POINTING_DEVICE_DRIVER = analog_joystick
|
||||
|
Loading…
Reference in a new issue