Print button states to Serial Console
This commit is contained in:
parent
a9377f1639
commit
1578b73324
@ -48,31 +48,38 @@ class MouseRptParser : public MouseReportParser
|
||||
|
||||
void MouseRptParser::OnRightButtonUp (MOUSEINFO *mi)
|
||||
{
|
||||
Serial.println("BTN-R: UP");
|
||||
digitalWrite(PIN_MOUSE_RBTN, HIGH);
|
||||
};
|
||||
|
||||
void MouseRptParser::OnRightButtonDown (MOUSEINFO *mi)
|
||||
{
|
||||
Serial.println("BTN-R: DOWN");
|
||||
digitalWrite(PIN_MOUSE_RBTN, LOW);
|
||||
};
|
||||
|
||||
void MouseRptParser::OnLeftButtonDown (MOUSEINFO *mi)
|
||||
{
|
||||
Serial.println("BTN-L: DOWN");
|
||||
digitalWrite(PIN_MOUSE_LBTN, LOW);
|
||||
};
|
||||
|
||||
void MouseRptParser::OnLeftButtonUp (MOUSEINFO *mi)
|
||||
{
|
||||
Serial.println("BTN-L: UP");
|
||||
digitalWrite(PIN_MOUSE_LBTN, HIGH);
|
||||
};
|
||||
|
||||
void MouseRptParser::OnMiddleButtonDown (MOUSEINFO *mi)
|
||||
{
|
||||
Serial.println("BTN-M: DOWN");
|
||||
digitalWrite(PIN_MOUSE_MBTN, LOW);
|
||||
Xchange+=16;
|
||||
};
|
||||
|
||||
void MouseRptParser::OnMiddleButtonUp (MOUSEINFO *mi)
|
||||
{
|
||||
Serial.println("BTN-M: UP");
|
||||
digitalWrite(PIN_MOUSE_MBTN, HIGH);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user