ConsumerControl: allow 10-bit keycodes

In ConsumerControlWrapper, accept a 10-bit value for the keycode.
Use uint16_t since that is the type KeyboardioHID uses.

Signed-off-by: Chris White <cxwembedded@gmail.com>
pull/831/head
Chris White 5 years ago
parent bcff3b97fb
commit 429059139e

@ -140,10 +140,10 @@ class ConsumerControlWrapper {
ConsumerControl.releaseAll(); ConsumerControl.releaseAll();
} }
void press(uint8_t code) { void press(uint16_t code) {
ConsumerControl.press(code); ConsumerControl.press(code);
} }
void release(uint8_t code) { void release(uint16_t code) {
ConsumerControl.release(code); ConsumerControl.release(code);
} }
}; };

Loading…
Cancel
Save