Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple raw input implementation
07-07-2013, 07:15 AM (This post was last modified: 07-07-2013 07:23 AM by dykebeard.)
Post: #3
RE: Simple raw input implementation
Yeah, the Sleep() is sketchy for sure. It's probably the right thing to just get rid of it, but I think a tiny one would be alright. Maybe just Sleeping if the window is minimized / not in focus would be smarter.

I'm not sure if WM_INPUT will be noticeably better off than WM_KEYDOWN performance wise, but we can also probably grab data for a controller in the future. I'm not sure how compatibility with different controllers will be, but everything could get potentially handled in one spot. It should be better off than GetAsyncKeyState() though, as it was probably possible to miss input.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Simple raw input implementation - dykebeard - 07-07-2013 07:15 AM

Forum Jump: