This project has moved. For the latest updates, please go here.

GeneralEventHandler

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

Last edited Jan 15, 2016 at 12:46 PM by Nonki, version 2