Function getState [src]
Retrieves the current state of a pointer device.
Prototype
pub fn getState(self: *const AbsolutePointer) GetStateError!State
Parameters
self: *const AbsolutePointer
Possible Errors
Source
pub fn getState(self: *const AbsolutePointer) GetStateError!State {
var state: State = undefined;
switch (self._get_state(self, &state)) {
.success => return state,
.not_ready => return Error.NotReady,
.device_error => return Error.DeviceError,
else => |status| return uefi.unexpectedStatus(status),
}
}