-
Notifications
You must be signed in to change notification settings - Fork 3
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
CLI: Key Slots and path to the file #147
Comments
I can confirm that the default next/previous slot mappings of [ and ] do not work at all with a Spanish keyboard layout. The ' key doesn't work either. There's also a problem where if you map the ` or ´ key in the GUI (locations of [ and ' on a US keyboard), the mapping will work temporarily, but it will stop working after you close and re-exit. I think the problem is that internally the input mapping code is using SDL keycodes (what key was pressed in the current layout) where it should be using SDL scancodes (physical location of the pressed key), and maybe converting to a keycode for display in the GUI and in the config printout. |
Thanks so much for confirming. or maybe the problem is I need to press 3 keys to write [ while you only 1... So jgenesis doesn't understand what key i am pressing... crtl , alt or ` By the way, thanks so much for spending your time with this problem. |
fyi the relative file path issue is fixed and will go into the next release.
Well, it sees that all three keys are pressed, but it reads this as Ctrl and Alt and ` each being pressed separately so it doesn't trigger the [ input mapping. This is because the emulator is watching individual key press/release events rather than trying to determine what character that key combination would produce in a text input. From what I could tell there is no key in the Spanish layout that will match a [ input mapping or a ] mapping. I tested using SDL scancodes for input mapping instead of SDL keycodes, and that does fix all of these issues with the Spanish layout, but I was seeing some odd behavior with the Ctrl/Alt/Shift modifier keys when using custom layouts that change the positions of those keys (e.g. swapping Left Ctrl and Caps Lock). It might work to do a hybrid approach where modifier keys use SDL keycode for input mapping and all other keys use SDL scancode, but I'm going to need to do a lot of testing to make sure that doesn't have any unexpected effects for customized layouts. |
Hello, i was trying the CLI version and I found two problems.
first problem:
If i have jgenesis-cli_0.8.3_x86_64.AppImage and Sonic.md in the same folder and i run
./jgenesis-cli_0.8.3_x86_64.AppImage --file-path Sonic.md
or
./jgenesis-cli_0.8.3_x86_64.AppImage --file-path ./Sonic.md
or
./jgenesis-cli_0.8.3_x86_64.AppImage --file-path "Sonic.md"
or
./jgenesis-cli_0.8.3_x86_64.AppImage --file-path "./Sonic.md"
or with ' instead of ", the program answers:
It only works if i write ALL the route:
./jgenesis-cli_0.8.3_x86_64.AppImage --file-path "/home/kudomarkos/AppImagenes/Sonic.md"
second problem:
About mapping and saving or loading states
SaveState -> 'Key: F5', LoadState -> 'Key: F6', NextSaveStateSlot -> 'Key: ]', PrevSaveStateSlot -> 'Key: ['
If i press F5, ok it saves the game in slot 0 in the folder of.... QUESTION: the AppImage's folder or the ROM's folder?
[2025-01-06T10:44:09Z INFO jgenesis_native_driver::mainloop] Saved state to slot 0 in '/home/kudomarkos/AppImagenes/Sonic_0.jst'
If i press F6, ok it loads slot 0
But, if I press
[
(ctrl + alt gr + [ ) in Spanish Keyboard and later I press F5 to save it... presumely in slot 1:[2025-01-06T11:22:19Z INFO jgenesis_native_driver::mainloop] Saved state to slot 0 in '/home/kudomarkos/AppImagenes/Sonic_0.jst'
Tadaaaa!!!!! It has overwritten my Slot 0 state !!!!!!
I wonder if we need more keys.. or if you can ... overlay a context menu like the MAME CLI used to do
When you press F5 a overlayed menu appears with the options (save slot 0, slot 1..... slot whatever.. and BACK TO GAME for those they really dont want to save anything, only testing)
and when you press F6 a overlayed menu appears with the options (load slot 0, slot 1..... slot whatever... and BACK TO GAME for those they really dont want to load anything, only testing)
I had no idea about rust, sorry... maybe it is impossible
MAME version:
Thanks so much for this amazing app.
The text was updated successfully, but these errors were encountered: