# Input with gamepad

**URL:** <https://forum.castle-engine.io/t/input-with-gamepad/1247>\
**Category:** Uncategorized\
**Created:** [June 26, 2024, 9:18am UTC](https://forum.castle-engine.io/t/input-with-gamepad/1247 "2024-06-26T09:18:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Didi](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/didi/32/1908_2.png) [@Didi](https://forum.castle-engine.io/u/Didi)\
**Post date:** [June 26, 2024, 9:18am UTC](https://forum.castle-engine.io/t/input-with-gamepad/1247/1 "2024-06-26T09:18:42Z")

</div>

Hi, I bought a gamepad (Logitech F310) last week. I am able to control my game (rally) with it. I use the direct input and set up the keys I need in the game with the Logitech software “Launch Gaming Software Profiler”. The gamepad would also have the option of Xinput.

- Is Xinput possible in CGE? I think this is only for Windows?

- I tried the test program [Joysticks Database Test - Google Drive](https://drive.google.com/open?id=1PtBzsrCCE3UsrluY0brmLRSWUWlHZj3v) and it works with driver for Logitech F510 in direct mode ([We have a new joysticks database in Castle Game Engine, and we need YOU to help us test it](https://forum.castle-engine.io/t/we-have-a-new-joysticks-database-in-castle-game-engine-and-we-need-you-to-help-us-test-it/147)). Axes and buttons ar all correct. Xinput does not work.

- Does that mean that I wouldn’t need Logitech’s program at all and could communicate directly with my game?

---

<div class="post-metadata">

**Author:** ![eugeneloza](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/eugeneloza/32/12_2.png) [@eugeneloza](https://forum.castle-engine.io/u/eugeneloza)\
**Post date:** [June 26, 2024, 9:50am UTC](https://forum.castle-engine.io/t/input-with-gamepad/1247/2 "2024-06-26T09:50:12Z")

</div>

No, unfortunately XInput support is not implemented (yet). Back then when I was working with joysticks I didn’t know how to make support for it, now I feel ready to give it another try, but unfortunately didn’t get to it yet.

Note that you already can use joysticks in Castle Engine, however, bypassing XInput - and manually figuring out the axes and buttons. Though it’s not a sustainable solution as you’ll need to ask players to calibrate their joysticks to allow them to play.

We’ve been talking with @michalis to resume the work on joysticks support, and now it waits for me. The first step I see would be to offer an easy tool to calibrate joysticks by the end-player. I guess next step - Steam input support. And only after that XInput and other input system like edev. Unfortunately I can’t tell how soon I’ll be able to get to this task.

Note that if the test for joysticks database worked for you - you would be the first person for whom it worked without additional work needed on user side. And practically this was the reason to put this branch in a “pending” state for years, because it didn’t seem to offer any significant improvement of existing CastleJoysticks support. If you say that your gamepad works properly, then it means that it was not so deadend route after all 🙂
