Trust GXT 540 Xbox Controller
-
Anyone else have this controller? I've got most of the buttons mapped correctly during setup except the right analog stick, it says 'already taken'. I´m pretty new to Retropie, but familiar with linux and Raspberry pi stuff for a few years now.
Found this old thread but not much help as it´s very old.
They've got a switch on the underside for X-input mode vs Direct input mode.
Any help would be appreciated.
RPI4
official psu
RetroPie Version Used retropie-buster-4.7.1-rpi4_400.img
Built From: Pre made SD Image on RetroPie website
USB Devices connected: Trust GXT 540 Wired usb controller , mouse, keyboard
Controller used: Trust GXT 540 Wired usb controller.
Error messages received:
Verbose log (if relevant):
Guide used: (Mention if you followed a guide)
File: (File with issue - with FULL path)
Emulator: (Name of emulator - if applicable)
Attachment of config files: (PLEASE USE PASTEBIN.COM FOR LARGE LOGS)
How to replicate the problem: connect controller, run through input configuration menu -
Check if the controller recognized by Linux - test it with
jstest /dev/input/js0
from the command line and see if the inputs are registering. -
@mitu So running jstest from the cli gives output of Axes: 0-5 and Buttons 0-12 as following.
Just so there's no confusion here's a link to the controller page from the manufacturer in case any of the button names or placements I've described are unclear.Axes:
0: left thumbstick horizontal
1: left thumbstick vertical
2: right thumbstick horizontal
3: right thumbstick vertical
4: dpad horizontal
5: dpad verticalButtons:
0: Y button (north)
1: B button (east)
2: A button (south)
3: X button (west)
4: left paddle
5: right paddle
6: left trigger
7: right trigger
8: select button
9: start button
10: left thumbstick push
11: right thumbstick push
12: home button -
@mitu so here's a curious thing, when first running jstest the buttons map to strange combinations, such as the right analogue thumbstick triggering buttons 0-3. Then after a while it "settles down" to the mappings I wrote above.
Any idea what gives?
okay I just noticed.....................apparently hitting the home button switches the mappings. -
Do the right and left joystick produce different axis ? The 'already taken' message appears when the inputs have already been mapped - hinting that the right joypad maps to an already mapped axis (left joystick maybe ?).
-
@mitu so I think it's solved for now! Knowing that the 'home' button switches between layouts was the missing piece to get the right thumbstick working correctly.
What exactly is the last input selection "hotkey" used for?I wouldn't have gotten here without knowing about jstest however so I thank you kindly.
Is there a good guide to how to map the controls for each different emulator? or how do people go about configuration from this point?
-
@w0hn0h said in Trust GXT 540 Xbox Controller:
What exactly is the last input selection "hotkey" used for?
https://retropie.org.uk/docs/Controller-Configuration/#hotkey
Is there a good guide to how to map the controls for each different emulator? or how do people go about configuration from this point?
Configuring the controller in EmulationStation should be enough for start, this generates the proper configuration for RetroArch based emulators and a few other standalone emulators. If you find that you want to modify the mapping for a particular system or game - see https://retropie.org.uk/docs/RetroArch-Configuration/#core-input-remapping (the entire page is also a good start for understanding how input configuration works for RetroArch).
-
@mitu thanks for all your help!
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.