Digital inputs mapped to analog axes behaving strange?

Discuss Supermodel and your favorite Model 3 games. Show off your latest threads, this is the place to see and be seen.
Forum rules
Keep it classy!

  • No ROM requests or links.
  • Do not ask to be a play tester.
  • Do not ask about release dates.
  • No drama!

Digital inputs mapped to analog axes behaving strange?

Postby Bart » Fri Nov 25, 2022 11:32 pm

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.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: Digital inputs mapped to analog axes behaving strange?

Postby rokfpoewrkcpoqwkcp » Sat Nov 26, 2022 8:45 am

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:
rokfpoewrkcpoqwkcp
 
Posts: 119
Joined: Mon Nov 18, 2019 3:40 pm

Re: Digital inputs mapped to analog axes behaving strange?

Postby orimarc » Sun Nov 27, 2022 5:00 pm

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
User avatar
orimarc
 
Posts: 115
Joined: Tue Sep 27, 2011 9:17 am

Re: Digital inputs mapped to analog axes behaving strange?

Postby Bart » Sun Nov 27, 2022 9:39 pm

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.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: Digital inputs mapped to analog axes behaving strange?

Postby Bart » Sun Nov 27, 2022 9:40 pm

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.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: Digital inputs mapped to analog axes behaving strange?

Postby Ian » Mon Nov 28, 2022 4:45 am

Never really looked into the controls much but dirt devils is absolutely unplayable with the keyboard
Ian
 
Posts: 2044
Joined: Tue Feb 23, 2016 9:23 am


Return to The Catwalk

Who is online

Users browsing this forum: No registered users and 1 guest