Skip to content

Add Num Lock and Caps Lock modifier from GLFW #2434

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

Open
Hanprogramer opened this issue Mar 6, 2025 · 0 comments
Open

Add Num Lock and Caps Lock modifier from GLFW #2434

Hanprogramer opened this issue Mar 6, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@Hanprogramer
Copy link

Hanprogramer commented Mar 6, 2025

Summary of feature

I have found something that Silk.NET does not implement for GLFW.
https://www.glfw.org/docs/3.3/group__mods.html

and possibly this function:
https://www.glfw.org/docs/3.3/group__input.html#gaa92336e173da9c8834558b54ee80563b

tested on Silk.NET 2.22.0 GLFW 3.4.0

specifically the ones that are missing are:

GLFW_MOD_CAPS_LOCK   0x0010
GLFW_MOD_NUM_LOCK   0x0020

what Silk.NET has:

namespace Silk.NET.GLFW
{
    /// <summary>
    /// Key modifiers, such as Shift or CTRL.
    /// </summary>
    public enum KeyModifiers
    {
        /// <summary>
        /// if one or more Shift keys were held down.
        /// </summary>
        Shift = 0x0001,

        /// <summary>
        /// If one or more Control keys were held down.
        /// </summary>
        Control = 0x0002,

        /// <summary>
        /// If one or more Alt keys were held down.
        /// </summary>
        Alt = 0x0004,

        /// <summary>
        /// If one or more Super keys were held down.
        /// </summary>
        Super = 0x0008
    }
}

Comments

Related issue on GLFW:
glfw/glfw#946

Does this have a proposal?

no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant