-
Notifications
You must be signed in to change notification settings - Fork 0
GeneralEventHandler
Nonki Takahashi edited this page Apr 24, 2017
·
2 revisions
Try to use general event handler such like:
GraphicsWindow.MouseDown = OnMouseDown
While "True"
If mouseDown Then
DoSomething()
mouseDown = "False"
Else
Program.Delay(200)
EndIf
EndWhie
Sub OnMouseDown
dx = GraphicsWindow.MouseX
dy = GraphicsWindow.MouseY
mouseDown = "True"
EndSub
Sub OnKeyDown
keyDown = "True"
EndSub
Copyright © 2017-2019 Nonki Takahashi.
This work is licensed under a Creative Commons Attribution 4.0 International License.