aboutsummaryrefslogtreecommitdiff
path: root/docs/feature_joystick.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/feature_joystick.md')
-rw-r--r--docs/feature_joystick.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/feature_joystick.md b/docs/feature_joystick.md
index be3c781f6..12bbf5b35 100644
--- a/docs/feature_joystick.md
+++ b/docs/feature_joystick.md
@@ -141,6 +141,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
141} 141}
142``` 142```
143 143
144### Axis Resolution
145
146By default, the resolution of each axis is 8 bit, giving a range of -127 to +127. If you need higher precision, you can increase it by defining eg. `JOYSTICK_AXES_RESOLUTION 12` in your `config.h`. The resolution must be between 8 and 16.
147
148Note that the supported AVR MCUs have a 10-bit ADC, and 12-bit for most STM32 MCUs.
149
144### Triggering Joystick Buttons 150### Triggering Joystick Buttons
145 151
146Joystick buttons are normal Quantum keycodes, defined as `JS_BUTTON0` to `JS_BUTTON31`, depending on the number of buttons you have configured. 152Joystick buttons are normal Quantum keycodes, defined as `JS_BUTTON0` to `JS_BUTTON31`, depending on the number of buttons you have configured.