File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4343#error "Not a supported board! Must use Teensy 3.1/3.2, LC, 3.5, or 3.6"
4444#endif
4545
46- #include < limits>
47-
4846// --------------------------------------------------------
4947// XInput Button Maps |
5048// (Matches ID to tx index with bitmask) |
@@ -114,10 +112,7 @@ struct XInputMap_Trigger {
114112 const uint8_t index;
115113};
116114
117- const XInputGamepad::Range XInputMap_Trigger::range = {
118- std::numeric_limits<uint8_t >::min (), // 0
119- std::numeric_limits<uint8_t >::max () // 255
120- };
115+ const XInputGamepad::Range XInputMap_Trigger::range = { 0 , 255 }; // uint8_t
121116
122117static const XInputMap_Trigger Map_TriggerLeft (4 );
123118static const XInputMap_Trigger Map_TriggerRight (5 );
@@ -145,10 +140,7 @@ struct XInputMap_Joystick {
145140 const uint8_t y_high;
146141};
147142
148- const XInputGamepad::Range XInputMap_Joystick::range = {
149- std::numeric_limits<int16_t >::min (), // -32768
150- std::numeric_limits<int16_t >::max () // 32767
151- };
143+ const XInputGamepad::Range XInputMap_Joystick::range = { -32768 , 32767 }; // int16_t
152144
153145static const XInputMap_Joystick Map_JoystickLeft (6 , 7 , 8 , 9 );
154146static const XInputMap_Joystick Map_JoystickRight (10 , 11 , 12 , 13 );
You can’t perform that action at this time.
0 commit comments