1
Window / Input::IsKeyDown problem
« on: March 16, 2011, 06:50:00 pm »
You can either check for keypresses directly through the events, or through the input handler instance.
If you just move those if(App.GetInput()...)s out of your event processing loop it should work fine.
The reason the mouse works is having the mouse over the window generates an event every frame (iirc) which would allow the code in the event handling loop to run normally.
If you just move those if(App.GetInput()...)s out of your event processing loop it should work fine.
The reason the mouse works is having the mouse over the window generates an event every frame (iirc) which would allow the code in the event handling loop to run normally.