The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.27 (Linux)
|
no mouse control - Printable Version +- Forums (https://www.vdrift.net/Forum) +-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3) +--- Forum: Bugs (https://www.vdrift.net/Forum/forumdisplay.php?fid=7) +--- Thread: no mouse control (/showthread.php?tid=1153) |
no mouse control - alex25 - 08-19-2009 latest revision (2535) seems to have broken mouse control of the car. i can't shift gears (mouse button click), steer (mouse motion left or right) or accelerate/brake (mouse motion up/down). any ideas? --alex-- - joevenzon - 08-19-2009 It works for me... can you try doing a scons --clean and recompiling? I can't think of any reason that would have stopped working from any recent changes. Does the mouse control assignment in the menus work properly? - alex25 - 08-19-2009 hmm, works on my laptop (but i did an scons --clean first). i'll try the same thing on my desktop tomorrow. sorry for the noise. --alex-- - alex25 - 08-20-2009 weird, it still doesn't work on my desktop even after doing 'scons --clean'. i'll investigate further. - alex25 - 08-21-2009 any hints on how to debug this would be appreciated. thanks. --alex-- - alex25 - 08-21-2009 if i set mousegrab to false in VDrift.config then the steering works. something fishy is going on with the mouse grab. --alex-- - alex25 - 08-21-2009 it's actually SDL_ShowCursor(SDL_DISABLE) that's the problem. if i grab the mouse but show the cursor mouse control works. if i disable showing the cursor then mouse control doesn't work. it might be a bug in SDL (i am using SDL1.2 form svn) but i am pretty sure i have the same version on the laptop. --alex-- - alex25 - 08-21-2009 i'll stop posting, i promise. one more data point though. if in SetMouseCursorVisibility() i disable showing the cursor but don't grab the input mouse control works. i tried disabling showing the cursor after grabbing the input but the mouse still didn't work. i really have no idea. --alex-- - alex25 - 08-22-2009 today i updated the nvidia driver to the latest beta for linux (190.25) and mouse steering works again. i am still not sure what happened, the problem was definitely with SDL (i wrote a small SDL-only program that exhibited the same problem: no mouse motion events in SDL when the input was grabbed and showing the cursor was off). that was weird. --alex-- - joevenzon - 08-22-2009 Crazy... but thanks for figuring it out so fast. |