Function readKeyStroke [src]

Reads the next keystroke from the input device.

Prototype

pub fn readKeyStroke(self: *SimpleTextInputEx) ReadKeyStrokeError!Key

Parameters

self: *SimpleTextInputEx

Possible Errors

DeviceError
NotReady
Unexpected UnexpectedError
Unsupported

Source

pub fn readKeyStroke(self: *SimpleTextInputEx) ReadKeyStrokeError!Key { var key: Key = undefined; switch (self._read_key_stroke_ex(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), } }