fixups from teh big refactor

pull/18/head
Jesse Vincent 10 years ago
parent 823cd38333
commit 34a2f989c7

@ -33,6 +33,8 @@ void setup();
//extern int usbMaxPower; //extern int usbMaxPower;
#define DEBUG_SERIAL 0 #define DEBUG_SERIAL 0
char x;
char y;
byte matrixState[ROWS][COLS]; byte matrixState[ROWS][COLS];

@ -77,6 +77,8 @@ void set_keymap(Key keymapEntry, byte matrixStateEntry) {
void scan_matrix() void scan_matrix()
{ {
x=0;
y=0;
//scan the Keyboard matrix looking for connections //scan the Keyboard matrix looking for connections
for (byte row = 0; row < LEFT_ROWS; row++) { for (byte row = 0; row < LEFT_ROWS; row++) {
TS("Scanning row ") TS("Scanning row ")
@ -143,6 +145,7 @@ void scan_matrix()
Keyboard.sendCurrentReport(); Keyboard.sendCurrentReport();
TS("clearing internal key report") TS("clearing internal key report")
reset_key_report(); reset_key_report();
handle_mouse_movement(x, y);
} }
// Command mode // Command mode
@ -471,6 +474,7 @@ void send_key_event(byte row, byte col)
} }
} }
}
} }
void press_key(Key mappedKey) { void press_key(Key mappedKey) {

Loading…
Cancel
Save