diff options
author | root <root@lab2.panaceas.james.local> | 2014-11-02 15:16:42 +0000 |
---|---|---|
committer | root <root@lab2.panaceas.james.local> | 2014-11-02 15:16:42 +0000 |
commit | 479e719a64d75374f00438498cf91ba2601a63f1 (patch) | |
tree | 6f2164598cbe9c78396060dc45f5307172d36a0c /src/mouse.c | |
parent | 87e61d21e5ce588c9701d92def188fa97674c3cd (diff) | |
download | stm32_usb_kvm-479e719a64d75374f00438498cf91ba2601a63f1.tar.gz stm32_usb_kvm-479e719a64d75374f00438498cf91ba2601a63f1.tar.bz2 stm32_usb_kvm-479e719a64d75374f00438498cf91ba2601a63f1.zip |
fish
Diffstat (limited to 'src/mouse.c')
-rw-r--r-- | src/mouse.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mouse.c b/src/mouse.c index acb4166..6e0a207 100644 --- a/src/mouse.c +++ b/src/mouse.c @@ -88,7 +88,8 @@ const struct usb_interface_descriptor mouse_iface = { }; -void mouse_get_descriptor(uint8_t **buf,uint16_t *len) +void +mouse_get_descriptor (uint8_t ** buf, uint16_t * len) { /* Handle the HID report descriptor. */ @@ -104,9 +105,9 @@ mouse_test (void) buf[0] = c & 7; - buf[1] = c &8 ? -1:1; - buf[2] = c &16 ? -1:1; - buf[3] = c &32 ? -1:1; + buf[1] = c & 8 ? -1 : 1; + buf[2] = c & 16 ? -1 : 1; + buf[3] = c & 32 ? -1 : 1; c++; |