Difference between revisions of "Swingers"

(Created page)
 
Line 1: Line 1:
[http://love2d.org/forum/viewtopic.php?f=5&t=1098 Swingers] is a gesture library for LÖVE.
+
[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/forum/download/file.php?id=1094 The library]
+
[http://love2d.org/forums/download/file.php?id=1821 The library]
  
[http://love2d.org/forum/download/file.php?id=1093 A demo]
+
[http://love2d.org/forums/download/file.php?id=1822 A demo]
  
 
==See Also==
 
==See Also==

Revision as of 20:51, 22 April 2013

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

The library

A demo

See Also

Bartbes, the creator and maintainer of Swingers

The forum thread