-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When launching the game via "-N" (command line) can't use gamepad #5213
Comments
Really, the source of the issue is this line: Line 520 in 7027212
It hard codes to use the keyboard no matter what. A way around this for now is to once again hard code it to:
|
The main purpose of the quick-start is to speed up testing during development of code or tracks, a use case for which the limitation is not very important. The quick-start code doesn't prevent later going back to the main menu and accessing all the other parts of the game, so you'd probably want further custom change for your kiosk-style computer to work as intended. That being said, I suppose an additional command-line parameter to pass which input device should be used in no-start-screen could be simple enough and also work for your use case? |
Yeah, I think one extra argument like Technically speaking, the game should close when the race is done but that's not a major issue as of right now since we can easily relaunch the game as needed. I have no clue who else in the world besides us that are using SuperTuxKart in a kiosk like setting. If need be, I can write the patch / merge request but if you would rather write it I am fine with that too. |
I could write it, but if you could do it that would save me some time to focus on other tickets, so that would be appreciated! Perhaps also have a look to make the command line solution a bit more general, allowing to select keyboard configurations beyond the 1st one or input devices that are not keyboards or gamepads? |
Yeah, so I can add arguments like |
Made a pull request: |
Fixed with the above PR and the following commit: 31d3596 |
@Benau Why did you reopen this? |
Description
So I want to set up a "kiosk" style computer to play SuperTuxKart where the game skips the setup and goes to a race. Best way to do that right now is to launch the game using the arguments "-N" or "-R". It works mostly as expected but by default it will always use the keyboard instead of the gamepad. This happens no matter what I do in the controls config or even editing "input.xml".
Steps to reproduce
Configuration
STK release version: 1.4
STK Source (PPA, distribution package, official binary, etc.): Ubuntu 22.04
System: amd64
Graphics card: AMD
CPU: Ryzen
Gamepads/keyboards models if related to the issue:
Regular keyboard
PS4 controller (via bluetooth)
XBox controllers are effected as well)
Additional information
input.xml:
The text was updated successfully, but these errors were encountered: