auriamg / stk-code

The code base of supertuxkart
Other
0 stars 0 forks source link

patch: Do not dispatch events from disabled gamepads #933

Closed auriamg closed 10 years ago

auriamg commented 10 years ago

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.