Struct linux_input::VirtualDevice [−][src]
pub struct VirtualDevice { /* fields omitted */ }
Implementations
pub fn create<I>(
id: DeviceId,
name: &str,
event_bits: I
) -> Result<Self, DeviceCreateError> where
I: IntoIterator<Item = EventBit>,
pub fn poll_force_feedback(
&self,
timeout: Option<Duration>
) -> Result<Option<ForceFeedbackRequest<'_>>, Error>
Emits an event into the device.
You can also pass a whole InputEvent
here, however
the timestamp will be ignored.
The events are buffered and will not be sent immediately;
you need to send InputEventBody::Flush
to flush them.