Difference between revisions of "Swingers"
(Created page) |
m (Fix link) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | [http://love2d.org/ | + | [http://love2d.org/forums/viewtopic.php?f=5&t=1098&p=10725&hilit=swingers#p10725 Swingers] is a gesture library for LÖVE. |
== Functions == | == Functions == | ||
Line 14: | Line 14: | ||
== Download == | == Download == | ||
− | [http://love2d.org/ | + | [http://love2d.org/forums/download/file.php?id=1821 The library] |
− | [http://love2d.org/ | + | [http://love2d.org/forums/download/file.php?id=1822 A demo] |
==See Also== | ==See Also== | ||
[[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