Fix up via keymap builds. (#20383)
* Fix up via keymap builds. - Usages of old IS_PRESSED. * Fix up bad code. * Fix up bad code.
This commit is contained in:
@@ -59,13 +59,13 @@ keyevent_t encoder_cw = {
|
||||
};
|
||||
|
||||
void matrix_scan_user(void) {
|
||||
if (IS_PRESSED(encoder_ccw)) {
|
||||
if (encoder_ccw.pressed) {
|
||||
encoder_ccw.pressed = false;
|
||||
encoder_ccw.time = timer_read();
|
||||
action_exec(encoder_ccw);
|
||||
}
|
||||
|
||||
if (IS_PRESSED(encoder_cw)) {
|
||||
if (encoder_cw.pressed) {
|
||||
encoder_cw.pressed = false;
|
||||
encoder_cw.time = timer_read();
|
||||
action_exec(encoder_cw);
|
||||
|
@@ -65,13 +65,13 @@ keyevent_t encoder_cw = {
|
||||
};
|
||||
|
||||
void matrix_scan_user(void) {
|
||||
if (IS_PRESSED(encoder_ccw)) {
|
||||
if (encoder_ccw.pressed) {
|
||||
encoder_ccw.pressed = false;
|
||||
encoder_ccw.time = timer_read();
|
||||
action_exec(encoder_ccw);
|
||||
}
|
||||
|
||||
if (IS_PRESSED(encoder_cw)) {
|
||||
if (encoder_cw.pressed) {
|
||||
encoder_cw.pressed = false;
|
||||
encoder_cw.time = timer_read();
|
||||
action_exec(encoder_cw);
|
||||
|
@@ -40,13 +40,13 @@ keyevent_t encoder_cw = {
|
||||
};
|
||||
|
||||
void matrix_scan_user(void) {
|
||||
if (IS_PRESSED(encoder_ccw)) {
|
||||
if (encoder_ccw.pressed) {
|
||||
encoder_ccw.pressed = false;
|
||||
encoder_ccw.time = timer_read();
|
||||
action_exec(encoder_ccw);
|
||||
}
|
||||
|
||||
if (IS_PRESSED(encoder_cw)) {
|
||||
if (encoder_cw.pressed) {
|
||||
encoder_cw.pressed = false;
|
||||
encoder_cw.time = timer_read();
|
||||
action_exec(encoder_cw);
|
||||
|
@@ -48,13 +48,13 @@ keyevent_t encoder_cw = {
|
||||
};
|
||||
|
||||
void matrix_scan_user(void) {
|
||||
if (IS_PRESSED(encoder_ccw)) {
|
||||
if (encoder_ccw.pressed) {
|
||||
encoder_ccw.pressed = false;
|
||||
encoder_ccw.time = timer_read();
|
||||
action_exec(encoder_ccw);
|
||||
}
|
||||
|
||||
if (IS_PRESSED(encoder_cw)) {
|
||||
if (encoder_cw.pressed) {
|
||||
encoder_cw.pressed = false;
|
||||
encoder_cw.time = timer_read();
|
||||
action_exec(encoder_cw);
|
||||
|
Reference in New Issue
Block a user