extern structstd.os.uefi.protocol.simple_text_input_ex.SimpleTextInputEx.Key[src]

Fields

input: Input
state: State

Source Code

Source code
pub const Key = extern struct {
    input: Input,
    state: State,

    pub const State = extern struct {
        shift: Shift,
        toggle: Toggle,

        pub const Shift = packed struct(u32) {
            right_shift_pressed: bool,
            left_shift_pressed: bool,
            right_control_pressed: bool,
            left_control_pressed: bool,
            right_alt_pressed: bool,
            left_alt_pressed: bool,
            right_logo_pressed: bool,
            left_logo_pressed: bool,
            menu_key_pressed: bool,
            sys_req_pressed: bool,
            _pad: u21 = 0,
            shift_state_valid: bool,
        };

        pub const Toggle = packed struct(u8) {
            scroll_lock_active: bool,
            num_lock_active: bool,
            caps_lock_active: bool,
            _pad: u3 = 0,
            key_state_exposed: bool,
            toggle_state_valid: bool,
        };
    };

    pub const Input = extern struct {
        scan_code: u16,
        unicode_char: u16,
    };
}