MiST - new joystick/gamepad mapping

https://github.com/mist-devel/mist-board/wiki

Moderators: Mug UK, Zorro 2, spiny, Greenious, Moderator Team

User avatar
xc8
Captain Atari
Captain Atari
Posts: 224
Joined: Mon Aug 11, 2008 5:23 pm
Location: B'ham, UK

Re: MiST - new joystick/gamepad mapping

Post by xc8 »

lips2k15 wrote:Hi guys I am using an 8bitdo SN30pro controller but am having trouble getting the buttons to map correctly - does anybody here have the mapping line for it so I can paste it into my ini file? thank you.
just a quick reply , this is mine, can't remember what is the line for the 8bitdo
(one of them is a M$ joypad)

Code: Select all

joystick_remap=0583,2060,1,2,4,8,10,20,20,8,400,800,40,80
joystick_remap=1235,ab21,1,2,4,8,10,20,0,0,0,0,400,800,0,0,40,80
joy_key_map=1000,E2
joy_key_map=2000,E6
joy_key_map=4,51
joy_key_map=8,52
User avatar
Total Eclipse
Captain Atari
Captain Atari
Posts: 282
Joined: Tue Jul 20, 2004 2:20 pm
Location: Sheepy Magna, UK

Re: MiST - new joystick/gamepad mapping

Post by Total Eclipse »

hyperterminal wrote: Yes, just add [SNES] in square brackets (mist.ini is case insensitive).
How does MiST correlate the mapping in the ini to the core? Is each core hard coded with an identifier, or does it go by the filename of the rbf file?
Atari equipment all in storage - Now playing with MiST :)
hyperterminal
Captain Atari
Captain Atari
Posts: 178
Joined: Sun Jul 09, 2017 1:43 pm

Re: MiST - new joystick/gamepad mapping

Post by hyperterminal »

Total Eclipse wrote:
hyperterminal wrote: Yes, just add [SNES] in square brackets (mist.ini is case insensitive).
How does MiST correlate the mapping in the ini to the core? Is each core hard coded with an identifier, or does it go by the filename of the rbf file?
Yes. The name/identifier is displayed in the OSD of the respective core (the vertical oriented text on the left).
muppets4
Retro freak
Retro freak
Posts: 11
Joined: Sat May 04, 2019 3:16 pm

Re: MiST - new joystick/gamepad mapping

Post by muppets4 »

fury23 wrote:I created small utility for Windows which helps me to map joystick buttons.

Image

Repository: https://github.com/loborec/mist_usb_joystick_mapper
Direct link to file: https://github.com/loborec/mist_usb_joy ... mapper.exe

I have been tinkering with this tool, but I think something is wrong with it. I use Windows 10 and what joypad I try, the buttons do not register. The directions do work and show the yellow highlight. I have tried it with a Xbox 360 gamepad, a 8bitdo SN30 pro and a few nameless USB pads. Anyone a suggestion?

Btw: the buttons work in the joy.cpl windows programm
danialbi
Atariator
Atariator
Posts: 28
Joined: Wed Sep 12, 2018 5:46 pm

Re: MiST - new joystick/gamepad mapping

Post by danialbi »

Hi all,
I would like to avoid using a keyboard at all on AtariST core, by mapping OSD, space, enter, ESC, F1, F2, "1" to my 12-button joystick
Joystick mapping works OK I checked both on games and joy test on OSD. "Shortcuts" all work OK (example OSD=START+SEL), Enter, space, ESC
But I cannot make the keyboard-joystick cmd "joy_key_map" work at all!
When I try keyboard test on OSD, no USB codes are generated when pressing P6,P7,P8 (while I get the proper codes: 3A,1E,3B when I connect a real USB keyboard)
This is my simple mist.ini:

[mist]
scandoubler_disable=0 ; set to 1 to run supported cores in 15khz
mouse_boot_mode=0 ; set to 1 if a mouse does not work well
joystick_disable_shortcuts=0 ; set to 1 to remove joystick -> keyboard commands
joystick_ignore_hat=0 ; set to 1 if having issues on gamepads with 'POV hat'
joystick_ignore_osd=0 ; set to 1 to prevent gamepad from controlling OSD
joystick_remap=0079,0006,1,2,4,8,10,20,10,20,480,800,1000,2000,90,80,A0,C0 ; remap buttons for Ralink GC controller b11 is space, B5 is ESC b12 is OSD
joy_key_map=800,3A ; Map USB keyboard "F1" to "R"
joy_key_map=1000,1E ; Map USB keyboard "1" to "L2"
joy_key_map=2000,3B ; Map USB keyboard "F2" to "R2"

I am running latest mist FW and ST Core. What am I missing?
Thanks a lot for your help
danialbi
slingshot
Atari God
Atari God
Posts: 1843
Joined: Mon Aug 06, 2018 3:05 pm

Re: MiST - new joystick/gamepad mapping

Post by slingshot »

Delete the quoted values like "F1" and "R", or all the comments from the end of the lines, this way it works for me.

Seems there's a stupid issue in the ini_parser: it appends the quoted values to the setting :)
Then 800,3A become 800,3AF1R, as "F1" and "R" is in the line.
I'll try to fix it.
danialbi
Atariator
Atariator
Posts: 28
Joined: Wed Sep 12, 2018 5:46 pm

Re: MiST - new joystick/gamepad mapping

Post by danialbi »

Oh Dear,
this has driven me crazy!
I removed the " "..and now it works, very strange since these characters were in the comment! Not trivial...

Thanks a lot slingshot
slingshot
Atari God
Atari God
Posts: 1843
Joined: Mon Aug 06, 2018 3:05 pm

Re: MiST - new joystick/gamepad mapping

Post by slingshot »

uchristo
Atari User
Atari User
Posts: 39
Joined: Wed Sep 28, 2016 3:22 pm

Re: MiST - new joystick/gamepad mapping

Post by uchristo »

will it be possible to remap DB9-Joysticks aswell?

The use-case:
I just started Jotegos BubbleBobble Arcade (Great game!), but am quite unhappy with controls because I have to press button 2 for Jumping (I'm using a Competition Pro with the right button connected to Pin9 (Button2). That's a bit uncomfortable :-P
Is there a way to reorder Controls for DB9 aswell? I just saw that for USB-Devices...


Referer: https://github.com/jotego/jtbubl/issues/5
Post Reply

Return to “MiST”