MISTer (Main Core)

https://github.com/MiSTer-devel/Main_MiSTer/wiki

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

paulbnl
Atariator
Atariator
Posts: 29
Joined: Wed Oct 24, 2018 9:43 am

Re: MISTer (Main Core)

Postby paulbnl » Tue Feb 05, 2019 10:44 pm

Sorgelig wrote:There is no flag of PAL/NTSC. It can be decided that 55Hz and less is PAL, while above 55Hz is NTSC.
I will think about it. Gladly, it's fully doable from HPS side.


Thanks for adding the auto switch! It works great.

guvner
Atariator
Atariator
Posts: 21
Joined: Sun Dec 09, 2018 12:32 am

Re: MISTer (Main Core)

Postby guvner » Mon Mar 18, 2019 1:37 pm

With the latest update, assigning first and second stick axis cannot be skipped. I use the 8bitdo red brick adapter and my controller does not have sticks. I had to connect a ps4 controller and assign the sticks and then reconnect my usual controller to be able to assign the directional buttons again.

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4699
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: MISTer (Main Core)

Postby Sorgelig » Mon Mar 18, 2019 1:49 pm

press space on keyboard to skip it.

guvner
Atariator
Atariator
Posts: 21
Joined: Sun Dec 09, 2018 12:32 am

Re: MISTer (Main Core)

Postby guvner » Mon Mar 18, 2019 1:57 pm

I did press space, but when I got to the directional buttons, my gamepad input wasn't recognized. Only when I assigned the stick axis to my ps4 controller and then switched over to my regular controller I was able to assign the buttons.
EDIT: I just tried again and the only buttons, that are not recognized when skipping the axis are left and up, everything else works. When I assign the axis to my ps4 controller, left and up work like normal.

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4699
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: MISTer (Main Core)

Postby Sorgelig » Mon Mar 18, 2019 2:18 pm

I did it many times (skipped Stick1/2 maps by space) with several my controllers - all went fine.
Either you doing something wrong or i have not enough info to understand the issue.

in USB console, what input events are produced by dpad on your stick-less gamepad?

guvner
Atariator
Atariator
Posts: 21
Joined: Sun Dec 09, 2018 12:32 am

Re: MISTer (Main Core)

Postby guvner » Mon Mar 18, 2019 2:54 pm

so I tried again and this time only with the ps4 controller and here, skipping the axis is not a problem. All buttons are recognized. If I use the 8bitdo M30 controller, left and up don't work if I skip the axis. Input events read like this:

Code: Select all

Input event: type=EV_ABS, Axis=1, Offset:=-32768, jnum=1, ID:045e:028e. ABS_INFO: min = -32768 max = 32767 fuzz = 16
PS2 code(make)(ext) for core: 117(0x75)
Input event: type=EV_ABS, Axis=1, Offset:=-1, jnum=1, ID:045e:028e. ABS_INFO: min = -32768 max = 32767 fuzz = 16
PS2 code(break)(ext) for core: 117(0x75)
Input event: type=EV_ABS, Axis=0, Offset:=-32768, jnum=1, ID:045e:028e. ABS_INFO: min = -32768 max = 32767 fuzz = 16
PS2 code(make)(ext) for core: 107(0x6B)
Input event: type=EV_ABS, Axis=0, Offset:=0, jnum=1, ID:045e:028e. ABS_INFO: min = -32768 max = 32767 fuzz = 16
PS2 code(break)(ext) for core: 107(0x6B)

esmith13
Atariator
Atariator
Posts: 26
Joined: Tue Oct 30, 2018 8:06 pm

Re: MISTer (Main Core)

Postby esmith13 » Mon Mar 18, 2019 3:09 pm

I can confirm the EXACT same behavior as gunver with the 8bitdo M30 controller, an 8bitdo USB Receiver and the new MiSTer menu version.
Issue does not happen with any other 8bitdo controller nor PS/XB controller when using the same USB receiver.

There is a firmware update for the M30, going to try that and report back again.


EDIT: Same issue on Firmware v1.10 (latest)

EDIT2: Firmware v1.10 for the M30 adds the ability to switch the DPad to represent your choice of the left analog, right analog or an actual dpad. Setting the option to Left Analog works as a workaround for now as you can use the dpad to tilt right and down for stick 1, skip stick 2 and reuse the dpad in analog mode again for the 4 dpad directions.

I have had other issues with the M30 on various devices related to dpad input. I don't think this is on anyone here to fix but 8bitdo themselves.

P.S.: If it helps to sort this out without waiting on 8bitdo, the dpad is seen as an analog HAT input on this device, not a true dpad. Hence why I think 8bitdo needs to resolve this via firmware.

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4699
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: MISTer (Main Core)

Postby Sorgelig » Mon Mar 18, 2019 3:36 pm

Input event: type=EV_ABS, Axis=1

If this event is produced by M30 gamepad, then it sends analog stick events from DPAD.
In this case you simply need to press the DPAD RIGHT/DOWN in Stick 1 definition (skip for Stick 2).

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4699
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: MISTer (Main Core)

Postby Sorgelig » Mon Mar 18, 2019 3:41 pm

esmith13 wrote:Firmware v1.10 for the M30 adds the ability to switch the DPad to represent your choice of the left analog, right analog or an actual dpad.

i suggest to switch it to actual DPAD mode (axes 16/17 -1,0,1) for best compatibility.
Then you can simply skip Stick 1/2 definitions.

esmith13
Atariator
Atariator
Posts: 26
Joined: Tue Oct 30, 2018 8:06 pm

Re: MISTer (Main Core)

Postby esmith13 » Mon Mar 18, 2019 3:51 pm

Your suggestion works in "dpad" mode but as I said this is actually an 8bitdo issue since the dpad mode is an analog HAT.

Other setups ( ie: RetroPie) have issues with accepting input from the dpad in certain modes as well as the digital L + R shoulder buttons which read as analog +Z and -Z instead of buttons.

guvner
Atariator
Atariator
Posts: 21
Joined: Sun Dec 09, 2018 12:32 am

Re: MISTer (Main Core)

Postby guvner » Mon Mar 18, 2019 3:52 pm

The input events I posted are from the "actual DPAD" mode...
The left stick mode looks like this

Code: Select all

Input event: type=EV_ABS, Axis=1, Offset:=0, jnum=1, ID:2dc8:3100. ABS_INFO: min = 0 max = 255
Input event: type=EV_ABS, Axis=1, Offset:=127, jnum=1, ID:2dc8:3100. ABS_INFO: min = 0 max = 255
Input event: type=EV_ABS, Axis=0, Offset:=0, jnum=1, ID:2dc8:3100. ABS_INFO: min = 0 max = 255
Input event: type=EV_ABS, Axis=0, Offset:=127, jnum=1, ID:2dc8:3100. ABS_INFO: min = 0 max = 255

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4699
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: MISTer (Main Core)

Postby Sorgelig » Mon Mar 18, 2019 4:07 pm

guvner wrote:The input events I posted are from the "actual DPAD" mode...
The left stick mode looks like this

Both versions are not DPAD modes. It seems 8bitdo has weird imagination of DPAD actions.

Anyway, as i've said you can press RIGHT/DOWN for Stick 1 definition and it should work.

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4699
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: MISTer (Main Core)

Postby Sorgelig » Mon Mar 18, 2019 4:09 pm

esmith13 wrote:as the digital L + R shoulder buttons which read as analog +Z and -Z instead of buttons.

what events are produced by press/release of LT/RT?

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4699
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: MISTer (Main Core)

Postby Sorgelig » Mon Mar 18, 2019 4:11 pm

guvner wrote:The input events I posted are from the "actual DPAD" mode...
The left stick mode looks like this

Code: Select all

Input event: type=EV_ABS, Axis=1, Offset:=0, jnum=1, ID:2dc8:3100. ABS_INFO: min = 0 max = 255
Input event: type=EV_ABS, Axis=1, Offset:=127, jnum=1, ID:2dc8:3100. ABS_INFO: min = 0 max = 255
Input event: type=EV_ABS, Axis=0, Offset:=0, jnum=1, ID:2dc8:3100. ABS_INFO: min = 0 max = 255
Input event: type=EV_ABS, Axis=0, Offset:=127, jnum=1, ID:2dc8:3100. ABS_INFO: min = 0 max = 255


after more precise look it seems you switch between XInput/DInput. Not between DPAD modes. So You need to read the manual more precise.

guvner
Atariator
Atariator
Posts: 21
Joined: Sun Dec 09, 2018 12:32 am

Re: MISTer (Main Core)

Postby guvner » Mon Mar 18, 2019 4:14 pm

Sorgelig wrote:after more precise look it seems you switch between XInput/DInput. Not between DPAD modes. So You need to read the manual more precise.


I'm doing what 8bitdo put in their update log.

Code: Select all

SELECT + DPAD_UP = DPAD
SELECT + DPAD_LEFT= LEFT JOYSTICK


Sorgelig wrote:what events are produced by press/release of LT/RT?


Code: Select all

Input event: type=EV_ABS, Axis=2, Offset:=255, jnum=0, ID:045e:028e. ABS_INFO: min = 0 max = 255
Input event: type=EV_ABS, Axis=2, Offset:=0, jnum=1, ID:045e:028e. ABS_INFO: min = 0 max = 255
Input event: type=EV_ABS, Axis=5, Offset:=255, jnum=1, ID:045e:028e. ABS_INFO: min = 0 max = 255
Input event: type=EV_ABS, Axis=5, Offset:=0, jnum=1, ID:045e:028e. ABS_INFO: min = 0 max = 255

esmith13
Atariator
Atariator
Posts: 26
Joined: Tue Oct 30, 2018 8:06 pm

Re: MISTer (Main Core)

Postby esmith13 » Mon Mar 18, 2019 4:18 pm

Sorgelig wrote:
esmith13 wrote:as the digital L + R shoulder buttons which read as analog +Z and -Z instead of buttons.

what events are produced by press/release of LT/RT?


On a windows PC in both Dinput and Xinput mode they show as Analog Z from 0 to -127 and from 0 to +127.

They totally screwed up the firmware on this controller. I have a decent selection of 8bitdo controllers, with and without analog sticks and none of the others have issues like this.

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4699
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: MISTer (Main Core)

Postby Sorgelig » Mon Mar 18, 2019 4:19 pm

guvner wrote:I'm doing what 8bitdo put in their update log.

In your logs i see VID/PID are changed according to XInput/DInput. So may be manual is wrong or bug in firmware.
Ok. it's not important as it's already compatible with MiSTer.

guvner wrote:

Code: Select all

Input event: type=EV_ABS, Axis=2, Offset:=255, jnum=0, ID:045e:028e. ABS_INFO: min = 0 max = 255
Input event: type=EV_ABS, Axis=2, Offset:=0, jnum=1, ID:045e:028e. ABS_INFO: min = 0 max = 255
Input event: type=EV_ABS, Axis=5, Offset:=255, jnum=1, ID:045e:028e. ABS_INFO: min = 0 max = 255
Input event: type=EV_ABS, Axis=5, Offset:=0, jnum=1, ID:045e:028e. ABS_INFO: min = 0 max = 255

this is also compatible with MiSTer. Same codes are produced by any other gamepad LT2/RT2 connected to 8bitdo receiver.

esmith13
Atariator
Atariator
Posts: 26
Joined: Tue Oct 30, 2018 8:06 pm

Re: MISTer (Main Core)

Postby esmith13 » Mon Mar 18, 2019 4:22 pm

guvner wrote:
Sorgelig wrote:after more precise look it seems you switch between XInput/DInput. Not between DPAD modes. So You need to read the manual more precise.


I'm doing what 8bitdo put in their update log.

Code: Select all

SELECT + DPAD_UP = DPAD
SELECT + DPAD_LEFT= LEFT JOYSTICK


Another 8bitdo screw-up... The same exact commands were used in firmware 1.10 for the M30 to switch DPad mode as were already established in the USB receiver firmware to switch between Xinput/Dinput/MacOS modes. So, if the M30 is synced to the USB receiver already, everytime you change the dpad mode it also changed the input mode unintentionally.

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4699
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: MISTer (Main Core)

Postby Sorgelig » Mon Mar 18, 2019 4:22 pm

esmith13 wrote:On a windows PC in both Dinput and Xinput mode they show as Analog Z from 0 to -127 and from 0 to +127.

This is awkward, but should work with new MiSTer. You need to press RT(or LT - whatever produces +127) for Stick 2 (either for RIGHT or DOWN and skip the other axis).

but it seems you can switch the mode as guvner's log shows other codes.

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4699
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: MISTer (Main Core)

Postby Sorgelig » Mon Mar 18, 2019 4:25 pm

I've ordered M30.
Actually 8bitdo gamepads have internal modes as well. So, it's possible you need to switch gamepad to specific mode, then next you need to switch 8bitdo receive to desired mode.
Same confusion exists on SF30/SN30 Pro gamepads.

robfish
Atariator
Atariator
Posts: 20
Joined: Wed Oct 24, 2018 11:20 pm

Re: MISTer (Main Core)

Postby robfish » Mon Mar 18, 2019 4:30 pm

Latest mister core made the Buffalo USB controller stop working. Even tried to setup the joystick and it still didn't see all buttons. Previous core it works.

guvner
Atariator
Atariator
Posts: 21
Joined: Sun Dec 09, 2018 12:32 am

Re: MISTer (Main Core)

Postby guvner » Mon Mar 18, 2019 4:33 pm

esmith13 wrote: So, if the M30 is synced to the USB receiver already, everytime you change the dpad mode it also changed the input mode unintentionally.


I didn't realise that. I will try again later tonight with a usb chord.

esmith13
Atariator
Atariator
Posts: 26
Joined: Tue Oct 30, 2018 8:06 pm

Re: MISTer (Main Core)

Postby esmith13 » Mon Mar 18, 2019 4:45 pm

guvner wrote:
esmith13 wrote: So, if the M30 is synced to the USB receiver already, everytime you change the dpad mode it also changed the input mode unintentionally.


I didn't realise that. I will try again later tonight with a usb chord.


You shouldn't have had to realize it. I am a hardcore lover of 8bitdo products but their M30 release is garbage so far IMHO.
I think the issue is that back when the SN30/SF30 were out (no analog input) everything was fine. Now they are putting out a new controller without analog in the era where all of their controllers have it and they probably dropped in a board from a SN30Pro/SF30Pro and wrote a custom firmware for that meant for a digital only controller and it's growing pains in getting it right. The old boards from the digital controllers are two inputs shy of what's needed for the M30 so they couldn't just go back to that board...

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4699
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: MISTer (Main Core)

Postby Sorgelig » Mon Mar 18, 2019 4:47 pm

robfish wrote:Latest mister core made the Buffalo USB controller stop working. Even tried to setup the joystick and it still didn't see all buttons. Previous core it works.

probably you didn't define it correctly.
Try to press RIGHT and DOWN for Stick 1 using joystick directions.

terminator2k2
Atarian
Atarian
Posts: 8
Joined: Sat Dec 22, 2018 10:23 pm

Re: MISTer (Main Core)

Postby terminator2k2 » Mon Mar 18, 2019 5:17 pm

im using a 8bitdo sn30 pro and can map the 2 analogue sticks aswell as the d-pad and buttons, now all cores use the left analogue stick for directions....

ive gone into each cores menu and re-mapped the directional buttons to my dpad, which works ok but sometimes if im pressing left then press right , it doesnt respond, also happens right then left....

analogue stick works fine


Return to “MiSTer”

Who is online

Users browsing this forum: ravenhawk2087 and 6 guests