pub fn readKeyStroke(self: *SimpleTextInput) ReadKeyStrokeError!Key.Input self: *SimpleTextInput31
32
33
34
35
36
37
38
39
40 pub fn readKeyStroke(self: *SimpleTextInput) ReadKeyStrokeError!Key.Input {
var key: Key.Input = undefined;
switch (self._read_key_stroke(self, &key)) {
.success => return key,
.not_ready => return error.NotReady,
.device_error => return error.DeviceError,
.unsupported => return error.Unsupported,
else => |status| return uefi.unexpectedStatus(status),
}
}
Reads the next keystroke from the input device.