feat: analog joystick/thumbstick as pointing device

This commit is contained in:
Orangerot 2025-07-20 11:57:34 +02:00
parent d6791790bc
commit 9ca1747162
2 changed files with 11 additions and 0 deletions

View 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}

View file

@ -0,0 +1,3 @@
POINTING_DEVICE_ENABLE = yes
POINTING_DEVICE_DRIVER = analog_joystick