Skip to content

Commit 0168faa

Browse files
committed
Switch to PollEvent for real time event responses
1 parent 932387b commit 0168faa

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

bender.bmx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@ While True
5151
TAppFileIO.saveAsIndexed = False
5252
EndIf
5353

54-
WaitEvent
55-
'Print CurrentEvent.ToString()
56-
'Print GCMemAlloced()
54+
'Debug stuff
55+
'Print "current event: " + CurrentEvent.ToString()
56+
'Print "allocated memory in bytes: " + GCMemAlloced() 'not sure how accurate this really is, numbers don't match with task manager
57+
'Print "mouse position in canvas: x = " + MouseX() + " y = " + MouseY()
5758

59+
PollEvent
5860
'Event Responses
5961
Select EventID()
6062
Case EVENT_APPRESUME

0 commit comments

Comments
 (0)