1
General / Re: Single key press outside a sfml window?
« on: December 28, 2016, 04:43:06 pm »
Can anyone think of any way to turn those "id held" statements into single keypresses?
I did:
But this is not good, as other keys are not detected and program is delayed.
Can anyone think of better way?
I did:
//Pseudocode
while isKeyPressed(Key)
{
if not isKeyPressed(Key) break;
}
while isKeyPressed(Key)
{
if not isKeyPressed(Key) break;
}
But this is not good, as other keys are not detected and program is delayed.
Can anyone think of better way?