Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function newJoystick(name)
- local screenW, screenH = display.contentWidth, display.contentHeight
- local classJoystick = {}
- classJoystick.idButton = name
- function classJoystick:Picture(x,y)
- self.controller = ...
- self.classJoystick.buttonUp = ...
- self.classJoystick.buttonDown = ...
- self.buttonLeft = ...
- self.buttonRight = ...
- end
- return classJoystick
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement