comment updated in function encoder_update_user

This commit is contained in:
keyaki-namiki 2020-08-20 12:40:17 +09:00
parent 9b2639b302
commit f19e9311b4
3 changed files with 6 additions and 6 deletions

View File

@ -128,13 +128,13 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
static bool mode_windows = false; static bool mode_windows = false;
void encoder_update_user(uint8_t index, bool clockwise) { void encoder_update_user(uint8_t index, bool clockwise) {
if (index == 0) { /* Master side encoder */ if (index == 0) { /* Left side encoder */
if (clockwise) { if (clockwise) {
tap_code(KC_PGDN); tap_code(KC_PGDN);
} else { } else {
tap_code(KC_PGUP); tap_code(KC_PGUP);
} }
} else if (index == 1) { /* Slave side encoder */ } else if (index == 1) { /* Right side encoder */
if (clockwise) { if (clockwise) {
tap_code(KC_DOWN); tap_code(KC_DOWN);
} else { } else {

View File

@ -118,13 +118,13 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
static bool mode_windows = false; static bool mode_windows = false;
void encoder_update_user(uint8_t index, bool clockwise) { void encoder_update_user(uint8_t index, bool clockwise) {
if (index == 0) { /* Master side encoder */ if (index == 0) { /* Left side encoder */
if (clockwise) { if (clockwise) {
tap_code(KC_PGDN); tap_code(KC_PGDN);
} else { } else {
tap_code(KC_PGUP); tap_code(KC_PGUP);
} }
} else if (index == 1) { /* Slave side encoder */ } else if (index == 1) { /* Right side encoder */
if (clockwise) { if (clockwise) {
tap_code(KC_DOWN); tap_code(KC_DOWN);
} else { } else {

View File

@ -128,13 +128,13 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
static bool mode_windows = false; static bool mode_windows = false;
void encoder_update_user(uint8_t index, bool clockwise) { void encoder_update_user(uint8_t index, bool clockwise) {
if (index == 0) { /* Master side encoder */ if (index == 0) { /* Left side encoder */
if (clockwise) { if (clockwise) {
tap_code(KC_PGDN); tap_code(KC_PGDN);
} else { } else {
tap_code(KC_PGUP); tap_code(KC_PGUP);
} }
} else if (index == 1) { /* Slave side encoder */ } else if (index == 1) { /* Right side encoder */
if (clockwise) { if (clockwise) {
tap_code(KC_DOWN); tap_code(KC_DOWN);
} else { } else {