Skip to main content
gamedev.net
🔒 Locked

DInput again

Started by Diakon_Tristan 0 replies 300+ views
Original Post
Diakon_Tristan
Diakon_Tristan
Well I am here to specify my DI problem: When I approach to render a large amount of polygons and use lpDIDKeyboard->GetDeviceState(...) to get the input data my program breaks. Without that call it runs. But why?
NightShade
NightShade
Sorry if this is over simplified, but.. well, how about the obvious:

the keyboard device is NULL (or invalid)
the array of keys is NULL or invalid
the size of that array is wrong

Or,

the keyboard device needs to be acquired (or re-acquired) (I don''t think a non-acquired device will cause a crash though).

Where''s your program "breaking" ? Is it crashing? Or Aborting? Do you get any output on the debug window? What does the stack look like?



-ns-
-ns-

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.