# Trying to configure the Xbox Series X controller

**URL:** <https://forum.defold.com/t/trying-to-configure-the-xbox-series-x-controller/74531>\
**Category:** Questions\
**Created:** [October 14, 2023, 7:18pm UTC](https://forum.defold.com/t/trying-to-configure-the-xbox-series-x-controller/74531 "2023-10-14T19:18:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Piro](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/piro/32/42221_2.png) [@Piro](https://forum.defold.com/u/Piro)\
**Post date:** [October 14, 2023, 7:18pm UTC](https://forum.defold.com/t/trying-to-configure-the-xbox-series-x-controller/74531/1 "2023-10-14T19:18:33Z")

</div>

Hi!

I’m currently struggling with trying to get the Xbox Series X/S controller to work with Defold. I know it’s working as I’ve tried playing games with it like Dome Keeper.

The game that is not working for me is Void Scrappers by @Alex_8BitSkull for example.

What I’ve currently tried is:

1. Ran the `gdc-linux` tool to detect the gamepad and input, it just keeps telling me no gamepad is connected in a loop:

```lua
INFO:GRAPHICS: Initialised graphics device 'opengl'
No connected gamepads, rechecking in 3 seconds. 2.. 1.. Rechecking...
No connected gamepads, rechecking in 3 seconds. 2.. 1.. Rechecking...

```

1. Defold seems to detect the controller as this message is shown in the console:

```lua
No gamepad map found for gamepad 0 (Microsoft Xbox Series S|X Controller). The raw gamepad map will be used.

```

But no matter what I do, nothing gets reported in the `on_input` function. I’ve stripped it down to:

```lua
function on_input(self, action_id, action)
	pprint(action_id)
	pprint(action)
end

```

To see which raw input events are received, but other than my keyboard and mouse, nothing shows up. According to the docs I should get an `action_id` with `hash("raw")` if I’m not mistaken, although the forum mentions the usage of `hash("gamepad_raw")` so I’ve tried this one too just to be sure.

I’m currently on Linux and working in Defold 1.6.0.

Please help me in the right direction, it’s driving me insane 😃. What am I missing and/or doing wrong?

* * *

**Edit:** I’ve also just found this GitHub issue; [Linux controllers no longer detected since 1.4.8 · Issue #8059 · defold/defold · GitHub](https://github.com/defold/defold/issues/8059) – Might be also affecting the Series S/X Xbox controller(s) than?

I can confirm that the `gdc-linux` tool from version [1.4.7](https://github.com/defold/defold/releases/tag/1.4.7) detects the controller and is able to create a mapping.

---

<div class="post-metadata">

**Author:** ![Potota](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/potota/32/33404_2.png) [@Potota](https://forum.defold.com/u/Potota)\
**Post date:** [October 14, 2023, 8:15pm UTC](https://forum.defold.com/t/trying-to-configure-the-xbox-series-x-controller/74531/2 "2023-10-14T20:15:34Z")

</div>

> [@Piro](#):
>
> **Edit:** I’ve also just found this GitHub issue; [https://github.com/defold/defold/issues/8059](https://github.com/defold/defold/issues/8059) – Might be also affecting the Series S/X Xbox controller(s) than?

Yeah, it seems to be affecting all controllers so I’ve updated the issue title.
