andykorth / opentk

The Open Toolkit is a low-level C# library that wraps OpenGL, OpenCL and OpenAL. This fork has been superseded by https://github.com/thefiddler/opentk Please direct your attention to that official repository.
71 stars 27 forks source link

KeyboardState IsConnected always false #2

Closed jhauberg closed 11 years ago

jhauberg commented 11 years ago

Keyboard.GetState().IsConnected always return false on Windows 8.

jhauberg commented 11 years ago

Works on both Win8 and 7 when using the code suggested here http://www.opentk.com/node/3198#comment-14023.

andykorth commented 11 years ago

Thanks Jacob, I don't have access to Windows 8, but I can add that fix to this Github repository. Thanks for verifying that it works. Will look at it soon.

andykorth commented 11 years ago

Should be fixed now, Thanks! I don't have access to a windows dev machine, but I'd love to know if the fix works on Windows XP and Windows 8.

Here's the diff: https://github.com/andykorth/opentk/commit/fa422dca2aca1efc459f47db5ef3b8990c615821