[SDL] stupid problem

Lucas Clemente Vella lvella at uai.com.br
Wed Oct 13 06:16:20 PDT 2004


Thank you, I had not thought about the 3.

Raphaël Assénat wrote:
> Hi,
> I see a few ways to fix your problem:
> 
> 1) Validate the choices in the menu using release events instead of press 
> events. This way, the game will not receive the release button event.
> 
> 2) Ignore the first release button event you receive in the game. This should 
> be ok, because a release event does not usually occur without a press event 
> first.
> 
> 3) Read all events from the queue to drop them before starting the game. 
> Otherwise, If the player start clicking everywhere while the game is loading 
> because he is impatient, it would probably do undesired things once the game 
> start.
> 
> I think 3 is the best choice, even if there is no loading time between the 
> menu and the game.
> 
> Regards,
> Raphael Assenat

-- 
Lucas Clemente Vella
lvella at uai.com.br




More information about the SDL mailing list