I am currenting using windowxp home with sfml 1.4.
I did something similar to below
//Create Render Window
MyRenderWindow.EnableKeyRepeat(false);
//Start Render Loop
while(true){
MyRenderWindow..DispatchEvents();
MyRenderWindow.Clear();
.....
if(MyRenderWindow.Input.IsKeyDown(KeyCode.A)){
//To something
}
MyRenderWindow.Display();
}
I guess want i am really looking for is IsKeyPressed because it seem like KeyDown would execute as long as the key is down. I thought that by setting KeyRepeat to false, that it only execute my code for each press rather than for the period of time which the key is down.