-
Notifications
You must be signed in to change notification settings - Fork 533
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
evmapy.py generates an incomplete mapping file #12927
Comments
i don't reproduce the issue.
|
can you explain your issue, and give a specific case, and show the file generated so that i undertand the issue. |
Sure, my issue is related to the processing of the ABSBASEY axis only. (But of course also can happen for ABSBASEX). When the 'up' When 'down' is processes first then the This condition can happen because rom.keys file:
generated event.json file:
This event.json is missing from the axes list:
And about the later use of the |
@Tovarichtch Sorry, it seems there may be some confusion with the issue label. 😉 Just want to clarify that this issue and associated PR is not an enhancement but a bug report. The current code logic is faulty and under certain conditions explained above it produces incorrect results. All this may be overkill, but here is anyway. 😞 PoC
gunzip to get Since I thought it might take a while for a new fixed version to be released, I only opened this issue to help other users find a workaround in the meantime. And to clarify an inconsistency, as the PR fix seemed quite basic to need any explanation. |
Batocera build version
40 2024/08/03 05:52
Your architecture
Your Graphic Processor Unit(s) (GPU)
Issue description
Using the PAD TO KEYBOARD CONFIGURATION gui to map pad events to keyboard key presses creates a
<rom>.keys
with the configured mappings.Then when launching the rom
evmapy.py
generates an incompleteevent.json
file forevmapy
.Detailed reproduction steps
<rom>.keys
file looks fine.Details of any attempts to fix this yourself
Manually editing the corresponding event.json file and adding the missing ABS axis configuration and restarting evmpy with the corrected mapping while the game is still running confirms that the ABS vertical axis mapping works just fine.
Running evmapy in a tty console [Ctrl-Alt-F3] using the fixed mapping file also shows the translated key pressed fine.
The
known_axes_codes
and copy-paste bugs in v40 are also present in the current master.batocera.linux/package/batocera/core/batocera-configgen/configgen/configgen/utils/evmapy.py
Lines 357 to 363 in 4e5217b
Not sure about
absbasey_positive
but all the 6 game pads and controllers I tested show(up, left).min = 0
and(down, right).max = 255
with the current logic the up/down axis is inverted.batocera.linux/package/batocera/core/batocera-configgen/configgen/configgen/utils/evmapy.py
Line 200 in 4e5217b
Details of any modifications you have made to Batocera.
Bugfix PR #12928
Logs and data
No response
The text was updated successfully, but these errors were encountered: