Joystick testing thread

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

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

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

Re: Joystick testing thread

Postby Sorgelig » Fri Jan 04, 2019 1:34 pm

If you are talking about arcades - then all of them (except couple) are single player arcades. For 2 players they use player rotation. So, there is no reason to use 2 separate controls as it can be played from single joystick.

rjbrown99
Atarian
Atarian
Posts: 6
Joined: Sat Feb 27, 2016 7:38 am

Re: Joystick testing thread

Postby rjbrown99 » Sat Jan 05, 2019 1:20 am

I'm new with my MiSTer + board, trying to get a joystick to work with the NES core (following the setup instructions). Trying with an iBuffalo Classic USB Gamepad (SNES). Upon connection, no buttons work at all on the gamepad, here's what it says when I load the debug window:

The file js0 was created.
Close all devices.
Open up to 10 input devices.
opened /dev/input/event0 (0583:2060)
has LEDs.
opened /dev/input/event1 (046d:404d)
The file event0 was created.
Close all devices.
Open up to 10 input devices.
opened /dev/input/event0 (0583:2060)
has LEDs.
opened /dev/input/event1 (046d:404d)

Now when I press any button on the controller, it says this:

FileLoad(open) File:/media/fat/config/NES_input_0583_2060.map, error: -1
FileLoad(open) File:/media/fat/config/input_0583_2060.map, error: -1
FileLoad(open) File:/media/fat/config/input_0583_2060.map, error: -1

...and that's it.

Any ideas? I can see that the /config folder now exists on the sdcard and was created by running the system for the first time (but it was not created by the Windows installer that writes the sdcard). I logged in to the Linux partition, can see /media/fat mounted, and verified that I can touch a file in there so it is mounted read/write. The linux dmesg history shows what looks like a standard set of expected messages upon connection of the controller.

beatchef
Atarian
Atarian
Posts: 5
Joined: Sat Jan 05, 2019 1:53 am

Re: Joystick testing thread

Postby beatchef » Sat Jan 05, 2019 2:12 am

Xbox 360 wired joypad - Seems totally fine and useable but will constantly press right in 8 and 16 bit games. If you wiggle the analogue or dpad it may sometimes press left or left and right at the same time

PS4 joypad, connected via a usb cable - Same as 360 pad except with up and down.

Retrobit NES to USB adapter - Sees the d-pad as 1 button per axis and so it's impossible to calibrate directions

My Mister FPGA purchase is making me really quite sad at the moment, I can't use anything I have to control games.

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

Re: Joystick testing thread

Postby Sorgelig » Sat Jan 05, 2019 9:19 am

from Wiki ( https://github.com/MiSTer-devel/Main_Mi ... ut-devices ):
PS3,PS4,X360,XOne gamepads are known to have problem with MiSTer. These gamepads have accelerometers and constantly sends the events with high rate. Analog sticks also send events even when not touched. Overall MiSTer receives huge flood of event from these controllers. These events may prevent correct button definition. Games may behave incorrectly when using these controllers.

The only possible solution today for these gamepads is to use 3rd-party receivers such as 8bitdo USB receiver. It not only gives you wireless access but also filters out all these unneeded events.


Cheap PS3-like chinese replica gamepad works fine.

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

Re: Joystick testing thread

Postby Sorgelig » Sat Jan 05, 2019 9:21 am

rjbrown99 wrote:Upon connection, no buttons work at all on the gamepad

it's unclear what you mean by "no buttons work". If you want to say you can't control NES core right after connection, then it's pretty much clear - you need to define the buttons first.

rjbrown99
Atarian
Atarian
Posts: 6
Joined: Sat Feb 27, 2016 7:38 am

Re: Joystick testing thread

Postby rjbrown99 » Sat Jan 05, 2019 10:11 pm

Sorgelig wrote:
rjbrown99 wrote:Upon connection, no buttons work at all on the gamepad

it's unclear what you mean by "no buttons work". If you want to say you can't control NES core right after connection, then it's pretty much clear - you need to define the buttons first.


In this case, it means that I didn't read the directions and understand that i need to go to the second menu screen and configure the joystick for each independent core. That wasn't clear from the startup wiki page - after reading on I'm now good.

F12 -> right arrow -> then configure the joystick.

Milongero
Retro freak
Retro freak
Posts: 10
Joined: Sun Nov 25, 2018 2:24 pm
Location: Germany

Re: Joystick testing thread

Postby Milongero » Sun Jan 06, 2019 1:16 pm

Hello,

happy new year and the new

"Speedlink COMPETITION PRO EXTRA USB JOYSTICK - ANNIVERSARY, BLACK-RED - Artikelnummer: SL-650212-BKRD"

works well out of the box

Locutus73
Captain Atari
Captain Atari
Posts: 473
Joined: Wed Feb 07, 2018 6:13 pm

Re: Joystick testing thread

Postby Locutus73 » Mon Jan 07, 2019 12:27 pm

Sorgelig wrote:Recently 8bitdo released grey version of USB receiver which look the same as brown one. They advertise it for PS classic console where they are very close to each other.

I see 8bitdo released the firmware for the grey PS classic adapter:
http://download.8bitdo.com/Firmware/Rec ... _V1.21.zip
which is in the same folder as the firmware for the brown mario brick receiver
http://download.8bitdo.com/Firmware/Rec ... _V1.18.zip
I often fiddled trying different firmwares on 8bitdo controllers and I never bricked them... worst case scenario: they misbehaved, but I was always able to reflash the proper firmware.
Maybe you could try the new firmware on the brown dongles... I don't assure they won't take fire, so test it at your risk if you feel brave. I would do that myself, but I don't have any brown Mario brickwall dongle.

Regards.

Locutus73

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

Re: Joystick testing thread

Postby Sorgelig » Mon Jan 07, 2019 1:53 pm

I prefer to wait the internet rumors ;)

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

Re: Joystick testing thread

Postby Sorgelig » Mon Jan 07, 2019 1:55 pm

Code: Select all

1. Add the hot key for PS Classic:
   Reset:          HOME / SELECT+DPAD_DOWN
   In game menu:   L/L1+R/R1+START (PS4:L1+R1+OPTIONS)

That's good for those who use non-Pro controllers.

rjbrown99
Atarian
Atarian
Posts: 6
Joined: Sat Feb 27, 2016 7:38 am

Re: Joystick testing thread

Postby rjbrown99 » Tue Jan 08, 2019 2:47 am

Has anyone by chance tested with an 8bitdo N30 Arcade controller and 8bitdo USB RR receiver? Specifically these two:
http://www.8bitdo.com/wireless-usb-adapter (I have the red brick stick, 1.20 firmware)
http://www.8bitdo.com/n30-arcade-stick (5.0 firmware)

Both on latest firmware. This joystick supports both USB connectivity and bluetooth connectivity but I can't get either one to be detected by MiSTer.

When trying to pair via Bluetooth (red USB stick + arcade stick), I see the following on console:
Input event: type=EV_ABS, Axis=0, Offset:=-32768. ABS_INFO: min = -32768 max = 32767 fuzz = 16
Input event: type=EV_ABS, Axis=1, Offset:=-32768. ABS_INFO: min = -32768 max = 32767 fuzz = 16
Input event: type=EV_ABS, Axis=3, Offset:=-32768. ABS_INFO: min = -32768 max = 32767 fuzz = 16
Input event: type=EV_ABS, Axis=4, Offset:=-32768. ABS_INFO: min = -32768 max = 32767 fuzz = 16
Input event: type=EV_ABS, Axis=0, Offset:=0. ABS_INFO: min = -32768 max = 32767 fuzz = 16
Input event: type=EV_ABS, Axis=1, Offset:=-1. ABS_INFO: min = -32768 max = 32767 fuzz = 16
Input event: type=EV_ABS, Axis=3, Offset:=0. ABS_INFO: min = -32768 max = 32767 fuzz = 16
Input event: type=EV_ABS, Axis=4, Offset:=-1. ABS_INFO: min = -32768 max = 32767 fuzz = 16

..and then nothing. To generate the above messages, I plug in the USB stick, press the button to detect the joystick, and then hold the pair button on the joystick. I have tried various combinations of turning it on. Docs show the following modes:
START+Y = Switch Pro mode
START+A = MAC mode
START+X = Android/Xinput mode (DINPUT/XINPUT switch)

I gave up on Bluetooth to start and decided to just try USB-only. When trying to use pure USB with a cable from the arcade stick directly to the FPGA board, I see a repeated series of events:
usb 1-1.3.2: device descriptor read/64, error -32
The file js0 was created.
Close all devices.
Open up to 10 input devices.
opened /dev/input/event0 (057e:2009)
has LEDs.
opened /dev/input/event1 (0101:0101)
opened /dev/input/event2 (0101:0101)
opened /dev/input/event3 (0101:0101)
The file event0 was created.
Close all devices.
Open up to 10 input devices.
opened /dev/input/event0 (057e:2009)
has LEDs.
opened /dev/input/event1 (0101:0101)
opened /dev/input/event2 (0101:0101)
opened /dev/input/event3 (0101:0101)
The file js0 was deleted.
Close all devices.
Open up to 10 input devices.
has LEDs.
opened /dev/input/event1 (0101:0101)
opened /dev/input/event2 (0101:0101)
opened /dev/input/event3 (0101:0101)
The file event0 was deleted.
Close all devices.

... and this keeps going, with the controller alternating between blue and green LEDs.

I have tried with numerous combinations of the physical joystick buttons (XINPUT or DINPUT, X/Y or DPAD). Nada.

Any suggestions from the forum?

Locutus73
Captain Atari
Captain Atari
Posts: 473
Joined: Wed Feb 07, 2018 6:13 pm

Re: Joystick testing thread

Postby Locutus73 » Tue Jan 08, 2019 9:16 am

rjbrown99 wrote:Any suggestions from the forum?

Did you use the “Define joystick buttons” wizard first (press F12 in the main menu)?

[EDIT]
Sorry I misread your post. :oops:

Regards
Locutus73
Last edited by Locutus73 on Tue Jan 08, 2019 10:35 am, edited 1 time in total.

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

Re: Joystick testing thread

Postby Sorgelig » Tue Jan 08, 2019 10:32 am

Do you use powered hub?

rjbrown99
Atarian
Atarian
Posts: 6
Joined: Sat Feb 27, 2016 7:38 am

Re: Joystick testing thread

Postby rjbrown99 » Tue Jan 08, 2019 2:41 pm

Sorgelig wrote:Do you use powered hub?


Tried with powered and non-powered hub. Same result.

Interestingly, I tried the joystick with just pure CentOS (via USB) and it was doing the same 'flapping' - detected/removed over and over. I downgraded the joystick firmware from 5.0 to 4.1 and it was then properly detected by CentOS with no problems. I then moved back to the MiSTer and it was also now detected properly.

Have not yet tried wireless, but for now if anyone reads this and is trying to make an 8bitdo N30 Arcade Stick work, downgrade the firmware as a first step as the 5.0 seems to have issues with Linux in general.

beatchef
Atarian
Atarian
Posts: 5
Joined: Sat Jan 05, 2019 1:53 am

Re: Joystick testing thread

Postby beatchef » Tue Jan 08, 2019 8:10 pm

There is no on-board bluetooth. Using USB dongle is not convenient as it will require driver on Linux - this will increase loading time as kernel will need to include many drivers for different BT dongles. Also BT will require pairing procedure which will need special dialogs and additional inputs. Overall it will add too much complexity.


Well whoops... that is understandable. My fault for buying a bluetooth dongle before seeing that post.
Last edited by beatchef on Tue Jan 08, 2019 9:22 pm, edited 1 time in total.

beatchef
Atarian
Atarian
Posts: 5
Joined: Sat Jan 05, 2019 1:53 am

Re: Joystick testing thread

Postby beatchef » Tue Jan 08, 2019 8:13 pm

{Deleted}
Last edited by beatchef on Tue Jan 08, 2019 9:21 pm, edited 1 time in total.

beatchef
Atarian
Atarian
Posts: 5
Joined: Sat Jan 05, 2019 1:53 am

Re: Joystick testing thread

Postby beatchef » Tue Jan 08, 2019 9:20 pm

Apologies, if I could delete or edit my posts, I would. However finally some luck for me, though the information might not be all that useful :D

Trio Linker Plus II Adaptor for USB to Playstation, Gamecube and Dreamcast controllers.... working!
Playstation analogue controller working with NES and SNES cores :D
Dreamcast pads and joysticks, Gamecube pads not working at all but that's okay. :lol:

NES TMNT Dam level approved!

User avatar
Shazz
Atari Super Hero
Atari Super Hero
Posts: 575
Joined: Wed Aug 27, 2003 9:27 am
Location: Crétin des Alpes dauphinoises

Re: Joystick testing thread

Postby Shazz » Thu Jan 10, 2019 3:26 am

Hi, using the 8bitdo USB receiver (brick), I can successfully use my Sony PS3 controller using an USB cable but while using the wireless connection, it "works" but sometimes (quite often) the pad becomes crazy (OSD appears, Autofire switchs on/off, unwanted movements...)

Is it a know issue ? I understoof from the wiki that using the USB receiver, wireless was working ("it not only gives you wireless access but also filters out all these unneeded events.")
Last edited by Shazz on Thu Jan 10, 2019 3:37 am, edited 2 times in total.
...8bits are enough...

User avatar
Shazz
Atari Super Hero
Atari Super Hero
Posts: 575
Joined: Wed Aug 27, 2003 9:27 am
Location: Crétin des Alpes dauphinoises

Re: Joystick testing thread

Postby Shazz » Thu Jan 10, 2019 3:28 am

deleted
...8bits are enough...

User avatar
Newsdee
Atari God
Atari God
Posts: 1406
Joined: Fri Sep 19, 2014 8:40 am

Re: Joystick testing thread

Postby Newsdee » Thu Jan 10, 2019 8:05 am

Try upgrading the receiver firmware, just in case.

User avatar
Shazz
Atari Super Hero
Atari Super Hero
Posts: 575
Joined: Wed Aug 27, 2003 9:27 am
Location: Crétin des Alpes dauphinoises

Re: Joystick testing thread

Postby Shazz » Thu Jan 10, 2019 11:57 pm

Newsdee wrote:Try upgrading the receiver firmware, just in case.


I did, updated to 1.18 but still the same problem.
And after some tests, it also happens using an USB cable but less often.
...8bits are enough...

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

Re: Joystick testing thread

Postby Sorgelig » Fri Jan 11, 2019 3:10 am

This is "normal" behavior of DE10-nano USB host.
Try to plug the receiver to another port of USB hub. If there are other USB devices plugged, then you need to try them on other ports as well.
And of course USB hub must be powered.

User avatar
Shazz
Atari Super Hero
Atari Super Hero
Posts: 575
Joined: Wed Aug 27, 2003 9:27 am
Location: Crétin des Alpes dauphinoises

Re: Joystick testing thread

Postby Shazz » Sat Jan 12, 2019 6:55 pm

Thanks Sorgelig, that was the problem... wrong port AND too many devices on my little (non powered) OTG hub.
I need to find another one...
...8bits are enough...

whiskeyrunnerone
Retro freak
Retro freak
Posts: 10
Joined: Thu Nov 01, 2018 12:41 pm

Re: Joystick testing thread

Postby whiskeyrunnerone » Mon Jan 14, 2019 10:33 pm

I noticed that there is an option in the Turbografx core settings for Turbotap. Does anyone know if this is working? I have a Turbotap and a controller. I ordered another (brand new) controller and the correct Bliss Box pigtail for large Turbografx sockets. I am curious if the Turbotap with play nicely with the Bliss Box and MiSTer. If anyone has any experience let me know. Otherwise, I'M GOING IN. I'll let you guys know my results in a few days. If it works, I'll be live streaming on YouTube and Stream.me on friday night 1/18.

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

Re: Joystick testing thread

Postby Sorgelig » Tue Jan 15, 2019 8:50 pm

Turbotap (miltitap) is implemented inside the core. It has nothing to do with real Turbotap addon for real PCE console.
Because not all games work correct with Turbotap enabled, there is an option in OSD to switch to 1-gamepad only.


Return to “MiSTer”

Who is online

Users browsing this forum: apolkosnik and 4 guests