Struct vjoy_wrapper::vjoy_base::device::feeding::VJDOwnership [−][src]
pub struct VJDOwnership(_);
Expand description
Holder of utility methods to manage devices acquisition and relinquishment.
Implementations
Acquire the specified device and change his state to VJDStatus::Own
.
Only a device in state VJDStatus::Free
can be acquired.
Returns true
if acquisition was authorized, false
otherwise.
Relinquish the previously acquired specified device and change his state to VJDStatus::Free
.
Only a device in state VJDStatus::Own
can be relinquish.
Returns true
if relinquishment was authorized, false
otherwise.