File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Sources/GateEngine/System/HID Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ extension HID {
3636 gamePad. interpreter. updateState ( of: gamePad)
3737 }
3838 any = all. first ( where: { $0. hasInput } ) ?? nullGamePad
39+ if any. hasInput {
40+ hid. recentInputMethod = . gamePad
41+ }
3942 }
4043
4144 func update( ) {
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public enum InputMethod {
3838 public let gamePads : GamePadManger = GamePadManger ( )
3939
4040 /// The most recent input method used by the end user
41- public private ( set) var recentInputMethod : InputMethod = . mouseKeyboard
41+ public internal ( set) var recentInputMethod : InputMethod = . mouseKeyboard
4242
4343 public var sharedReceipts : InputReceipts = InputReceipts ( )
4444
You can’t perform that action at this time.
0 commit comments