Content-Length: 273073 | pFad | http://github.com/dotnet/Silk.NET/issues/2434

4C Add Num Lock and Caps Lock modifier from GLFW · Issue #2434 · dotnet/Silk.NET · GitHub
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
{
    //github.com/ <summary>
    //github.com/ Key modifiers, such as Shift or CTRL.
    //github.com/ </summary>
    public enum KeyModifiers
    {
        //github.com/ <summary>
        //github.com/ if one or more Shift keys were held down.
        //github.com/ </summary>
        Shift = 0x0001,

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

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

        //github.com/ <summary>
        //github.com/ If one or more Super keys were held down.
        //github.com/ </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









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: http://github.com/dotnet/Silk.NET/issues/2434

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy