Skip to content

Instantly share code, notes, and snippets.

--
-- a simple Lua/Corona joystick module based on Rob Miracle's code:
-- http://forums.coronalabs.com/topic/32941-virtual-joystick-module-for-games/
-- simplified some of the code, removing some nice-ities, but it still works
local Joystick = {}
function Joystick.new( innerRadius, outerRadius )
local stage = display.getCurrentStage()