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. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Simple raw input implementation - dykebeard - 07-07-2013, 12:37 AM
RE: Simple raw input implementation - [Unknown] - 07-07-2013, 05:48 AM
RE: Simple raw input implementation - dykebeard - 07-07-2013 07:15 AM
RE: Simple raw input implementation - Henrik - 07-07-2013, 10:46 AM
|