We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1be7dd7 commit a02e784Copy full SHA for a02e784
src/Joystick.cpp
@@ -577,7 +577,7 @@ void Joystick_::setSteering(uint16_t value)
577
if (_autoSendState) sendState();
578
}
579
580
-void Joystick_::setHatSwitch(int8_t hatSwitchIndex, uint16_t value)
+void Joystick_::setHatSwitch(int8_t hatSwitchIndex, int16_t value)
581
{
582
if (hatSwitchIndex >= _hatSwitchCount) return;
583
src/Joystick.h
@@ -209,7 +209,7 @@ class Joystick_
209
void pressButton(uint8_t button);
210
void releaseButton(uint8_t button);
211
212
- void setHatSwitch(int8_t hatSwitch, uint16_t value);
+ void setHatSwitch(int8_t hatSwitch, int16_t value);
213
214
void sendState();
215
};
0 commit comments