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

    }

}

Comments