Joystick/Gamecontroller Usage #14
-
|
First at all: great work! It was also my dream to play SC in VR and and now it appears to be within reach. But now to my question: I operate a simpit (openhornet) in my basement which uses several HID devices including the Thrustmaster Warthog HOTAS. Unfortunately none of them seems to be recognized in game. Even if I unplug everything except the Warthog Joystick there is no indication that it's recognized (tested in debugger.exe as well). Regarding Throttle input, I played around with "joystick gremlin" to map the analog throttle axis to keyboard inputs 0 - 9 which seems to work fine ;-) Any hints are highly appreciated. Thank you again and keep up the excellent work |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 5 replies
-
|
hello @SCUBA82 Sorry for the delay, but a greate thanks for the feedback. In the last build, only the debuger was able to access to gamecontroller (i've forgot the flag in the main games.....) this new build adresse that issue. but in your case, it might not work, for the moment i am using SDL_INIT_GAMECONTROLLER, it target control pad and build a default mapping. I don't have a hotas system myself so i am unable to test it. I will in the next release implement the joystick control with SDL_INIT_JOYSTICK as it provide access to raw hardware and works with all joysticks, and set a configuration interface in the debugger. I will send you a message when it will be ready so to have your feedback on what is working and not. Regards |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
hello, first of all, whouahhou very impressive gear. Not for the moment, but it would great to make all of this work with strike commander, it's possible, but it will need somes works. But first, i will use SDL_JOYSTICK so your hotas will be working. for the bug, sorry, i will look into it. From what i am seeing, you SD.DAT file seems corrupted, but the wierd part is, if it was realy corrupted, the debugger should not be able to know that it must load the mauritania map. I haven't touch this part of the code in a while, must be some thing realy easy, i will post a fix next saturday. Rémi |
Beta Was this translation helpful? Give feedback.
-
|
Since the same SC.DAT is working with the previous version I expect it to be not corrupted. (Tried to recopy it without success). There is absolutely no hurry. Thank you once more for your work. As described before it's possible to map the physical joystick buttons to keyboard inputs. So in theory it will be already possible to use the existing keyboard inputs along with my gear. The only part that's really missing is the X & Y axis from my joystick which will hopefully be addressed later ;-) There are even more ideas from my side, like displaying the MFDs on individual screens but let's keep the focus on the input topic. |
Beta Was this translation helpful? Give feedback.
-
|
Hello @SCUBA82 Can you try the lastest release, i've fixed a bug in the data loading that could explain your bug (some original objects have uncorrect file size in the IFF). I've tested the binary with windows 10 and 11 and it works. Also, in the debugger, i've change the way i control the joystick, if you use the "test input" option you should see all your joystick axis and buttons. if it works, could you send me a screen shot, i am working on the settings and to allow full control remapping. Regards, |
Beta Was this translation helpful? Give feedback.
-
|
Hi Remi,
thank you for fixing it that quickly.
I can confirm that the game is running fine again.
Regarding the input test:
If I only connect the joystick , it gets recoginesed just as you described. Axis and Button presses are correctly reported (see the attached screensshot input-test)
If only the warthog throttle is connected it seems a little bit different. While the axis are reported fine, there are no buttons visible (see input-test-throttle)
It seems to only check the "first" input device. If everthing is connected I wasnt able to figure out which device was chosen. but I guess that was expected ?(see joystick.png for a list of connected devices ;- )
Hope that helps. Just tell me if you need me for additional tests.
br
Christian
Gesendet: Samstag, 28. Februar 2026 um 17:09
Von: remileonard ***@***.***>
An: remileonard/libRealSpace ***@***.***>
CC: SCUBA82 ***@***.***>,Mention ***@***.***>
Betreff: Re: [remileonard/libRealSpace] Joystick/Gamecontroller Usage (Discussion #14)
Hello @SCUBA82
Can you try the lastest release, i've fixed a bug in the data loading that could explain your bug (some original objects have uncorrect file size in the IFF). I've tested the binary with windows 10 and 11 and it works.
Also, in the debugger, i've change the way i control the joystick, if you use the "test input" option you should see all your joystick axis and buttons. if it works, could you send me a screen shot, i am working on the settings and to allow full control remapping.
Regards,Rémi.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
hi, last minute modification going wrong. You should edit the config.ini file in the asset directory and in the input section remove the "assets/" string from the filename, then the config tool should load and use your mapping, as the game. Cheers, |
Beta Was this translation helpful? Give feedback.
-
|
hello @Legitmysh for the moment, the best way is to take a screenshot in the debug tool
select File > strike commander > test mission SC and click on the simulation tab, here I will be able to see all the parameters for the simulation even the X / Y value used for the controls. For the speed, yes there is no limit on max or min power, some times I use this properties to tests the limits of the physics. funny thing, in the simulation you can change your plane and fly any flyable plane in the game |
Beta Was this translation helpful? Give feedback.




hello @SCUBA82
Sorry for the delay, but a greate thanks for the feedback.
In the last build, only the debuger was able to access to gamecontroller (i've forgot the flag in the main games.....) this new build adresse that issue.
but in your case, it might not work, for the moment i am using SDL_INIT_GAMECONTROLLER, it target control pad and build a default mapping. I don't have a hotas system myself so i am unable to test it.
I will in the next release implement the joystick control with SDL_INIT_JOYSTICK as it provide access to raw hardware and works with all joysticks, and set a configuration interface in the debugger. I will send you a message when it will be ready so to have your feedb…