I fixed the bug where you have to use accelerate, brake, turn left/right, item and boost as up, down, left/right, ok and calcel keys in pause and race over dialogs.
I tested it under Ubuntu 10.4, but this might work on other operating systems.
Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
Je crée ma boîte mail http://www.laposte.net
From: M Gagnon <auria.mg@gm...> - 2010-06-10 00:33:19
> I fixed the bug where you have to use accelerate, brake, turn left/right, item and boost as up, down, left/right, ok and calcel keys in pause and race over dialogs.
> I tested it under Ubuntu 10.4, but this might work on other operating systems.
> Lilian Gimenez.
thanks for finding the bug and for that patch!
However, I would prefer fixing the bug another way : ideally I want to
avoid having every menu change the input mode as they appear
or disappear; to be cleaner, it should be the StateManager class that
automatically changes the input mode as screens are shown/hidden
and dialogs are shown/hidden (most of the code being in its base
What you stumbled upon here is a weakness in my code : currently, the
state manager is not aware of dialogs. So, I see two possible
1) make the input mode be changed as needed by the base class
ModalDialog (and restore it when dismissed)
2) make the StateManager aware of dialogs too
If you could provide a patch that fixes the problem in either way, I'd
very gladly apply it =)