Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Can't Check for Initial State of Lockable Keys #50

Open
softwareantics opened this issue Nov 29, 2020 · 0 comments
Open

🐛 Can't Check for Initial State of Lockable Keys #50

softwareantics opened this issue Nov 29, 2020 · 0 comments
Assignees
Labels
area-input Input related tasks 🐛 Bug Something isn't working 🟢 Low Priority Low priority

Comments

@softwareantics
Copy link
Owner

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 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

  1. Create an OpenTKKeyboardDevice and Keyboard object.
  2. In the game loop, check if Keyboard.IsCapsLocked returns false and create a break-point.
  3. 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
@softwareantics softwareantics added this to the Final Engine (First Release) milestone Nov 29, 2020
@softwareantics softwareantics self-assigned this Nov 29, 2020
@softwareantics softwareantics removed this from the Final Engine (First Release) milestone Mar 23, 2023
@softwareantics softwareantics moved this to Todo in Final Engine Aug 16, 2023
@softwareantics softwareantics added 🐛 Bug Something isn't working 🟢 Low Priority Low priority area-input Input related tasks labels Aug 16, 2023
@softwareantics softwareantics changed the title [BUG] Can't Check for Initial State of Lockable Keys 🐛 Can't Check for Initial State of Lockable Keys Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-input Input related tasks 🐛 Bug Something isn't working 🟢 Low Priority Low priority
Projects
Status: Todo
Development

No branches or pull requests

1 participant