Function readKeyStroke [src]

Reads the next keystroke from the input device.

Prototype

pub fn readKeyStroke(self: *SimpleTextInput) ReadKeyStrokeError!Key.Input

Parameters

self: *SimpleTextInput

Possible Errors

DeviceError
NotReady
Unexpected UnexpectedError
Unsupported

Source

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), } }