Tag Info

Hot answers tagged


Yes, you should use WM_INPUT for things like camera movement. Why? Because it doesn't matter what the mouse's factory DPI is. Pretty much all games give the user a "mouse sensitivity" setting, where they can tweak a custom DPI value (they don't need to know it's the DPI!) to fit their preferences. When it comes to GUI, you should still use the ...


Pseudo code: currentKeyboardState previousKeyboardState void UpdateInput() store currentstate to previousstate get new state to currentstate Now that we have stored the last state and we know the current state, we can check if key was NOT pressed in last frame and is now pressed. So we know if key was pressed down just now. ...

Only top voted, non community-wiki answers of a minimum length are eligible