mirror of
https://github.com/gdsports/USBHost_t36
synced 2024-11-21 08:35:03 -05:00
Remove const from keyboard HID report so remapper works
This ensures the state of the keyboard is correct after remapping keys.
This commit is contained in:
parent
44949b0bed
commit
0c36ca6a4d
@ -710,7 +710,7 @@ public:
|
|||||||
void attachPressRaw(void (*f)(uint8_t oem_key, uint8_t mod)) { keyPressedRawFunction = f; }
|
void attachPressRaw(void (*f)(uint8_t oem_key, uint8_t mod)) { keyPressedRawFunction = f; }
|
||||||
void attachReleaseRaw(void (*f)(uint8_t oem_key, uint8_t mod)) { keyReleasedRawFunction = f; }
|
void attachReleaseRaw(void (*f)(uint8_t oem_key, uint8_t mod)) { keyReleasedRawFunction = f; }
|
||||||
void attachModifiersChange(void (*f) (uint8_t modifierState)) {modifiersChangedFunction = f; }
|
void attachModifiersChange(void (*f) (uint8_t modifierState)) {modifiersChangedFunction = f; }
|
||||||
void attachReportReader(void (*f)(const uint8_t report[8])) {reportReaderFunction = f; }
|
void attachReportReader(void (*f)(uint8_t report[8])) {reportReaderFunction = f; }
|
||||||
void LEDS(uint8_t leds);
|
void LEDS(uint8_t leds);
|
||||||
uint8_t LEDS() {return leds_.byte;}
|
uint8_t LEDS() {return leds_.byte;}
|
||||||
void updateLEDS(void);
|
void updateLEDS(void);
|
||||||
@ -752,7 +752,7 @@ private:
|
|||||||
void (*keyPressedRawFunction)(uint8_t oem_key, uint8_t mod);
|
void (*keyPressedRawFunction)(uint8_t oem_key, uint8_t mod);
|
||||||
void (*keyReleasedRawFunction)(uint8_t oem_key, uint8_t mod);
|
void (*keyReleasedRawFunction)(uint8_t oem_key, uint8_t mod);
|
||||||
void (*modifiersChangedFunction)(uint8_t modifierState);
|
void (*modifiersChangedFunction)(uint8_t modifierState);
|
||||||
void (*reportReaderFunction)(const uint8_t report[8]);
|
void (*reportReaderFunction)(uint8_t report[8]);
|
||||||
Pipe_t *datapipe;
|
Pipe_t *datapipe;
|
||||||
setup_t setup;
|
setup_t setup;
|
||||||
uint8_t report[8];
|
uint8_t report[8];
|
||||||
|
Loading…
Reference in New Issue
Block a user