Merge pull request #308 from algernon/f/handleKeyswitchEvent/idle-docs

handleKeyswitchEvent: Document the behaviour for idle keys
pull/276/merge
Jesse Vincent 7 years ago committed by GitHub
commit 8dcc6d12c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -17,8 +17,10 @@ extern const Key keymaps[][ROWS][COLS];
// sending events to the computer // sending events to the computer
/* The event handling starts with the Scanner calling handleKeyswitchEvent() for /* The event handling starts with the Scanner calling handleKeyswitchEvent() for
* every key in the matrix, and it is the task of this method to figure out what * every non-idle key in the matrix, and it is the task of this method to figure
* to do, it is the main entry point. * out what to do, it is the main entry point. Keys that were off in the
* previous scan cycle, and are still off now, are considered idle, and
* handleKeyswitchEvent() is *not* called on them.
* *
* This function will iterate through an array of handler functions, and stop as * This function will iterate through an array of handler functions, and stop as
* soon as one of them signals that the event has been handled. To make it * soon as one of them signals that the event has been handled. To make it
@ -45,4 +47,3 @@ extern const Key keymaps[][ROWS][COLS];
* injected, and is not a direct result of a keypress, coming from the scanner. * injected, and is not a direct result of a keypress, coming from the scanner.
*/ */
void handleKeyswitchEvent(Key mappedKey, byte row, byte col, uint8_t keyState); void handleKeyswitchEvent(Key mappedKey, byte row, byte col, uint8_t keyState);

Loading…
Cancel
Save