Please be advised that access to Atari Forum this coming Friday will be sporadic whilst the backend operating system and dependency upgrades are carried out.

Joystick testing thread

https://github.com/MiSTer-devel/Main_MiSTer/wiki
jim150
Atariator
Atariator
Posts: 20
Joined: Sun Sep 30, 2018 5:20 am
Location: Catalonia

Re: Joystick testing thread

Post by jim150 »

uXe wrote:So... I've got a potentiometer connected to an Arduino Micro, used the mr.Spinner sketch, I can see the messages getting through in the serial console: EV_ABS, Axis=8, and I can watch the Offset go up and down when I turn the pot... but when I go into cores supporting paddles and switch input to paddle - nothing! Feel like I must be missing something obvious?!?! :shrug:
Have you tried to set up a regular controller via the “Define ... buttons” menu option of the core? This also happened to me, in the AY-3-8500 core my spinner did not work until I defined the buttons
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Joystick testing thread

Post by Sorgelig »

uXe wrote:So... I've got a potentiometer connected to an Arduino Micro, used the mr.Spinner sketch, I can see the messages getting through in the serial console: EV_ABS, Axis=8, and I can watch the Offset go up and down when I turn the pot... but when I go into cores supporting paddles and switch input to paddle - nothing! Feel like I must be missing something obvious?!?! :shrug:
It depends which core you are trying. If core requires a spinner, then paddle (potentiometer) won't work.
However your Arduboy core should work now with paddle. You need to press the button corresponding to this paddle to enable it.
User avatar
uXe
Atari freak
Atari freak
Posts: 56
Joined: Thu Nov 21, 2019 1:57 am
Location: Adelaide, South Australia

Re: Joystick testing thread

Post by uXe »

uXe wrote:Feel like I must be missing something obvious?!?! :shrug:
Sorgelig wrote:You need to press the button corresponding to this paddle to enable it.
Aha! There you go - I only wanted to test the paddle, so hadn't even bothered connecting a button... :roll: (I did see the 'pdlena' variable in the mr.Spinner sketch, and edited that out to avoid the need for a button, but I didn't realise the HPS also does its own check for the button before enabling the paddle?)

Yes, definitely works for me in the Arduboy core now, and looks like the paddle button gets automatically mapped to 'A', nice.

Playing a game of breakout with the paddle is absolutely a far more dynamic experience!! (also realised that which side of the pot gets GND / 5V definitely matters in terms of the logical direction you want the movement to happen :lol:)

Thanks again!
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Joystick testing thread

Post by Sorgelig »

uXe wrote:Aha! There you go - I only wanted to test the paddle, so hadn't even bothered connecting a button... :roll: (I did see the 'pdlena' variable in the mr.Spinner sketch, and edited that out to avoid the need for a button, but I didn't realise the HPS also does its own check for the button before enabling the paddle?)
it comes from the fact that Atmega32U4 DAC with 1MOhm pot (used in Atari 2600 paddle) and long cable gives a lot of noise. I minimized the noise to a minimum but it's still present. So to avoid USB message spam the paddle is disabled by default. So you have to press the button to enable it. This is on USB adapter side (which you've disabled as you've said). Another problem with paddle - it needs some discrete event like EV_KEY to say to MiSTer "User started to use me", so MiSTer will assign the paddle to playe 1, then secondary pressed paddle to player 2 and so on. So the button on paddle is the only way to do so. If you will use spinner, then it will be free from such problem and rotation of knob will be enough to assign it to player.
dshadoff
Atari maniac
Atari maniac
Posts: 97
Joined: Sun Dec 29, 2019 9:07 pm

Re: Joystick testing thread

Post by dshadoff »

Sorgelig wrote:Usually Arduino Micro 5V version has no 3.3V power pin. Some sources say it's ok to use 5V for PSX controllers.
I've used ItsyBitsy from Adafruit which has 3.3V LDO on board, so you can easily source both 3.3V and 5V from the same board.
Which ItsyBitsy are you using ? 32u4 ? M0 ? M4 ?
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Joystick testing thread

Post by Sorgelig »

dshadoff wrote:Which ItsyBitsy are you using ? 32u4 ? M0 ? M4 ?
of course atmega32u4 5V/16MHz
MrKarai
Atarian
Atarian
Posts: 8
Joined: Wed Oct 30, 2019 2:29 pm

Re: Joystick testing thread

Post by MrKarai »

I got my Japanese PC Engine Mini today. It comes with the non-turbo controller and I can confirm that this controller works fine with MISTer. Hope that the turbo controllers will too, once they become available. Playing the PC Engine Core is about to become even cooler.
ElDoctor
Atari nerd
Atari nerd
Posts: 46
Joined: Thu Mar 05, 2020 7:10 pm

Re: Joystick testing thread

Post by ElDoctor »

MrKarai wrote:I got my Japanese PC Engine Mini today. It comes with the non-turbo controller and I can confirm that this controller works fine with MISTer. Hope that the turbo controllers will too, once they become available. Playing the PC Engine Core is about to become even cooler.
You could have just purchased the controller then...
Jeebs
Retro freak
Retro freak
Posts: 16
Joined: Sun Nov 04, 2018 1:59 pm

Re: Joystick testing thread

Post by Jeebs »

Jeebs wrote:
Sorgelig wrote:
Jeebs wrote:I apologize of this has been talked about already but I'm curious if the Mayflash SNES to USB Adapter works for anyone else.

I have the two player adapter and I can get Player 1 to work perfectly. But it doesn't defect the second port on the adapter as Player 2. So in a two player game with both Controllers plugged in at the same time will control Player 1.
did you test it on non-Arcade cores?
Yes the testing I did was on SNES, Genesis, and NES. I can test any other Core if needed.
I have to do some more testing but so far using MiSTer_20200109 works fine with this this adapter. I'll test versions past this and see what version made this adapter stop working and report back.
Jeebs
Retro freak
Retro freak
Posts: 16
Joined: Sun Nov 04, 2018 1:59 pm

Re: Joystick testing thread

Post by Jeebs »

Jeebs wrote:
Jeebs wrote:
Sorgelig wrote: did you test it on non-Arcade cores?
Yes the testing I did was on SNES, Genesis, and NES. I can test any other Core if needed.
I have to do some more testing but so far using MiSTer_20200109 works fine with this this adapter. I'll test versions past this and see what version made this adapter stop working and report back.
After doing some further testing it looks like MiSTer_20200225 is the first binary that stopped the Mayflash SNES USB adapter from working properly for both Ports on the adapter and being able to use 1 and 2 player.
trashuncle
Atari maniac
Atari maniac
Posts: 93
Joined: Fri Jul 05, 2019 9:34 pm

Re: Joystick testing thread

Post by trashuncle »

Bought a Bluetooth Sega Saturn controller from Retro-bit. I noticed I am unable to use the turbo feature on these controllers. I have them connected using bluetooth, in android mode, as that seemed to be the most compatible. (d-pad works by default).

When you press the menu button and any button you would like to turn turbo on with, it just doesn't activate, menu pops up instead.

I tried using Switch mode (but the d-pad doesn't function and I cannot setup mapping), as I also use a bluetooth official snes switch controller, which works perfectly with the turbo functionality.

Anyone else have one of these and used it with MiSTer? (and had the same issue?)
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Joystick testing thread

Post by Sorgelig »

you have to hold down the required button and then press menu button.
trashuncle
Atari maniac
Atari maniac
Posts: 93
Joined: Fri Jul 05, 2019 9:34 pm

Re: Joystick testing thread

Post by trashuncle »

Sorgelig wrote:you have to hold down the required button and then press menu button.
Indeed, and that works on every other controller so far that I have tested, except this one. I just tried again, just to make sure I wasn't doing it incorrectly, but I have indeed been doing it as you suggested.

Works fine for all my wired usb controllers and my official snes bluetooth switch controller. Just this oddball Sega Saturn Bluetooth controller does not do anything except bring up menu when any button is held then press menu, no turbo.
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Joystick testing thread

Post by Sorgelig »

try to assign other button for Menu. May be this particular button works specifically.
trashuncle
Atari maniac
Atari maniac
Posts: 93
Joined: Fri Jul 05, 2019 9:34 pm

Re: Joystick testing thread

Post by trashuncle »

Sorgelig wrote:try to assign other button for Menu. May be this particular button works specifically.
That is exactly what the issue was. I remapped menu to the "Start" button instead of "Home" and now the feature works as intended. The smaller "Home" and "Select" buttons, I believe, are treated differently than the rest of the buttons on the controller. It may just be when the controller is in "Android" mode but I haven't had much luck with it, on MiSTer, other than using this mode.

I haven't tried using it wired in PC mode, but I will at some point to see if it functions properly. It would let me know if it is just a hardware limitation when using those buttons, or just firmware.
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Joystick testing thread

Post by Sorgelig »

you can assign combo select + dpad up for menu. So you can continue to use select and start as is.
But i think other modes of this controller should work with MiSTer.
trashuncle
Atari maniac
Atari maniac
Posts: 93
Joined: Fri Jul 05, 2019 9:34 pm

Re: Joystick testing thread

Post by trashuncle »

Sorgelig wrote:you can assign combo select + dpad up for menu. So you can continue to use select and start as is.
But i think other modes of this controller should work with MiSTer.
The major reason I bought the controller is because it has the designated menu button. I am okay with using Home and Select as Start and Select, it just will take me getting used to not hitting the big start button on genesis games haha.
Sigismond0
Atari nerd
Atari nerd
Posts: 45
Joined: Thu Mar 12, 2020 2:13 am

Re: Joystick testing thread

Post by Sigismond0 »

Working on testing the infamous Retron5 controller with MiSTer. It's a real hunk of junk, but it's got a microswitch based clicky stick and might be a surprising joy to use with the Neo Geo core. Unfortunately, it's a pin-locked bluetooth device and doesn't use 0000 or 1234. No luck brute forcing it so far.
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Joystick testing thread

Post by Sorgelig »

There are other joysticks with microswitches on stick. For example this one:
https://www.ebay.com/itm/PS3-Versus-Fig ... 3507020199
Although it's wired, not wireless.
There is similar one for XBox360.
trashuncle
Atari maniac
Atari maniac
Posts: 93
Joined: Fri Jul 05, 2019 9:34 pm

Re: Joystick testing thread

Post by trashuncle »

Sorgelig wrote:There are other joysticks with microswitches on stick. For example this one:
https://www.ebay.com/itm/PS3-Versus-Fig ... 3507020199
Although it's wired, not wireless.
There is similar one for XBox360.
I have the PDP Xbox 360 Fighting Pad, I can report that this controller works pretty well. I noticed some games feel a little weird with it, but anything like NeoGeo and fighting games/arcade games all feel pretty good with it.
AndreStarTrek
Atariator
Atariator
Posts: 26
Joined: Wed Aug 21, 2019 10:47 pm

Re: Joystick testing thread

Post by AndreStarTrek »

frankmonk wrote:
frankmonk wrote:
squidlr wrote:I'm trying to use an original Sega Saturn controller via a Mayflash to USB adapter but the controller doesn't seem to function correctly. The controller is detected, you can define keys and move your character sprite during games. However, the movement is not 1 to 1 pixel, your player/character will move in set blocks of movement, e.g 32 pixels before accepting a new input. Really hard to describe this, sorry!

It's a damn shame as I love the Saturn controller. I'm forced to use an Xbox360 dpad :(

Adapter:

https://www.amazon.com/Mayflash-Saturn- ... 057&sr=8-2
Just received a Mayflash 2P Sega Saturn adapter that is acting the same way like yours. I really would like to get this one working for my saturn stick. Is there any chance it will receive an update or any changes that I can perform to get it properly working? I already tried to set the polling to off/on
thanks for your hard work btw!

Alright! I got it working!
"6.Press and hold START and Button A for 3 seconds, the D-Pad and the left analog stick mode can be exchanged."
This fixed it for me using the MayFlash Adapter and it works absolutely great!
Did you try this adapter with 2 controllers in mister, or maybe someone else that has this saturn adapter?
MrKarai
Atarian
Atarian
Posts: 8
Joined: Wed Oct 30, 2019 2:29 pm

Re: Joystick testing thread

Post by MrKarai »

ElDoctor wrote:
MrKarai wrote:I got my Japanese PC Engine Mini today. It comes with the non-turbo controller and I can confirm that this controller works fine with MISTer. Hope that the turbo controllers will too, once they become available. Playing the PC Engine Core is about to become even cooler.
You could have just purchased the controller then...
1) Isn't that off-topic?
2) I wanted the PCE Mini for the shelf
3) The PCE Mini turbo controller, which is the only one you can buy separately, is not yet available.
Jadei
Atarian
Atarian
Posts: 7
Joined: Sat Mar 07, 2020 4:03 am

Re: Joystick testing thread

Post by Jadei »

I have a BIGtrack Trackball I bought second hand hoping to use with MiSTer but it's not recognized.

I followed the steps in page one of this thread and here is the output from the DE-10 UART COM port:

Code: Select all

trackball spin right:

Input event: type=EV_REL, Axis=0, Offset=5, jnum=0, ID:0458:0043:00
/dev/input/mouse0: btn=0x08, dx=5, dy=2, scroll=0
/dev/input/mouse0: btn=0x08, dx=6, dy=2, scroll=0
/dev/input/mouse0: btn=0x08, dx=5, dy=1, scroll=0

left:

Input event: type=EV_REL, Axis=0, Offset=-1, jnum=0, ID:0458:0043:00
/dev/input/mouse0: btn=0x18, dx=-1, dy=0, scroll=0
/dev/input/mouse0: btn=0x38, dx=-2, dy=-1, scroll=0
/dev/input/mouse0: btn=0x18, dx=-1, dy=0, scroll=0

up:

Input event: type=EV_REL, Axis=0, Offset=-2, jnum=0, ID:0458:0043:00
/dev/input/mouse0: btn=0x18, dx=-2, dy=2, scroll=0
/dev/input/mouse0: btn=0x18, dx=-1, dy=2, scroll=0
/dev/input/mouse0: btn=0x08, dx=0, dy=1, scroll=0

down:

Input event: type=EV_REL, Axis=0, Offset=1, jnum=0, ID:0458:0043:00
/dev/input/mouse0: btn=0x28, dx=1, dy=-2, scroll=0
/dev/input/mouse0: btn=0x28, dx=1, dy=-1, scroll=0
/dev/input/mouse0: btn=0x08, dx=1, dy=0, scroll=0

right button:

Input event: type=EV_KEY, code=273(0x111), value=1, jnum=0, ID:0458:0043:00
/dev/input/mouse0: btn=0x08, dx=0, dy=0, scroll=0
Input event: type=EV_KEY, code=273(0x111), value=0, jnum=0, ID:0458:0043:00
/dev/input/mouse0: btn=0x0A, dx=0, dy=0, scroll=0

left button:

Input event: type=EV_KEY, code=272(0x110), value=1, jnum=0, ID:0458:0043:00
/dev/input/mouse0: btn=0x08, dx=0, dy=0, scroll=0
Input event: type=EV_KEY, code=272(0x110), value=0, jnum=0, ID:0458:0043:00
/dev/input/mouse0: btn=0x09, dx=0, dy=0, scroll=0
I couldn't find a VID/PID in the menu so I assume the output above is the VID/PID?
No biggie if this can't be added but would love a nice big trackball for some games :)
Sorgelig
Ultimate Atarian
Ultimate Atarian
Posts: 6348
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Joystick testing thread

Post by Sorgelig »

I don't know why it's not recognized. It should work as a generic mouse input. Try some cores like ao486 or Minimig where mouse is available.
Jadei
Atarian
Atarian
Posts: 7
Joined: Sat Mar 07, 2020 4:03 am

Re: Joystick testing thread

Post by Jadei »

Thanks, it does work in minimig. I was trying to use it in centipede so it was user error :? . Oh well, it works great in Marble Madness on Amiga and I'm sure other games. Just got to investigate now!

Return to “MiSTer”