Skip to content

Commit 66f7d31

Browse files
committed
Conform to common protocols
1 parent 57342fb commit 66f7d31

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/GateEngine/System/HID/GamePad/GamePad.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* http://stregasgate.com
66
*/
77

8-
public enum GamePadSymbolMap {
8+
public enum GamePadSymbolMap: Equatable, Hashable, Sendable {
99
case unknown
1010

1111
case appleMFI
@@ -20,7 +20,7 @@ public enum GamePadSymbolMap {
2020
case sonyPlaystation
2121
}
2222

23-
public struct GamePadSymbol: CustomStringConvertible {
23+
public struct GamePadSymbol: CustomStringConvertible, Equatable, Hashable, Sendable {
2424
/// The mapping used to determine all other values
2525
public let map: GamePadSymbolMap
2626
internal let _id: GamePad.InternalID
@@ -179,7 +179,7 @@ public struct GamePadSymbol: CustomStringConvertible {
179179
}
180180
}
181181

182-
public enum Identifier {
182+
public enum Identifier: Equatable, Hashable, Sendable {
183183
case unknown
184184

185185
case up
@@ -232,7 +232,7 @@ public struct GamePadSymbol: CustomStringConvertible {
232232
case menu
233233
}
234234

235-
public enum Color {
235+
public enum Color: Equatable, Hashable, Sendable {
236236
case monochrome
237237
case red
238238
case green
@@ -269,7 +269,7 @@ extension GamePad {
269269
case disconnected
270270
}
271271

272-
public enum InternalID {
272+
public enum InternalID: Equatable, Hashable, Sendable {
273273
case north
274274
case south
275275
case east

0 commit comments

Comments
 (0)