Quote:
ok iv read up on all the controls fuctions but i dont know how to implament these into my code to do what i want it to do
--this is what i found--
Controls
Controls Controls.read()
Bool controls:select()
Bool controls:start()
Bool controls:up()
Bool controls:right()
Bool controls:down()
Bool controls:left()
Bool controls:l()
Bool controls:r()
Bool controls:triangle()
Bool controls:circle()
Bool controls:cross()
Bool controls:square()
Bool controls:home()
Bool controls:hold()
Bool controls:note()
Number controls:analogX() -- ranges from -127 to 128.
Returns the current analog stick position in x direction.
Number controls:analogY() -- same
Returns the current analog stick position in y direction.
Bool (Controls a == Controls b) -- note! The analog stick is NOT considered when comparing because of analog fluctuations.
Compares two pad states.
Number controls:buttons() -- returns the bitmask like sceCtrlReadBufferPositive reads it
Constants for binary operations on buttons() result (for example “Controls.read():buttons() & Controls.startMask > 0” is the same as “Controls.read():start()”)
Number Controls.selectMask
Number Controls.startMask
Number Controls.upMask
Number Controls.rightMask
Number Controls.downMask
Number Controls.leftMask
Number Controls.ltriggerMask
Number Controls.rtriggerMask
Number Controls.triangleMask
Number Controls.circleMask
Number Controls.crossMask
Number Controls.squareMask
Number Controls.homeMask
Number Controls.holdMask
Number Controls.noteMask
--end of what i found--