You are currently viewing archived documentation. Use the left navigation to return to the latest.

SDK Samples and Gamepad Usage

Some of the Oculus SDK samples use gamepad controllers to enable movement around the virtual world.

This section describes the devices that are currently supported and setup instructions.

Xbox 360 Wired Controller for Windows

To set up the controller:

  • Plug the device into a USB port. Windows should recognize the controller and install any necessary drivers automatically.

Logitech F710 Wireless Gamepad

To set up the gamepad for Windows:

  1. Put the controller into ‘XInput’ mode by moving the switch on the front of the controller to the ‘X’ position.
  2. Press a button on the controller so that the green LED next to the ‘Mode’ button begins to flash.
  3. Plug the USB receiver into the PC while the LED is flashing.
  4. Windows should recognize the controller and install any necessary drivers automatically.

To set up the gamepad for Mac:

  1. Put the controller into ‘DirectInput’ mode by moving the switch on the front of the controller to the ‘D’ position.
  2. Press a button on the controller so that the green LED next to the ‘Mode’ button begins to flash.
  3. Plug the USB receiver into the PC while the LED is flashing.
  4. OSX should recognize the controller and install any necessary drivers automatically.

Sony PlayStation DUALSHOCK3 Controller

To set up the controller for Mac:

  1. Turn off any nearby PS3 consoles.
  2. Go to System Preferences -> Bluetooth.
  3. Make sure the ‘On’ and ‘Discoverable’ check boxes are checked.
  4. Plug the controller into the Mac using the USB cable.
  5. Press the ‘PS’ Button in the middle of the controller for 3 seconds and then remove the USB cable.
  6. After removing the cable, the controller should immediately appear in the device list. If a dialog appears requesting a passcode enter ‘xxxx’ and then press Pair.
  7. Click on the gear symbol beneath the list of Bluetooth devices and select Add to Favorites.
  8. Click on the gear symbol once more and select Update Services.
  9. Quickly turn Bluetooth off and then immediately back on again.
  10. Press the ‘PS’ Button on the controller. The controller status should now appear as ‘Connected’.