DOSBox games with Thrustmaster USB
@shaun57 what specifically isn't working? The joystick won't calibrate? None of the buttons are detected? Try setting the "timed" setting in the dosbox.conf to "false".
Nothing is recognised.
For example, when F-117 loads, it immediately asks "do you have a joystick?", answer "y", then "press button 1 on the stick". I tried pressing every button, nothing.
I'll try your suggestion with the timed setting
..just tried that, it didn't help unfortunately
@shaun57 can you reset your keymaper and try again? Does the keymaper detect your button presses?
@quicksilver The keymapper detects mouse and keyboard button presses, so for example I can select joystick 1 x- and "add", but then nothing when I move the stick or press any of it's buttons
how do I reset the keymapper ?
@shaun57 I think you can just delete the .map file from your PC folder. Do you have any other controllers connected to your pi?
@quicksilver Thanks, I've just tried that and it didn't help.
I do have another controller. JS0 is my arcade cabinet controller..
I: Bus=0003 Vendor=16c0 Product=05e1 Version=0110
N: Name="xin-mo.com Xinmotek Controller"
H: Handlers=event1 js0
B: KEY=1fff0000 0 0 0 0 0 0 0 0 0
the Thrustmaster is JS1. Just tried jstest /dev/input/js1 and I can see all it's buttons, hat and axis are showing up when I use them
Not sure if it helps, bur here's the runcommand.log from when I launch F-117A..
Executing: bash /home/pi/RetroPie/roms/pc/+Start\ DOSBox.sh "/home/pi/RetroPie/roms/pc/F-117A Nighthawk Stealth Fighter 2.0.conf"
/etc/timidity/fluidr3_gm.cfg: No such file or directory
timidity: Error reading configuration file.
Please check /etc/timidity/timidity.cfg
DOSBox version SVN
Copyright 2002-2019 DOSBox Team, published under GNU GPL.
CONFIG: Loading primary settings from config file /home/pi/.dosbox/dosbox-SVN.conf
CONFIG: Loading additional settings from config file /home/pi/RetroPie/roms/pc/F-117A Nighthawk Stealth Fighter 2.0.conf
ALSA:Client initialised [128:0]
MIDI: Opened device:alsa
Using joystick xin-mo.com Xinmotek Controller with 4 axes, 13 buttons and 1 hat(s)
Using joystick Thrustmaster, Inc. USB Game Controllers with 3 axes, 4 buttons and 1 hat(s)
timidity: no process found
..I have my game .conf files in ROMS/PC and the actual game roms in a seperate folder - ROMS/PC-ROMS
So a game is launched from it's own .conf file with the autoexec entry..
mount C "/home/pi/RetroPie/roms/pc-roms/F-117A Nighthawk Stealth Fighter 2.0"
@shaun57 I read that dosbox when set to fcs joystick will only recognize the first controller.
@quicksilver Thanks, yeah, I tried all the joysticktype settings including 2axis, which is supposed to allow two controllers. Didn't help.
However, this morning I tried renaming the default dosbox-SVN.conf in retropie/configs/pc. I then ran DOSBox again from +Start DOCBox.sh and the screen looked different and the keyboard started generating invalid characters. I quit out and DOSBOX had recreated a new dosbox-SVN.conf. I renamed that one and reinstated the original one then ran it again. All of a sudden the Thrustmaster is recognised ! No idea what has changed. I guess forcing it to recreate a dosbox-SVN.conf must have also caused it to update some other setting file.
Anyway, I'm happy it's working now. Thanks quicksilver for your suggestions.