You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When checking a lockable keys state using the Keyboard class (i.e; Keyboard.IsCapsLocked, etc) it should determine the correct state from the moment the keyboard is initialized.
Current Behavior
Right now, Keyboard.IsCapsLocked, Keyboard.IsNumLocked, etc will all return false until a keyboard action has been performed by the user.
Failure Information (for bugs)
The reason this is happening is due to the limitations of the OpenTK library, in it's current state you cannot check for the initial state of a lockable key upon starting an application.
Steps to Reproduce
Create an OpenTKKeyboardDevice and Keyboard object.
In the game loop, check if Keyboard.IsCapsLocked returns false and create a break-point.
Finally, run the application and you'll see the bug arise.
Context
Operating System: Windows 10 Home
Hardware: Intel i7-10710U @ 1.10GHz, 32.0 GB
Toolchain: Microsoft Visual Studio Community 2019 - Version 16.8.2
The text was updated successfully, but these errors were encountered:
Expected Behavior
When checking a lockable keys state using the
Keyboard
class (i.e;Keyboard.IsCapsLocked
, etc) it should determine the correct state from the moment the keyboard is initialized.Current Behavior
Right now,
Keyboard.IsCapsLocked
,Keyboard.IsNumLocked
, etc will all returnfalse
until a keyboard action has been performed by the user.Failure Information (for bugs)
The reason this is happening is due to the limitations of the OpenTK library, in it's current state you cannot check for the initial state of a lockable key upon starting an application.
Steps to Reproduce
OpenTKKeyboardDevice
andKeyboard
object.Keyboard.IsCapsLocked
returns false and create a break-point.Context
The text was updated successfully, but these errors were encountered: