Input
Create a class of Event type:
rm::Event e;
then call the Input function in your main loop
while (1){
e.Input();
}
And check if there is a key being pressed
while (1){
e.Input();
if (e.key == 'w'){
//Do something
}
}
This framework for c++ facilitates the creation of c++ console games. It was made as a personal project for learning purposes and was made in one day but i want to share it with everyone. The framework is under GNU GPL license
Comments
Post a Comment