Changes

Jump to navigation Jump to search

Overview of the API

47 bytes added, 21:21, 20 May 2011
Line 201: Line 201:  
*'''on.resize'''() is called when the window is rezised
 
*'''on.resize'''() is called when the window is rezised
 
*'''on.timer'''() is called when the timer has been finished. Here an example of using timer to play an animation :  
 
*'''on.timer'''() is called when the timer has been finished. Here an example of using timer to play an animation :  
 +
<syntaxhighlight lang="lua">
 
  x = 1
 
  x = 1
 
  animating = false
 
  animating = false
Line 221: Line 222:  
  platform.window:invalidate() -- recall graph engine
 
  platform.window:invalidate() -- recall graph engine
 
  end
 
  end
 
+
</syntaxhighlight>
 
----
 
----
 
*'''on.arrowKey'''(key) is called when an '''arrow key''' from the clickPad/TouchPad is pressed (right, left, up, down)
 
*'''on.arrowKey'''(key) is called when an '''arrow key''' from the clickPad/TouchPad is pressed (right, left, up, down)
30

edits

Navigation menu