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: *SimpleTextInputEx
state: *const Key.State.Toggle
Possible Errors
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),
}
}