mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-25 04:43:02 +00:00
adjust
This commit is contained in:
parent
d856718821
commit
b16bf7e0f5
@ -358,11 +358,9 @@ void reset_joystick_key(void) {
|
|||||||
|
|
||||||
void press_joystick_key(int8_t column) {
|
void press_joystick_key(int8_t column) {
|
||||||
|
|
||||||
// if (joystick_key_column != -1 || timer_elapsed(joystick_key_timer) < 200) {
|
joystick_key_timer = timer_read();
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
|
|
||||||
if (joystick_key_column == column || timer_elapsed(joystick_key_timer) < 200) {
|
if (joystick_key_column == column /* || timer_elapsed(joystick_key_timer) < 200*/) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -397,7 +395,7 @@ report_mouse_t pointing_device_task_kb(report_mouse_t mouse_report) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (timer_elapsed(joystick_key_timer) > 50) {
|
if (timer_elapsed(joystick_key_timer) > 100) {
|
||||||
reset_joystick_key();
|
reset_joystick_key();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user