Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Overview of the API
47 bytes added
,
21:21, 20 May 2011
→Events
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)
Levak
30
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version