Original Post
I've been searching all around, for the existence of a pause function in allegro, I have not been able to find one, and I'm left with the option of multi-threading, to test for a key input while drawing, and moving functions of allegro are disabled. I've even thought about going as far as something like this...
This code is really not in my program, it was just an example of what I was considering.
Any thoughts?
class foo
{
public:
bool paused;
void init();
bool test_paused();
bool can_move;
};
void foo::init()
{
paused = false;
can_move = true;
}
void foo::test_paused()
{
if(paused == true)
{
can_move = false;
}
}
This code is really not in my program, it was just an example of what I was considering.
Any thoughts?