Difference between revisions of "Swingers"
Avarisclari (talk | contribs) |
m (Fix link) |
||
Line 21: | Line 21: | ||
[[User:Bartbes|Bartbes]], the creator and maintainer of Swingers | [[User:Bartbes|Bartbes]], the creator and maintainer of Swingers | ||
− | [http://love2d.org/ | + | [http://love2d.org/forums/viewtopic.php?f=5&t=1098 The forum thread] |
Latest revision as of 14:28, 30 June 2014
Swingers is a gesture library for LÖVE.
Functions
- swingers.start(button)
- Starts the subsystem, button being the button to listen for
- swingers.checkGesture()
- Check if there's a new gesture, ALWAYS call this before using a get function
- swingers.getGesture()
- Get a gesture string, uses u for up, d for down, l for left and right for right, so rdul would be right, down, up left (in that order)
- swingers.getExtGesture()
- Get an extended gesture table, contains n, ne, e, se, s, sw, w and nw, one table entry per movement.
- swingers.update()
- This function does all the magic, call this every frame
Download
See Also
Bartbes, the creator and maintainer of Swingers