Swingers is a gesture library for LÖVE.


  • 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


The library

A demo

See Also

Bartbes, the creator and maintainer of Swingers

The forum thread