Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function os.pullEventRaw( sFilter )
- return coroutine.yield( sFilter )
- end
- function os.pullEvent( sFilter )
- local eventData = { os.pullEventRaw( sFilter ) }
- if eventData[1] == "terminate" then
- error( "Terminated", 0 )
- end
- return unpack( eventData )
- end
- -- Install globals
- function sleep( nTime )
- local timer = os.startTimer( nTime or 0 )
- repeat
- local sEvent, param = os.pullEvent( "timer" )
- until param == timer
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement