Skip to content

Add a cross-platform GetKeyboardModifierState() function #2296

@totalgee

Description

@totalgee

When trying to find out which modifier keys were pressed during a fileDrop() event, I found it was necessary to "roll my own" custom solution. (see https://discourse.libcinder.org/t/getting-keyboard-modifiers-in-filedrop/2043)

It would be nice if this cross-platform functionality was exposed as a Cinder function (as @axjxwright wrote, this can be done using Cocoa: [NSEvent modifierFlags] and Windows: GetAsyncKeyState()).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions