jeudi 26 mars 2015

SFML 2.2 | Display image by using keyboard


my problem is I cant display permanent images by using keys. I can display an image but it shows up while I press the key. When I release the key, it dissappears. I want, for example, if I pressed and released 'L' key, load an image from file and display it till I press 'L' key again. I searched for the answers but everyone want to smooth keyboard events, not like this. So if you can help me I'll be very happy.




Aucun commentaire:

Enregistrer un commentaire