From fb5446c71d77b07eeb9175a083a47bdbcb919c61 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Tue, 26 Jan 2016 00:35:41 -0800 Subject: [PATCH] The method didn't send key events, it handled them --- KeyboardioFirmware.h | 2 +- KeyboardioFirmware.ino | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/KeyboardioFirmware.h b/KeyboardioFirmware.h index 50ff53dd..4ac048d9 100644 --- a/KeyboardioFirmware.h +++ b/KeyboardioFirmware.h @@ -67,7 +67,7 @@ void set_keymap_keymap(Key keymapEntry, byte matrixStateEntry); // sending events to the computer void handle_synthetic_key_press(byte switchState, Key mappedKey); void send_key_events(); -void send_key_event(byte row, byte col); +void handle_key_event(byte row, byte col); void press_key(Key mappedKey); int setup_sx1509(sx1509Class sx1509, uint8_t colpins[], uint8_t rowpins[]); diff --git a/KeyboardioFirmware.ino b/KeyboardioFirmware.ino index e3728460..47890ef6 100644 --- a/KeyboardioFirmware.ino +++ b/KeyboardioFirmware.ino @@ -56,11 +56,11 @@ void scan_matrix() { matrixState[row][col] = implementation_scan_left_col(row,col,matrixState[row][col]); matrixState[row][(COLS - 1) - col] = implementation_scan_right_col(row,col,matrixState[row][(COLS - 1) - col]); - TS("calling send_key_event") - send_key_event(row, col); + TS("calling handle_key_event") + handle_key_event(row, col); if (implementation_right_hand_connected()) { - send_key_event(row, (COLS - 1) - col); + handle_key_event(row, (COLS - 1) - col); } } TS("clearing output pins") @@ -144,7 +144,7 @@ void handle_synthetic_key_press(byte switchState, Key mappedKey) { } } -void send_key_event(byte row, byte col) { +void handle_key_event(byte row, byte col) { //for every newly pressed button, figure out what logical key it is and send a key down event // for every newly released button, figure out what logical key it is and send a key up event