Game Controller Support

The Paywall SDK supports Game Controller input. (Hey Backbone!)

To forward events to your web paywall, simply call gamepadValueChanged(gamepad:element:) from your own gamepad's valueChanged handler:

controller.extendedGamepad?.valueChangedHandler = { gamepad, element in
  // send values to Paywall
  Paywall.gamepadValueChanged(gamepad: gamepad, element: element)
  // ... rest of your code

What’s Next
Did this page help you?