aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/synthlabs/solo/keymaps/gamepad/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/synthlabs/solo/keymaps/gamepad/keymap.c')
-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