Skip to content
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

Recent builds no longer allow configuring hotkeys #415

Closed
endlisnis opened this issue Apr 26, 2024 · 4 comments
Closed

Recent builds no longer allow configuring hotkeys #415

endlisnis opened this issue Apr 26, 2024 · 4 comments

Comments

@endlisnis
Copy link

Years ago, I used Nestopia and the input configuration dialog has a long list of hotkeys that could be configured.

When I ran it recently, I was surprised to find a very basic input configuration GUI:
image

No way to configure hotkeys for quick loading or saving, or anything else. Just basic controller functionality.

I see a file called ~/.config/nestopia/nestopia.conf, which seems to have configuration for lots of hotkeys, but I don't know how to map some of those long numbers to keys. For example:

qsave1=65474

I'm running v1.52.1 on Fedora Linux (Cinnamon desktop).

@rdanbrook
Copy link
Member

rdanbrook commented Apr 26, 2024

The values are FLTK enum values:
https://www.fltk.org/doc-1.3/Enumerations_8H.html
Those are in hex notation, so they'll have to be converted to decimal. Yeah, I know it sucks. That's why I'm rewriting the entire UI in modern C++ as we speak... :). When I push the changes, you'll be able to edit all the hotkeys from the GUI and also have the ability to use most of the different emulated controller types, and more advanced video filtering.

@endlisnis
Copy link
Author

OK. "qsave1=65474" in hex is 0xffc2, but ffc2 does not appear in that linked file.

@rdanbrook
Copy link
Member

The F keys are weird, they use FL_F + the number of the key:
F0: 65469 == ffbd
F1: 65470 == ffbe
F2: 65471 == ffbf
F3: 65472 == ffc0
F4: 65473 == ffc1
F5: 65474 == ffc2
F6: 65475 == ffc3
F7: 65476 == ffc4
F8: 65477 == ffc5
F9: 65478 == ffc6
F10: 65479 == ffc7
F11: 65480 == ffc8
F12: 65481 == ffc9

@rdanbrook
Copy link
Member

Fixed in latest revision

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants