Fixed EsploraKart example.........

This commit is contained in:
Cristian Maglie 2012-12-07 18:49:05 +01:00
parent b32ed2d450
commit 2752b408b8
1 changed files with 3 additions and 3 deletions

View File

@ -102,15 +102,15 @@ void loop() {
linked to the buttons we're handling.
*/
if (newState == PRESSED) {
Keyboard.press(keystrokes[i]);
Keyboard.press(keystrokes[thisButton]);
}
else if (newState == RELEASED) {
Keyboard.release(keystrokes[i]);
Keyboard.release(keystrokes[thisButton]);
}
}
// Store the new button state, so you can sense a difference later:
buttonStates[i] = newState;
buttonStates[thisButton] = newState;
}
/*