Search found 1 match

by Raven
Mon Jan 19, 2004 8:39 pm
Forum: Beginners Help
Topic: Getting the keyboard input without using events
Replies: 4
Views: 855

Getting the keyboard input without using events

hello, heres a newbie question,
can I get the Keyboard input from within a loop instead of using the event class... Something like this:


while(...) {
if (/*currently pressed key, say... "KeyInput::Key"*/ == KEY_W) // thats a guess
{ /* code for the pressed key */ }
}


that would be very usefull ...