getState
Retrieves the current state of a pointer device.
Function parameters
Parameters
- self:*const SimplePointer
Protocol for mice.
Types
- SimplePointer
- Protocol for mice.
Source
Implementation
pub fn getState(self: *const SimplePointer) 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),
}
}