File tree Expand file tree Collapse file tree 2 files changed +200
-242
lines changed
Sources/GateEngine/System Expand file tree Collapse file tree 2 files changed +200
-242
lines changed Original file line number Diff line number Diff line change @@ -117,10 +117,10 @@ import GameMath
117117 break
118118 }
119119 #endif
120- if let exactMatch = buttons [ keyboardKey] {
120+ if let exactMatch: ButtonState = buttons [ keyboardKey] {
121121 return exactMatch
122122 }
123- let button = ButtonState ( keyboard: self , key: keyboardKey)
123+ let button : ButtonState = ButtonState ( keyboard: self , key: keyboardKey)
124124 buttons [ keyboardKey] = button
125125 return button
126126 }
@@ -249,7 +249,7 @@ extension Keyboard {
249249 self . modifiers = modifiers
250250 case . toggle:
251251 if isRepeat == false {
252- let button = self . _button ( key)
252+ let button : Keyboard . ButtonState = self . _button ( key)
253253 if button. isPressed == false {
254254 button. isPressed = true
255255 } else {
You can’t perform that action at this time.
0 commit comments