私はこれがうまくいくと思ったが、うまくいかなかった
GraphicsWindow.KeyDown = KeyDown
Sub KeyDown
If GraphicsWindow.LastKey = "W" And GraphicsWindow.LastKey = "Space" Then
Do Stuff
EndIf
EndSub
ユーザーから一度に複数のキーボード入力を取得できるように、これに対する解決策が必要です
私はこれがうまくいくと思ったが、うまくいかなかった
GraphicsWindow.KeyDown = KeyDown
Sub KeyDown
If GraphicsWindow.LastKey = "W" And GraphicsWindow.LastKey = "Space" Then
Do Stuff
EndIf
EndSub
ユーザーから一度に複数のキーボード入力を取得できるように、これに対する解決策が必要です
どうぞ!これはあなたが必要とすることをするはずです!
GraphicsWindow.KeyDown = KeyDown
GraphicsWindow.KeyUp = KeyUp
While 1 = 1
Program.Delay(10)
If Key["Space"] = "True" And Key["Up"] Then
TextWindow.WriteLine("DOING STUFF!")
EndIf
EndWhile
Sub Keydown
LastKeyDown = GraphicsWindow.LastKey
Key[LastKeyDown] = "True"
EndSub
Sub KeyUp
LastKeyUp = GraphicsWindow.LastKey
Key[LastKeyUp] = "False"
EndSub