c++ - Mouse click lasts too long / clearing event queue -


i create 2d rpg game , managed make there walking of character pointing destination mouse click. now, set enter menu shows after running program , before game loop starts. when press (or release) mouse button start game menu_ev.type == allegro_event_mouse_button_up, leaves enter menu while loop , proceeds game loop not waits mouse click move character moves place mouse clicked (in enter menu).

i want wait in game loop mouse click walk. thought allegro_event_mouse_button_up job game loop catches mouse event mouse button down...

both in enter menu , game loop there different allegro_event_queues , events. tried change allegro_mouse_state changes nothing.

thanks in advance!


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -