Updated mouse support.
[bcl.git] / tests / testbas.bas
blobbacb5a352846a1410be65e503473d5e4d3c575df
1 declare sub initEnvironment lib "bcl" alias "initEnvironment" ()
2 declare sub terminateEnvironment lib "bcl" alias "terminateEnvironment" ()
3 declare sub pumpEvents lib "bcl" alias "pumpEvents" ()
4 declare function isKeyDown lib "bcl" alias "isKeyDown" (ByVal key as Integer) as Integer
5 declare sub bclSleep lib "bcl" alias "sleep" (ByVal ms as Integer)
7 initEnvironment()
8 do
9 pumpEvents()
10 bclSleep(10)
11 loop until isKeyDown(27)
12 terminateEnvironment()