InputEventKey

    Input event type for keyboard events.

    Stores key presses on the keyboard. Supports key presses, key releases and events.

    Tutorials

    Methods

    get_scancode_with_modifiers ( ) const

    • pressed
    Defaultfalse
    Setterset_pressed(value)
    Getteris_pressed()

    If , the key’s state is pressed. If false, the key’s state is released.


    The key scancode, which corresponds to one of the constants.


    Default
    Setterset_unicode(value)
    Getterget_unicode()

    The key Unicode identifier (when relevant). Unicode identifiers for the composite characters and complex scripts may not be available unless IME input mode is active. See for more information.

    Method Descriptions

    Returns the scancode combined with modifier keys such as Shift or Alt. See also InputEventWithModifiers.