Skip to content

Add Num Lock and Caps Lock modifier from GLFW #2434

Open
@Hanprogramer

Description

@Hanprogramer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy