mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
fix mid button and struct
This commit is contained in:
parent
f1af9b08ec
commit
d29a00d761
3 changed files with 3 additions and 3 deletions
|
@ -85,7 +85,7 @@ void MouseReportParser::Parse(HID *hid, bool is_rpt_id, uint8_t len, uint8_t *bu
|
||||||
// event = true;
|
// event = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(prevState.mouseInfo.bmMiddleButton != prevState.mouseInfo.bmMiddleButton) {
|
if(prevState.mouseInfo.bmMiddleButton != pmi->bmMiddleButton) {
|
||||||
if(pmi->bmMiddleButton) {
|
if(pmi->bmMiddleButton) {
|
||||||
OnMiddleButtonDown(pmi);
|
OnMiddleButtonDown(pmi);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -42,7 +42,7 @@ struct MOUSEINFO {
|
||||||
uint8_t bmLeftButton : 1;
|
uint8_t bmLeftButton : 1;
|
||||||
uint8_t bmRightButton : 1;
|
uint8_t bmRightButton : 1;
|
||||||
uint8_t bmMiddleButton : 1;
|
uint8_t bmMiddleButton : 1;
|
||||||
uint8_t bmDummy : 1;
|
uint8_t bmDummy : 5;
|
||||||
};
|
};
|
||||||
int8_t dX;
|
int8_t dX;
|
||||||
int8_t dY;
|
int8_t dY;
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
/* Set this to 1 to activate serial debugging */
|
/* Set this to 1 to activate serial debugging */
|
||||||
#define ENABLE_UHS_DEBUGGING 0
|
#define ENABLE_UHS_DEBUGGING 1
|
||||||
|
|
||||||
/* This can be used to select which serial port to use for debugging if
|
/* This can be used to select which serial port to use for debugging if
|
||||||
* multiple serial ports are available.
|
* multiple serial ports are available.
|
||||||
|
|
Loading…
Reference in a new issue