Skip to content

Commit a8a089e

Browse files
committed
Explicitly set scoped enum types to uint8_t
This should be implicit given the provided values, but I'm making it explicit here to indicate intent (using a single byte from the USB data) and match usage elsewhere such as the receive() function.
1 parent c4aca73 commit a8a089e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/XInput.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ enum XInputControl : uint8_t {
5151
JOY_RIGHT,
5252
};
5353

54-
enum class XInputReceiveType {
54+
enum class XInputReceiveType : uint8_t {
5555
Rumble = 0x00,
5656
LEDs = 0x01,
5757
};
5858

59-
enum class XInputLEDPattern {
59+
enum class XInputLEDPattern : uint8_t {
6060
Off = 0x00,
6161
Blinking = 0x01,
6262
Flash1 = 0x02,

0 commit comments

Comments
 (0)