Advertisement
lvs

Untitled

lvs
Sep 15th, 2011
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. function newJoystick(name)
  2.     local screenW, screenH = display.contentWidth, display.contentHeight
  3.     local classJoystick = {}
  4.     classJoystick.idButton = name
  5.     function classJoystick:Picture(x,y)
  6.         self.controller = ...
  7.         self.classJoystick.buttonUp = ...
  8.         self.classJoystick.buttonDown = ...
  9.         self.buttonLeft = ...
  10.         self.buttonRight = ...
  11.     end
  12.     return classJoystick
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement