Page 1 of 1

Digital inputs mapped to analog axes behaving strange?

PostPosted: Fri Nov 25, 2022 11:32 pm
by Bart
Is it just me or do digital inputs emulating analog axes (such as left/right keyboard keys for steering or the guns in Lost World) behave incorrectly? For example, when I press left and the axis goes all the way to the left, and release, it decays back to the center point. But if I press right before that decay has completed, it sort of jumps and seems to jitter. Does anyone find the behavior to be natural?

I *think* I understand why it feels broken but I want to confirm that I am not out of my mind and that the behavior is indeed undesirable.

Re: Digital inputs mapped to analog axes behaving strange?

PostPosted: Sat Nov 26, 2022 8:45 am
by rokfpoewrkcpoqwkcp
Seems OK to me.
The rate of attack is greater than decay right?
So if you move the cross hair full left, then hit right before it's fully recentered, it will appear to 'speed up', but I'm not getting any jump or jitter per se.
I play Daytona2, Rally2 and scud almost always on keyboard. The turning is a little fast and 'twitchy' as you would expect, but they feel great too.
I like the weight and feel of using keyboard, it's much more playable when compared to ElSemi's model2 Daytona.

BTW, anyone mad enough to use keys and not the mouse to play gun games, deserves all the trouble they get. :lol:

Re: Digital inputs mapped to analog axes behaving strange?

PostPosted: Sun Nov 27, 2022 5:00 pm
by orimarc
Bart wrote:Is it just me or do digital inputs emulating analog axes (such as left/right keyboard keys for steering or the guns in Lost World) behave incorrectly? For example, when I press left and the axis goes all the way to the left, and release, it decays back to the center point. But if I press right before that decay has completed, it sort of jumps and seems to jitter. Does anyone find the behavior to be natural?


Could it be that the decay is not being completely overwritten? Something like this:

1 - You press left
2 - Axis goes 100% left
3 - Starts decaying to the right (so it centers) 1% every X miliseconds
4 - After 50 miliseconds, you press right
5 - Axis goes 100% right
6 - Starts decaying to the left 1% every X miliseconds BUT, since step 3 hasn't finished, the "queue" of decay/centering actions still has some "decay right"
7 - So instead, it jumps between decyaing directions until all the "old" decaying actions have happened

Re: Digital inputs mapped to analog axes behaving strange?

PostPosted: Sun Nov 27, 2022 9:39 pm
by Bart
Well it maintains two separately decaying values that are used. Do you feel it behaves unusually? If so, then I think I know the problem. Not sure I'll have time to fix it but I think someone is trying to look into it as well.

Re: Digital inputs mapped to analog axes behaving strange?

PostPosted: Sun Nov 27, 2022 9:40 pm
by Bart
rokfpoewrkcpoqwkcp wrote:Seems OK to me.
BTW, anyone mad enough to use keys and not the mouse to play gun games, deserves all the trouble they get. :lol:


Someone requested the ability to play light gun games and Star Wars using a joystick in digital mode, expecting the crosshair to stop moving when the d-pad isn't being pressed. Unfortunately right now that is impossible. The decay rate can't be 0 and even if we allow it to be 0, it starts to behave completely wonky. I think the whole digital input mechanism needs an overhaul to work as expected.

Re: Digital inputs mapped to analog axes behaving strange?

PostPosted: Mon Nov 28, 2022 4:45 am
by Ian
Never really looked into the controls much but dirt devils is absolutely unplayable with the keyboard