aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/synthlabs
diff options
context:
space:
mode:
authorJoel Challis2025-11-11 23:00:28 +0100
committerGitHub2025-11-11 23:00:28 +0100
commit98504424b1748c6db4eb26fde2c45c8d76eec7b9 (patch)
tree73f4e4e7f0ef6dfb9288622fdeaaaaf3cb2ee13a /keyboards/synthlabs
parent8ec3de0f92219ee783425f406ff188597ec5e8c6 (diff)
Align use of keymap level `_kb` callbacks (#25774)
Diffstat (limited to 'keyboards/synthlabs')
-rw-r--r--keyboards/synthlabs/solo/keymaps/gamepad/keymap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/synthlabs/solo/keymaps/gamepad/keymap.c b/keyboards/synthlabs/solo/keymaps/gamepad/keymap.c
index 7bafe6b191..f21b7e3411 100644
--- a/keyboards/synthlabs/solo/keymaps/gamepad/keymap.c
+++ b/keyboards/synthlabs/solo/keymaps/gamepad/keymap.c
@@ -20,11 +20,11 @@ joystick_config_t joystick_axes[JOYSTICK_AXIS_COUNT] = {
[0] = JOYSTICK_AXIS_VIRTUAL
};
-bool encoder_update_kb(uint8_t index, bool clockwise) {
+bool encoder_update_user(uint8_t index, bool clockwise) {
joystick_position += (clockwise ? 2 : -2) * (full_joystick_value / pulses_per_revolution); // +2 and -2 are used, since +1.0 and -1.0 axis output refers to positions at half of a full rotation
joystick_set_axis(0, joystick_position);
- return true;
+ return false;
}
#endif