File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Sources/GameControllerKit Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ public typealias GCKController = GCController
2020extension GCKController {
2121 /// Does the current controller has a touchpad?
2222 public var hasTouchPad : Bool {
23- if self . physicalInputProfile as? GCDualSenseGamepad != nil {
23+ if self . physicalInputProfile is GCDualSenseGamepad {
2424 return true
2525 }
2626
27- if self . physicalInputProfile as? GCDualShockGamepad != nil {
27+ if self . physicalInputProfile is GCDualShockGamepad {
2828 return true
2929 }
3030
@@ -33,6 +33,6 @@ extension GCKController {
3333
3434 /// Does the current controller have paddle buttons?
3535 public var hasPaddleButtons : Bool {
36- return self . physicalInputProfile as? GCXboxGamepad != nil
36+ return self . physicalInputProfile is GCXboxGamepad
3737 }
3838}
You can’t perform that action at this time.
0 commit comments