Function setState [src]

Set certain state for the input device.

Prototype

pub fn setState(self: *SimpleTextInputEx, state: *const Key.State.Toggle) SetStateError!void

Parameters

self: *SimpleTextInputExstate: *const Key.State.Toggle

Possible Errors

DeviceError
Unexpected UnexpectedError
Unsupported

Source

pub fn setState(self: *SimpleTextInputEx, state: *const Key.State.Toggle) SetStateError!void { switch (self._set_state(self, @ptrCast(state))) { .success => {}, .device_error => return Error.DeviceError, .unsupported => return Error.Unsupported, else => |status| return uefi.unexpectedStatus(status), } }