-
Notifications
You must be signed in to change notification settings - Fork 25
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
input configuration (sdl / linux input) not working correctly #1546
Comments
I unplugged the wacom tablet and was able to configure a control pad without this behaviour. it appears to be an interaction with the sdl input mapping and the tablet (current wacom drivers, kde plasma desktop environment. however with the game pad (3d controller) configured the game (sega touring car championship JP demo) does not recognise inputs. (this is with wacom plugged back in - maybe a conflict?) any advice would be great. |
so currently the wacom is detected with /dev/js0 and my control pad (steam controller) is /dev/js1. with the wacom unplugged I am able to map controls however they are inconsistent in-game? (sega touring car jp demo) looked at 3d controller and regular controller. |
Can you paste your |
hi! thank you for your reply. here is the yabause.ini file.
thanks again! note: I found a udev rule file that would disable the wacom from detecting however there was a conflict with my control pad (steam controller) so I did not work with it. maybe I could look at it again? |
For any given key press value when using SDL, the SDL joystick ID is shifted 18 bits to the left so the joystick ID for A tool like https://github.com/Grumbel/sdl-jstest should help to get the SDL joystick and button IDs. Can also use PySDL2 if you have that installed. |
Button numbers:
I manually mapped my PS5 controller and it is joystick ID 0:
Not an ideal config above because this is not an ideal controller for the purpose. |
hallo, thank you for your reply! I installed that sdl2-jstest tool and found the mappings for the steam controller:
then I copied these to the kronos.ini file, following your guide:
however the inputs do not seem to affect the game? then if I attempt to remap from in the emulator it clears all mappings and enters the numerical ids from the first .ini paste. any suggestion or advice would be appreciated. thanks! |
The buttons are not based on that syntax. They are custom for this project as I pointed out in the link. You have a joystick at index 1 so you must shift that 18 bits to the left and then you have to add
Simple directional axes: joystick ID shifted to the left by 18 bits, then bitwise OR'd with Simple hats: Hat up on hat 1 on joystick 1 results in For axes values that require specific pressure levels see
|
hi, thanks for the support. what ought I do for the inputs that share a number? there is a5/b5 and a2/b2 and in your equation you do not appear to address the letter before the number for your example input (b0) thanks again! |
a means axis and b means button. They are separate inputs. |
oh, thanks yes I see now thhe triggers on this controller are axis. I will opt to work with the shoulder buttons in t heir place, since they are simple rather than axis. for the hat inputs they are provided with a decimal place (h0.1, h0.2, h0.4, h0.8). for the equation you provided, thanks again for your help with this, would be great to get input working! |
h0 means hat 0 So you use (0 << 4) which is 0 so it can be disregarded in this case. |
oh yes sure. ok I will look at getting these input numbers converted. thanks for your help! |
great, that worked! I could not get the hat equation to work, however with x+y axis on the directional control and a/b/c I will be able to get a game to run. thanks again for your support! |
The downside of this configuration system is that if the joystick ID changes then remapping is required. Auto mapping with the new SDL GUID is something that should be added to this emulator. |
I will watch out for changes in id for the controller. however I got to play a game with this emulator, which is great. appreciate the help! |
What's the full name of the game (including region) ?
only looked at input config
What's your frontend ? (standalone, libretro, ...) ?
standalone
What's your OS ? (windows, linux, OSX, ...) ?
gentoo linux
What's your hardware ? (CPU, GPU, ...) ?
ryzen 5 3600 / nvidia rtx 2060 gpu / 32 gb ram / steam controller also wacom drawing tablet which detects (incorrectly) like a gamepad
What's the storage type of the game (official cd, burned cd or cd image) ?
no game
If applicable, what's the format of your cd image ? (cue/bin, ccd/img, iso, chd, ...)
Are you using any setting different from default ? If so, precise
this is freshly compiled
Did this game work previously ? Do you remember when ? Is it happening with other games ?
the main yabause software also had this issue (input configuration)
If applicable, provide error messages, logs, screenshots, or whatever additional information that could help debugging this
when configuring the inputs, when the input is selected rather than wait for an input from control pad, the configuration dialog maps an input straight away (I do not see what it is) and marks it with a check mark. that is with sdl interface, the linux input interface does not do this however it does not appear to detect inputs at all.
any help is appreciated, this is with a git cloned source compile.
thanks!
The text was updated successfully, but these errors were encountered: