How to use an Xbox controller with Flock XR on an iPhone

Contents

    You can use a compatible Xbox controller with Flock XR on an iPhone. Connect your controller to your iPhone using Bluetooth or a wired connection, then open Flock XR in your browser.

    Using a controller can make Flock XR projects feel more like traditional 3D games and gives players another way to move around and interact with your worlds.

    What you need

    You will need:

    • an iPhone
    • a compatible Xbox controller
    • Bluetooth or a suitable cable
    • a iPhone cable adapter, if required
    • a web browser
    • a Flock XR project that uses player controls

    Connect your Xbox controller to your iPhone using Bluetooth

    First, put your Xbox controller into pairing mode.

    1. Turn on your Xbox controller.
    2. Press and hold the controller’s pairing button until the Xbox button starts flashing.
    3. On your iPhone, open System Settings.
    4. Select Bluetooth.
    5. Find your Xbox controller in the list of nearby devices.
    6. Select Connect.

    When the controller has connected, the Xbox button should stop flashing.

    Connect an Xbox controller using a cable

    You can also connect a compatible Xbox controller directly to your iPhone using a cable, you may also need an adapter.

    Once connected, your iPhone should recognise the controller automatically.

    Test your Xbox controller with Flock XR

    Once your controller is connected to your iPhone:

    1. Open app.flockxr.com in your browser.
    2. Open a project that uses player controls. (such as the ‘My Place’ demo project)
    3. Press Play.
    4. Try the controller to move or interact with your project.

    Using your Xbox controller for player movement in Flock XR

    You can use the controller’s sticks to move around your project.

    How the left stick works depends on the movement controls that have been defined in your Flock XR project.

    If your project only uses forward and backward movement:

    • Move the left stick up or down to move forward or backward.
    • Move the right stick left or right to pan the camera and change the direction you are facing.

    This creates controls similar to many 3D games: use the left stick to move and the right stick to look around.

    If your project defines forward, backward, left and right movement:

    The left stick controls movement in all four directions. You can use it to move forward, backward, left and right.

    The right stick can still be used to pan the camera.

    Coding your Xbox controller button controls in Flock XR

    The Xbox controller’s lettered buttons correspond to Flock XR’s numbered controller buttons:

    Xbox buttonFlock XR control
    BButton 1
    YButton 2
    XButton 3
    AButton 4

    What these buttons actually do is up to the person creating the Flock XR project.

    For example, you could program Button 4 (A) to make a character jump, Button 1 (B) to interact with a character, or another button to play a sound.

    This means there isn’t one fixed action for each Xbox button. You assign the actions you want the buttons to perform when you create your project.

    Cross-device compatibility

    You can build your project’s controls using Flock XR’s movement and controller defaults rather than designing your project around a particular Xbox button.

    For example, if your project responds to Button 4, a player using an Xbox controller can trigger that action by pressing A.

    This makes it easier to design projects that can be played using different input methods and controllers.

    Troubleshooting

    My Xbox controller is connected but isn’t working in Flock XR

    If your controller appears to be connected to your iPhone but isn’t controlling your Flock XR project, try these steps:

    1. Check that the controller still appears as connected in your iPhone’s Bluetooth settings.
    2. Make sure you have pressed Play in Flock XR.
    3. Check that the Flock XR project contains code that responds to player controls.
    4. Refresh the browser and try again.
    5. Disconnect and reconnect the controller.
    6. Try closing and reopening your browser.
    7. If possible, test the controller with another application to check that your iPhone is receiving its input.

    Support for particular controller features can vary depending on the controller, browser and device.

    FAQs

    Can I use an Xbox controller and keyboard with the same Flock XR project?

    Yes. Flock XR projects can respond to different types of player input.

    This is useful when creating projects for classrooms, clubs or other groups where people may be using different devices or prefer different ways of controlling a game.

    Do I need to change my Flock XR code to use a controller?

    If your project already uses Flock XR’s player controls, you may not need to create a separate set of movement code just for a controller.

    For example, you can use controls such as forward and backward when building player movement rather than checking for a specific keyboard key.

    This helps make your project easier to use with different input methods.

    Next steps

    Now that your Xbox controller is connected, try using it in a Flock XR project with character movement.

    You can also explore different ways of controlling characters and interactions to make your Flock XR project easier and more enjoyable to play.

    Updated on August 20, 2026