MiST - new joystick/gamepad mapping

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

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

Televicious
Atari freak
Atari freak
Posts: 57
Joined: Sun Sep 24, 2017 6:18 pm

Re: MiST - new joystick/gamepad mapping

Postby Televicious » Fri Feb 01, 2019 8:23 pm

Code: Select all

firmware_190110
===============
- Don't hardcode settings for Vid:0079, Pid:0011 controllers



Oh snap, thank you. Cannot wait to test this out. At least one pair of controllers I have should be fully functioning.

It works! Very well, all buttons can map now. You're my hero.

goran
Atari freak
Atari freak
Posts: 63
Joined: Sat Feb 27, 2016 4:17 pm

Re: MiST - new joystick/gamepad mapping

Postby goran » Fri Feb 08, 2019 5:55 pm

Hi,

I still can't map all buttons on my controller and I don't know what's the problem. Latest fw.

My mist.ini:

Code: Select all

[mist]
scandoubler_disable=0
joystick_remap=0810,E501,1,2,4,8,100,10,20,200,400,800,0,0,40,80
joystick_remap=0810,0001,1,2,4,8,200,20,10,100,40,80,400,800,40,80,40,80

sel (40) mapped on button 5 works:
selectW.jpg


It also works on button 9:
select2W.jpg


start (80) works on button 6:
startW.jpg


but not on button 10:
startNW.jpg


Also, last two buttons (hats) are also defined as select and start, but also shows as empty on test.

What am I missing here?

Best regards,
Goran
You do not have the required permissions to view the files attached to this post.

DanyPPC
Atari Super Hero
Atari Super Hero
Posts: 727
Joined: Tue Feb 21, 2017 7:02 am

Re: MiST - new joystick/gamepad mapping

Postby DanyPPC » Sat Feb 09, 2019 8:51 am

Check in Windows the real sequence of buttons as some may have been mapped as button 13, 14, etc...

goran
Atari freak
Atari freak
Posts: 63
Joined: Sat Feb 27, 2016 4:17 pm

Re: MiST - new joystick/gamepad mapping

Postby goran » Sat Feb 09, 2019 1:46 pm

I checked with mapper.exe. Same thing. Mist detects the buttons but nothing is assigned to them despite the entry in mist.ini.

Lroby74
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 136
Joined: Sun Sep 04, 2016 8:35 pm

Re: MiST - new joystick/gamepad mapping

Postby Lroby74 » Sat Feb 09, 2019 3:12 pm

goran wrote:I bought Playstation to USB adapter and it's working on MiST. I just have a problem with buttons mapping.

I have the following line in mist.ini:
joystick_remap=0810,0001,1,2,4,8,200,20,10,100,40,80,400,800,40,80

ME :
Please don't count numbers 1,2,4,8 like buttons, they are 4 directions movement, insted start to count from first number beyond, in your mapping above fire buttons numbers are only 10 and starts from 200, then try do don't put 2 times 40 & 80, in buttons that you don't need to use, put 0, for example :

joystick_remap=0810,0001,1,2,4,8,200,20,10,100,0,0,400,800,40,80

i am using a Psx to USB converter too and mapped only time then any PSX joystick i wish to use, it will use always correct mapping


goran
Atari freak
Atari freak
Posts: 63
Joined: Sat Feb 27, 2016 4:17 pm

Re: MiST - new joystick/gamepad mapping

Postby goran » Sat Feb 09, 2019 4:08 pm

Lroby74 wrote:
goran wrote:I bought Playstation to USB adapter and it's working on MiST. I just have a problem with buttons mapping.

I have the following line in mist.ini:
joystick_remap=0810,0001,1,2,4,8,200,20,10,100,40,80,400,800,40,80

ME :
Please don't count numbers 1,2,4,8 like buttons, they are 4 directions movement, insted start to count from first number beyond, in your mapping above fire buttons numbers are only 10 and starts from 200, then try do don't put 2 times 40 & 80, in buttons that you don't need to use, put 0, for example :

joystick_remap=0810,0001,1,2,4,8,200,20,10,100,0,0,400,800,40,80

i am using a Psx to USB converter too and mapped only time then any PSX joystick i wish to use, it will use always correct mapping


Well, this is my actual mapping:
joystick_remap=0810,0001,1,2,4,8,200,20,10,100,1000,2000,400,800,40,80

so there is no double mapping and button functions are defined (no matter if You call it button 9 or something else).I just did that for testing that select and start are working at all. And, as far as I know, nothing's wrong with putting the same function on multiple buttons, so that shouldn't be the issue. Still last two buttons, mapped as select and start, are detected but have no function assigned despite correct(?) mist.ini.

Best regards,
Goran

User avatar
retrofun
Atariator
Atariator
Posts: 19
Joined: Sat Jan 12, 2019 3:12 pm

Re: MiST - new joystick/gamepad mapping

Postby retrofun » Sat Feb 09, 2019 4:41 pm

goran wrote:but not on button 10:
Image

Also, last two buttons (hats) are also defined as select and start, but also shows as empty on test.

What am I missing here?

Maybe you have to map the bit location of (the "dead") buttons in the USB HID message to the MiST internal software joypad with hid_button_remap option as described by Newsdee: viewtopic.php?f=115&t=28174&start=75#p359712

I've done that successfully with iNNEXT NES gamepad clones Y-D002-024 that didn't work with MiST firmware < 190110 (e.g. "dead" Y button): viewtopic.php?f=115&t=28174&start=75#p363850

On Linux hid-replay (https://github.com/bentiss/hid-replay) is helpful.

goran
Atari freak
Atari freak
Posts: 63
Joined: Sat Feb 27, 2016 4:17 pm

Re: MiST - new joystick/gamepad mapping

Postby goran » Sun Feb 10, 2019 12:27 pm

Thanks. I installed linux, installed hid-replay.

Pressed SELECT on controller and one different entry in log was:
E: 1.647910 8 01 7f 7f 7f 7f 0f 10 00

For START it's:
E: 1.247623 8 01 7f 7f 7f 7f 0f 20 00

no buttons pressed is
E: 0.287869 8 02 7f 7f 7f 7f 0f 00 00

I don't understand how to use this info to map SELECT to button 9 and START to button 10 in mist.ini. :shrug:

Best regards,
Goran

User avatar
retrofun
Atariator
Atariator
Posts: 19
Joined: Sat Jan 12, 2019 3:12 pm

Re: MiST - new joystick/gamepad mapping

Postby retrofun » Sun Feb 10, 2019 2:59 pm

Hmm, when you press SELECT or START two bits change. In byte 0 and byte 6.

Anyway, you can try

Code: Select all

hid_button_remap=0810,0001,51,9
hid_button_remap=0810,0001,50,10

This should map SELECT to btn 9 (default: L2) and START to btn 10 (default: R2) -> https://github.com/mist-devel/mist-boar ... lt-mapping which can then be remapped with joystick_remap (that's what you're trying to do!).

Hope this helps to understand the mapping of hid_button_remap:

Code: Select all

Byte:   0        1        2        3        4        5        6        7
        00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
        ^        ^        ^        ^        ^        ^        ^        ^
Bit:    0        8        16       24       32       40       48       56

For SELECT and START with your USB adapter this is:

Code: Select all

SELECT:
hex:    01       7f       7f       7f       7f       0f       10       00
bin:    00000001 01111111 01111111 01111111 01111111 00001111 00010000 00000000
                                                                 ^- bit 51

START:
hex:    01       7f       7f       7f       7f       0f       20       00
bin:    00000001 01111111 01111111 01111111 01111111 00001111 00100000 00000000
                                                                ^- bit 50

goran
Atari freak
Atari freak
Posts: 63
Joined: Sat Feb 27, 2016 4:17 pm

Re: MiST - new joystick/gamepad mapping

Postby goran » Sun Feb 10, 2019 5:03 pm

Thank You for instructions.

However, after inserting
hid_button_remap=0810,0001,51,9
hid_button_remap=0810,0001,50,10
into mist.ini, button 9 is still empty and button 10 is no longer detected.

Best regards,
Goran

User avatar
retrofun
Atariator
Atariator
Posts: 19
Joined: Sat Jan 12, 2019 3:12 pm

Re: MiST - new joystick/gamepad mapping

Postby retrofun » Mon Feb 11, 2019 8:25 pm

goran wrote:Thank You for instructions.

However, after inserting
hid_button_remap=0810,0001,51,9
hid_button_remap=0810,0001,50,10
into mist.ini, button 9 is still empty and button 10 is no longer detected.

Best regards,
Goran


Aargh, button count starts at zero. Sorry. Try:

Code: Select all

hid_button_remap=0810,0001,51,8
hid_button_remap=0810,0001,50,9

goran
Atari freak
Atari freak
Posts: 63
Joined: Sat Feb 27, 2016 4:17 pm

Re: MiST - new joystick/gamepad mapping

Postby goran » Tue Feb 12, 2019 10:05 am

Done. Now neither START or SELECT button press is detected. :shrug:

Best regards,
Goran
Last edited by goran on Mon Feb 18, 2019 9:39 am, edited 1 time in total.

Albator
Atarian
Atarian
Posts: 4
Joined: Fri Dec 28, 2007 1:11 pm

Re: MiST - new joystick/gamepad mapping

Postby Albator » Sun Feb 17, 2019 8:40 pm

desUBIKado wrote:This is my setting for Hyperkin GN6 USB:

joystick_remap=0079,0011,1,2,4,8,10,20,800,100,200,400,0,0,40,80


Hello, I have the same hyperkin pad.
For mine, the correct mapping is:
joystick_remap=0079,0011,1,2,4,8,10,20,800,100,200,400,0,0,40,80

Using your mapping, the "Mode" trigger and "C" button are swapped, this is annoying when playing Street Fighter 2 :D

desUBIKado
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 110
Joined: Sat Jan 06, 2018 11:49 pm

Re: MiST - new joystick/gamepad mapping

Postby desUBIKado » Mon Feb 18, 2019 9:47 pm

Albator wrote:
desUBIKado wrote:This is my setting for Hyperkin GN6 USB:

joystick_remap=0079,0011,1,2,4,8,10,20,800,100,200,400,0,0,40,80


Hello, I have the same hyperkin pad.
For mine, the correct mapping is:
joystick_remap=0079,0011,1,2,4,8,10,20,800,100,200,400,0,0,40,80

Using your mapping, the "Mode" trigger and "C" button are swapped, this is annoying when playing Street Fighter 2 :D


You're right. I've changed my configuration. Thanks a lot.

User avatar
farvardin
Captain Atari
Captain Atari
Posts: 382
Joined: Fri Jan 01, 2010 5:50 pm
Location: France
Contact:

Re: MiST - new joystick/gamepad mapping

Postby farvardin » Thu Feb 21, 2019 2:15 pm

I'm also stuck with the configuration...

I own a generic cheap SNES USB gamepad (from ebay or aliexpress), they work well, but I can't configure correctly the two extra buttons for playing with the Genesis core.

In my mist.in I have:

Code: Select all

joystick_remap=0810,E501,1,2,4,8,20,10,20,10,400,800,40,80,40,80


It works OK, except the X (0x100) and Y (0x200) buttons are mapped to A (0x10) and B (0x20) (A and B buttons are working well too).

Select (0x40) and Start (0x80) are working fine too.

If I change only the 7the and the 10th values, assigning the X and Y buttons, then I get the X and Y buttons to work

Code: Select all

joystick_remap=0810,E501,1,2,4,8,100,10,20,200,400,800,40,80,40,80


The problem is now my Start button is correctly detected when I press it (same place as before), but is no longer assigned to start.

I've tried to compile HID replay on Linux, but I get an error.

muppets4
Atarian
Atarian
Posts: 5
Joined: Sat May 04, 2019 3:16 pm

Re: MiST - new joystick/gamepad mapping

Postby muppets4 » Sun May 05, 2019 8:03 pm

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_joystick_mapper/raw/master/mapper.exe


Great tool! Thanks for sharing!

gibs
Atarian
Atarian
Posts: 3
Joined: Sun Apr 03, 2011 6:05 pm

Re: MiST - new joystick/gamepad mapping

Postby gibs » Wed May 29, 2019 7:46 pm

Hi guys,

Is it possible to map '1','2' on the joystick (To start with 1 or 2 players) ?

I tried to

joy_key_map=400,1E
joy_key_map=400,1F

To send 1/2 with my L/B button with no luck.

Thanks

Televicious
Atari freak
Atari freak
Posts: 57
Joined: Sun Sep 24, 2017 6:18 pm

Re: MiST - new joystick/gamepad mapping

Postby Televicious » Tue Jun 11, 2019 10:16 pm

Tried the new CD32 controller version of minimig 1.2.3. Button mapping is way off. R button maps to nothing, L maps to pause/menu. I and II are switched. X and Y are rewind/FF. Start and Select are III and IV.

Is this meant for DB9 only or does it need a firmware update?

slingshot
Atari Super Hero
Atari Super Hero
Posts: 980
Joined: Mon Aug 06, 2018 3:05 pm

Re: MiST - new joystick/gamepad mapping

Postby slingshot » Wed Jun 12, 2019 7:22 am

Televicious wrote:Tried the new CD32 controller version of minimig 1.2.3. Button mapping is way off. R button maps to nothing, L maps to pause/menu. I and II are switched. X and Y are rewind/FF. Start and Select are III and IV.

Is this meant for DB9 only or does it need a firmware update?

Is your mapping works with Genesis 6-button support? I'm using the same joystick_remap line, and works both in Minimig and Genesis.
I've used this test when added the CD32 pad support: http://aminet.net/package/driver/input/joytest_CP.lha

slingshot
Atari Super Hero
Atari Super Hero
Posts: 980
Joined: Mon Aug 06, 2018 3:05 pm

Re: MiST - new joystick/gamepad mapping

Postby slingshot » Wed Jun 12, 2019 7:29 am

gibs wrote:Hi guys,

Is it possible to map '1','2' on the joystick (To start with 1 or 2 players) ?

I tried to

joy_key_map=400,1E
joy_key_map=400,1F

To send 1/2 with my L/B button with no luck.

Thanks

Some arcade cores are using F1 and F2. Also key 1's scan code is 16, key 2 is 1E

Televicious
Atari freak
Atari freak
Posts: 57
Joined: Sun Sep 24, 2017 6:18 pm

Re: MiST - new joystick/gamepad mapping

Postby Televicious » Thu Jun 13, 2019 5:12 am

slingshot wrote:
Televicious wrote:Tried the new CD32 controller version of minimig 1.2.3. Button mapping is way off. R button maps to nothing, L maps to pause/menu. I and II are switched. X and Y are rewind/FF. Start and Select are III and IV.

Is this meant for DB9 only or does it need a firmware update?

Is your mapping works with Genesis 6-button support? I'm using the same joystick_remap line, and works both in Minimig and Genesis.
I've used this test when added the CD32 pad support: http://aminet.net/package/driver/input/joytest_CP.lha


Yea, works with Genesis with a bit of a remap for that core specifically, but it's a bit different. I used the Workbench 3.10 Joytest program to confirm what was actually going on. Guess I can try the genesis map on minimig too, but it seems far different from that even.

slingshot
Atari Super Hero
Atari Super Hero
Posts: 980
Joined: Mon Aug 06, 2018 3:05 pm

Re: MiST - new joystick/gamepad mapping

Postby slingshot » Thu Jun 13, 2019 8:01 am

CD32 pad buttons and MiST fire buttons internal numbering are mapped 1:1. But as CD32 buttons are not numbered, it's possible that your idea about button numbers and the CD32's are different.


Return to “MiST”

Who is online

Users browsing this forum: No registered users and 3 guests