Struct rusty_keys::Device
[−]
[src]
pub struct Device { /* fields omitted */ }
The virtual device.
Methods
impl Device
[src]
fn new(fd: c_int) -> Self
[src]
Wrap a file descriptor in a Device
.
fn synchronize(&mut self) -> Res<()>
[src]
Synchronize the device.
fn send(&mut self, kind: c_int, code: c_int, value: i32) -> Res<()>
[src]
Send an event.
fn press(&mut self, kind: c_int, code: c_int) -> Res<()>
[src]
Send a press event.
fn release(&mut self, kind: c_int, code: c_int) -> Res<()>
[src]
Send a release event.
fn click(&mut self, kind: c_int, code: c_int) -> Res<()>
[src]
Send a press and release event.
fn position(&mut self, kind: c_int, code: c_int, value: i32) -> Res<()>
[src]
Send a relative or absolute positioning event.