[][src]Function joydev::io_control::get_event

pub fn get_event(fd: RawFd) -> Result<Event>

Read an event. Calls read.

If read fails with EAGAIN return Error::QueueEmpty. In this context EAGAIN is not an error but rather an indicator that the device has no events left. This only applies if the device is opened in non-blocking mode for blocking mode EAGAIN shouldn't be ever returned.