summaryrefslogtreecommitdiffstats
path: root/docs/feature_joystick.md
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-03-27 05:38:09 +1100
committerGitHub <noreply@github.com>2022-03-26 18:38:09 +0000
commitc05e8afe454bf3706d69314c251dc5266c557007 (patch)
tree604b8b446d111f9d5307888e9ea61acf8fada14d /docs/feature_joystick.md
parent71ffb41c9b7c87cbeb2b19bac058717436bcda23 (diff)
Joystick feature updates (#16732)
* Joystick feature updates * Move new functions to joystick.h * Docs
Diffstat (limited to 'docs/feature_joystick.md')
-rw-r--r--docs/feature_joystick.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/feature_joystick.md b/docs/feature_joystick.md
index fe33517a16..2635298587 100644
--- a/docs/feature_joystick.md
+++ b/docs/feature_joystick.md
@@ -150,3 +150,5 @@ Note that the supported AVR MCUs have a 10-bit ADC, and 12-bit for most STM32 MC
Joystick buttons are normal Quantum keycodes, defined as `JS_BUTTON0` to `JS_BUTTON31`, depending on the number of buttons you have configured.
To trigger a joystick button, just add the corresponding keycode to your keymap.
+
+You can also trigger joystick buttons in code with `register_joystick_button(button)` and `unregister_joystick_button(button)`, where `button` is the 0-based button index (0 = button 1).