X Tutup
Skip to content

Generating a 'shifted' key (i.e. #) #7

@Veebers

Description

@Veebers

Hi,

How would I determine what key codes to fire off to generate a specific character?
(For instance to generate a '~' there is ecodes.KEY_GRAVE, but I don't see something like ecodes.COLON (for ':').)

So on my desktop I use a combination of KEY_LEFTSHIFT + KEY_SEMICOLON to generate a colon (:).
How would I determine the correct sequence of events on a particular platform/keyboard layout?

Oh also this is using UInput.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup