hi!
is it possible to call GetKeyState only once to retrieve a pointer to the key array, or should i call it every frame?
i think the adress of the array won’t ever change when the programming is running, so why should i call it every frame?
see ya, florian hufsky
It is safe to call GetKeyState only once and keep the pointer for future
reference, but be aware that you will need to call PumpEvents to ensure
that the array contains the latest key states regardless of target.
-Thomas
thanks!
i’m already doing that (PollEvent).> ----- Original Message -----
From: t.harte@btinternet.com (Thomas Harte)
To:
Sent: Monday, August 18, 2003 4:23 PM
Subject: [SDL] Re: calling GetKeyState only once
It is safe to call GetKeyState only once and keep the pointer for future
reference, but be aware that you will need to call PumpEvents to ensure
that the array contains the latest key states regardless of target.
-Thomas
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl