Closed supertuxkart-sourceforge-migration closed 10 years ago
Author: auria Hi,
sorry for the delay in responding, I somehow missed this ticket
I have applied a slightly modified version of the patch. What I changed is that I moved your code inside the part that performs input sensing, because outside of input sensing disabled gamepads are properly discarded already.
Thanks for the patch! Hopefully this fixes problems
Author: shuber2
InputManager::dispatchInput() dispatches input events no matter whether the gamepad is disabled. On my notebook (Thinkpad X220) the accelerometer keeps sending events causing the following problem: When I want to configure the joypad actions of my actual joypad, the input sensing widget immediately disappears.
The attached patch causes dispatchInput() not to dispatch events from disabled joypads and thereby solves the above issue for me.
This patch could be related to bugs #742, #904, and #1040.
Also, there is a relation to but #1111: One needs to actually disable accelerometers in order be able to configure other gamepads.