Added PS/2 multimeda key support.
HID Consumer page and System control are also supported now. merged mediakey branch: d53a356cd2011b461843a5c7c1527a61692893c1
This commit is contained in:
parent
af85b6bba6
commit
6d45e05ede
10 changed files with 447 additions and 350 deletions
10
pjrc/host.c
10
pjrc/host.c
|
|
@ -117,14 +117,18 @@ void host_mouse_send(report_mouse_t *report)
|
|||
#endif
|
||||
|
||||
#ifdef USB_EXTRA_ENABLE
|
||||
void host_system_send(uint8_t data)
|
||||
void host_system_send(uint16_t data)
|
||||
{
|
||||
usb_extra_system_send(data);
|
||||
}
|
||||
|
||||
void host_audio_send(uint8_t data)
|
||||
void host_consumer_send(uint16_t data)
|
||||
{
|
||||
usb_extra_audio_send(data);
|
||||
static uint16_t last_data = 0;
|
||||
if (data == last_data) return;
|
||||
last_data = data;
|
||||
|
||||
usb_extra_consumer_send(data);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue