Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » ALLEGRO_KEY_PRINTSCREEN not working?

This thread is locked; no one can reply to it. rss feed Print
ALLEGRO_KEY_PRINTSCREEN not working?
Desmond Taylor
Member #11,943
May 2010
avatar

I am trying to add a print screen feature into my game and for some reason it don't come back that I've pressed the Print Screen key.

using my small engine... If I call engine->input->key_down( ALLEGRO_KEY_F1 ) it returns TRUE if it is down. But, if I call engine->input->key_down( ALLEGRO_KEY_PRINTSCREEN ) and it is pressed down, it returns FALSE no matter what.

Any reason this could be happening as all keys apart from that one works fine.

torhu
Member #2,727
September 2002
avatar

Windows doesn't send key down messages for printscreen, but you can check for key up instead.

Desmond Taylor
Member #11,943
May 2010
avatar

Go to: