Align use of keymap level _kb callbacks (#25774)
This commit is contained in:
parent
8ec3de0f92
commit
98504424b1
13 changed files with 46 additions and 80 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue