projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make Bluetooth signalling handler routines use the generic Bluetooth_SendPacket(...
[pub/USBasp.git]
/
Demos
/
Device
/
ClassDriver
/
VirtualSerialMouse
/
VirtualSerialMouse.c
diff --git
a/Demos/Device/ClassDriver/VirtualSerialMouse/VirtualSerialMouse.c
b/Demos/Device/ClassDriver/VirtualSerialMouse/VirtualSerialMouse.c
index
87b149b
..
e7c899b
100644
(file)
--- a/
Demos/Device/ClassDriver/VirtualSerialMouse/VirtualSerialMouse.c
+++ b/
Demos/Device/ClassDriver/VirtualSerialMouse/VirtualSerialMouse.c
@@
-71,7
+71,7
@@
USB_ClassInfo_HID_Device_t Mouse_HID_Interface =
{
\r
.Config =
\r
{
\r
{
\r
.Config =
\r
{
\r
- .InterfaceNumber =
0
,
\r
+ .InterfaceNumber =
2
,
\r
\r
.ReportINEndpointNumber = MOUSE_EPNUM,
\r
.ReportINEndpointSize = MOUSE_EPSIZE,
\r
\r
.ReportINEndpointNumber = MOUSE_EPNUM,
\r
.ReportINEndpointSize = MOUSE_EPSIZE,
\r
@@
-217,7
+217,7
@@
bool CALLBACK_HID_Device_CreateHIDReport(USB_ClassInfo_HID_Device_t* const HIDIn
MouseReport->X = 1;
\r
\r
if (JoyStatus_LCL & JOY_PRESS)
\r
MouseReport->X = 1;
\r
\r
if (JoyStatus_LCL & JOY_PRESS)
\r
- MouseReport->Button
= (1 << 0);
\r
+ MouseReport->Button
|
= (1 << 0);
\r
\r
if (ButtonStatus_LCL & BUTTONS_BUTTON1)
\r
MouseReport->Button |= (1 << 1);
\r
\r
if (ButtonStatus_LCL & BUTTONS_BUTTON1)
\r
MouseReport->Button |= (1 << 1);
\r