Go back to:
SonyPS2
The Sony PS2 controller supports the following functions:
Method
- calibrate
- Calibrate the joysticks on the controller.
- read
- Read the values from the controller and store them.
- setRumble
- Turn each of the rumble motors on or off.
- buttonDown
- Return TRUE if the button has just been pressed or FALSE if it was already pressed or is not pressed at all.
- buttonUp
- Return TRUE if the button has just been released or FALSE if it was already released or is still held down.
- buttonHeld
- Return TRUE if the button continues to be held down.
- buttonPressed
- Return TRUE if the button is currently pressed.
- buttonPressure
- Return a value representing how hard a button has been pressed.
- buttonsChanged
- Returns information on which buttons have changed state since the previous call to read the controller.
- buttonsRaw
- Return the status of all 16 buttons.
- isAnalogMode
- Returns TRUE if the controller is already in analogue mode.
- setAnalogMode
- Activates the joysticks.
- joystick
- Read a joystick value relative to its centre point including any dead zone.
- joystickRaw
- Reads the raw value from a joystick.