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