fix mid button and struct

This commit is contained in:
Andrew J. Kroll 2013-12-25 05:24:59 -05:00
parent f1af9b08ec
commit d29a00d761
3 changed files with 3 additions and 3 deletions

View file

@ -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 {

View file

@ -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;

View file

@ -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.