Daemonbite stuck inputs? [Solved]

Discussion of keyboards, gamepads, joysticks and other input related peripherals.
User avatar
Newsdee
Top Contributor
Posts: 830
Joined: Mon May 25, 2020 1:07 am
Has thanked: 98 times
Been thanked: 209 times

Daemonbite stuck inputs? [Solved]

Unread post by Newsdee »

I've just upgraded to Daemonbite adapters, and since then started having stuck inputs with SFZ3.

I suspected it's a debouncing issue with the joystick but I'm still having the problem if I recompile the firmware #define DEBOUNCE 1.
(compiled from: https://github.com/MickGyver/DaemonBite-Arcade-Encoder)

I've checked that 1ms polling is on too.

Has anybody had a similar issue, and what did you do about it?
User avatar
Newsdee
Top Contributor
Posts: 830
Joined: Mon May 25, 2020 1:07 am
Has thanked: 98 times
Been thanked: 209 times

Re: Daemonbite stuck inputs?

Unread post by Newsdee »

I tried to set the debounce to 20ms, and plugged a different power supply to the USB hub (to rule out any power issues), but it's still happening.
I wonder if it has to do with the USB hub...

Edit: nope, it's not the hub. :( mystery still pending
paulbnl
Core Developer
Posts: 205
Joined: Sun May 24, 2020 8:48 pm
Has thanked: 18 times
Been thanked: 196 times

Re: Daemonbite stuck inputs?

Unread post by paulbnl »

Did you try to remove the controller map file and remap the controller?

I wonder if something is going wrong with sending the buttons on the firmware. As a test can you try to comment out these two lines:

https://github.com/MickGyver/DaemonBite ... r.ino#L146

https://github.com/MickGyver/DaemonBite ... r.ino#L168
User avatar
Newsdee
Top Contributor
Posts: 830
Joined: Mon May 25, 2020 1:07 am
Has thanked: 98 times
Been thanked: 209 times

Re: Daemonbite stuck inputs? [SOLVED]

Unread post by Newsdee »

I found the issue after a lot of debugging... there was nothing wrong with the adapter.

The culprit was the "mouse emu/sniper" button, which was assigned to one of my regular gameplay buttons. When that button is down... it looks like the framework stops listening to other updates, so if you release any other buttons while holding it down, they will become stuck as the MiSTer framework ignores the "button released" message.

This finally explains why I had these issues with some other controllers... I always thought it was some kind of lag/latency issue causing it.

So what's the lesson? Do not map the "mouse" emulation options if you don't use them!
PikWik
Posts: 256
Joined: Sat May 30, 2020 7:00 pm
Has thanked: 192 times
Been thanked: 71 times

Re: Daemonbite stuck inputs? [Solved]

Unread post by PikWik »

awesome, glad you found the answer to this !

tbh, im second guessing using SNAC after using daemonbite adapters.
daemonbites are such low latency (~1ms or less, for 95% same frame input)
and with the added benefit of being able to use them with any core, and be able to navigate the MiSTer menu, its a fair trade off of negligible lag to have a universal controller.

plus, theyre so cheap to buy/make, its a perfect DIY project.

if a MiSTer is your primary console, making an arcade stick and/or a SNES/genesis/saturn-to-daemonbite adapter is what i would recommend for someone first getting a MiSTer setup
Post Reply