SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Help

Reply
 
Thread Tools Search this Thread
Old 05-16-2019   #1
Dr. λ
Default [Solved] Input gets stuck

I am using SRB2 on GNU/Linux and I built it from source but often my character spins around permanently as if I hold the button for turn left even though I am not holding it. This also happens even if I do not assign any button to turn left. And if I press turn left while it happens then I just spin faster.

Does anyone have any idea what might be causing this?

Last edited by Dr. λ; 05-17-2019 at 07:09 PM.
Dr. λ is offline   Reply With Quote
Old 05-16-2019   #2
AlamGBC
WOO! GO ME! YAHOO!
Administrator
 
AlamGBC's Avatar
Default

Quote:
Originally Posted by Dr. λ View Post
I am using SRB2 on GNU/Linux and I built it from source but often my character spins around permanently as if I hold the button for turn left even though I am not holding it. This also happens even if I do not assign any button to turn left. And if I press turn left while it happens then I just spin faster.

Does anyone have any idea what might be causing this?
By keyboard, mouse or joystick?
__________________
"remember, hacking SRB2 is a good thing, cracking it's save games is not" - Alam and Logan Arias

3DS FC: 0473-7778-0919
AlamGBC is offline   Reply With Quote
Old 05-17-2019   #3
Dr. λ
Default

I use the keyboard. I tried disabling the mouse but it did not help.

However assigning no key to left does not stop left from being stuck.

Last edited by Dr. λ; 05-17-2019 at 12:45 PM.
Dr. λ is offline   Reply With Quote
Old 05-17-2019   #4
AlamGBC
WOO! GO ME! YAHOO!
Administrator
 
AlamGBC's Avatar
Default

Quote:
Originally Posted by Dr. λ View Post
I use the keyboard. I tried disabling the mouse but it did not help.

However assigning no key to left does not stop left from being stuck.
So, SRB2 is not getting the keyboard Key Release event and thinks it is still held down, WONDERFUL

So, SRB2 is not eating all the OS events to pick up the event
I_GetEvent

or maybe that we are dropping the event due to eating too much and need to up the queue size
MAXEVENT

Also, are you SURE you do not have a joystick connected to with it's axis setup to move the character
__________________
"remember, hacking SRB2 is a good thing, cracking it's save games is not" - Alam and Logan Arias

3DS FC: 0473-7778-0919
AlamGBC is offline   Reply With Quote
Old 05-17-2019   #5
Zwip-Zwap Zapony
Please just call me Zappy.
 
Zwip-Zwap Zapony's Avatar
Default

Quote:
Originally Posted by AlamGBC View Post
So, SRB2 is not getting the keyboard Key Release event and thinks it is still held down, WONDERFUL -
I doubt that. Dr. λ said that pressing "turn left" makes them turn left faster. I don't think that that would happen if it just didn't register the "let go of turn left" thing in the first place.
Zwip-Zwap Zapony is offline   Reply With Quote
Old 05-17-2019   #6
Dr. λ
Default

Quote:
Originally Posted by AlamGBC View Post

Also, are you SURE you do not have a joystick connected to with it's axis setup to move the character
I just edited config.cfg and turned use_joystick2 and use_joystick both to "off" and it seems to have resolved the issue.

I guess my laptop is wonky because I do not have any joystick connected at all. How could it get joystick input if I do not have a joystick connected? I do have a touch screen on it which I always turn off because it is broken but maybe that interfered.

Anyway thanks for the help. It is nice that I can finally play SRB2 without mayor issues.
Dr. λ is offline   Reply With Quote
Old 05-17-2019   #7
AlamGBC
WOO! GO ME! YAHOO!
Administrator
 
AlamGBC's Avatar
Default

Oh yea, but.. for my insanely, could you get to the joystick menu, it should list the joystick devices detected by SDL2

Sent from my Pixel 2 XL using ********
__________________
"remember, hacking SRB2 is a good thing, cracking it's save games is not" - Alam and Logan Arias

3DS FC: 0473-7778-0919
AlamGBC is offline   Reply With Quote
Old 05-17-2019   #8
Dr. λ
Default

I looked and it indeed puts my touch screen under joysticks.

Here is some output from "xinput" for context:
Code:
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ ELAN2557:00 04F3:2557 Pen                 id=15   [slave  pointer  (2)]
⎜   ↳ ELAN1200:00 04F3:3066 Touchpad            id=16   [slave  pointer  (2)]
⎜   ↳ ELAN2557:00 04F3:2557                     id=14   [slave  pointer  (2)]
My touch screen is broken and often sends signals on it's own making the mouse cursor go crazy, which is why I always turn my touchscreen off with xinput by disabling device 14, making my cursor work normally.

However despite that SBR2 finds devices 14, 15, and 16 under joysticks.

I think that SBR2 just reacted to my touch screen despite the fact that I had disabled device 14. So this was probably just faulty hardware and not a SBR2 bug.

Last edited by Dr. λ; 05-17-2019 at 09:18 PM.
Dr. λ is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:39 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.