Man I feel like I'm posting in here every day. I guess if I come in with code and at least try I feel like I'm not bothering you all.
Given this psudocode:
The program will spit out X and Y position for as long as the mouse is down... How Would one "one shot" this so that only one position is captured until the button is lifted.
I think my logic is faulty. I tired a few iterations of this and it didn't seem to work...
never mind, my brain is dumb - This is what I'm looking for
]]>
Hello nshade,
Don't mix state and events like that. Use one or the other (events).
Look at the classic event loop on the wiki :
https://wiki.allegro.cc/index.php?title=Allegro_5_API_Tutorials
https://wiki.allegro.cc/index.php?title=Allegro_5_Tutorial/Events
]]>