For developers

If you’re a developer looking to add support for Sixaxis Controller to your game or app, here’s what you need to know:

  1. All controllers will be registered as native PS3 gamepads when the ‘Enable Gamepad’ setting is selected. If your app already supports native gamepads, it will probably just work once this setting is enabled.
  2. In addition, there is an option called ‘Enable Accelerometers & Gyroscopes’.
  3. If this is enabled, PS3 controllers will report accelerometer X, Y and Z axes as AXIS_GENERIC_1, AXIS_GENERIC_2 and AXIS_GENERIC_3 respectively, as well as one gyroscope axis as AXIS_GENERIC_4.
  4. PS4 controllers will report accelerometer X, Y and Z axes as AXIS_GENERIC_1, AXIS_GENERIC_2 and AXIS_GENERIC_3 respectively, as well as gyroscope X, Y and Z axes as AXIS_GENERIC_4, AXIS_GENERIC_5 and AXIS_GENERIC_6 respectively.
  5. All values are normalized.
  6. You can use the method InputDevice.getMotionRange to check whether the controller is sending accelerometer and gyroscope data.