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

Suggestion: Use JoyEmu for keyboard mapping to joystick #19

Closed
Shaneus2k2 opened this issue Mar 24, 2024 · 3 comments
Closed

Suggestion: Use JoyEmu for keyboard mapping to joystick #19

Shaneus2k2 opened this issue Mar 24, 2024 · 3 comments

Comments

@Shaneus2k2
Copy link

Shaneus2k2 commented Mar 24, 2024

Located here:
https://szanella.tripod.com/joyemueng.htm

Tested with my own config of Tempest 2000 in DOS mode. In-game joystick control was flaky but after configuring JoyEmu and mapping keys to buttons, it works flawlessly. Supports at least 4-button joysticks and even up to 8 buttons if ao486 can support that.

@emubastard
Copy link
Contributor

Located here:

https://szanella.tripod.com/joyemueng.htm

Tested with my own config of Tempest 2000 in DOS mode. In-game joystick control was flaky but after configuring JoyEmu and mapping keys to buttons, it works flawlessly. Supports at least 4-button joysticks and even up to 8 buttons if ao486 can support that.

Now this is cool. We may need to look at this for as many games as it makes sense.

@Shaneus2k2
Copy link
Author

FWIW, it doesn't look like mapping 6 buttons work (without some extra config testing). I expected that maybe it would use Select/Start as buttons 5 and 6, but after mapping ESC to button 6 and Y to button 5 (to pause and confirm exit) it didn't recognise either. Still requires some testing and tinkering, but at least 4 buttons work!

@italiangrandma
Copy link

italiangrandma commented Mar 28, 2024

FYI, for a lot of games you can use the "Button/Key Remap" feature in the core to map keyboard controls to a controller/joystick. Obviously for games where you want true analog controls, this won't work, but it will work for many games.

The best way to do this currently is to use the latest MiSTer unstable build and add a line like this to your MGL files:

<setname same_dir="1">NameOfYourGame</setname>

This will force that game to create/use it's own dedicated config file named NameOfYourGame.cfg, so if you do special button mappings, they will persist (be sure to click "Save Settings" in the OSD once that mapping is done). These config files will also save any video/audio/misc settings you set in the core for that game.

Note: The file containing your Button/Controller remaps will be saved in the configs folder in media/fat/configs and be named NameOfYourGamesys.cfg. If you need to clear button mappings and start over, just delete that file.

Edit: Also, keep in mind for this method that you may need to go into the setup for your game and ensure that controls are set to keyboard.

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

3 participants