Jump to content
  • Advertisement
Sign in to follow this  
colinisinhere

Keyboard/mouse input without WndProc?

This topic is 4906 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm writing a keyboard/mouse input handler class for my game. It will be on windows only. But I need this class to be seperate from all of the windows variables so i cant get the input with WndProc. Any suggestions?

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
use direct input ?

Share this post


Link to post
Share on other sites
Look into this function:

SHORT GetAsyncKeyState(
int vKey // virtual-key code
);


read more on MSDN
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/getasynckeystate.asp

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!