Lines Matching refs:event_socket
44 event_socket: UnixStream, field
48 pub fn new(kind: EventDeviceKind, event_socket: UnixStream) -> EventDevice { in new()
49 let _ = event_socket.set_nonblocking(true); in new()
53 event_socket, in new()
58 pub fn mouse(event_socket: UnixStream) -> EventDevice { in mouse()
59 Self::new(EventDeviceKind::Mouse, event_socket) in mouse()
63 pub fn touchscreen(event_socket: UnixStream) -> EventDevice { in touchscreen()
64 Self::new(EventDeviceKind::Touchscreen, event_socket) in touchscreen()
68 pub fn keyboard(event_socket: UnixStream) -> EventDevice { in keyboard()
69 Self::new(EventDeviceKind::Keyboard, event_socket) in keyboard()
83 let written = self.event_socket.write(&self.event_buffer.as_slices().0)?; in flush_buffered_events()
127 let written = self.event_socket.write(&bytes)?; in send_event_encoded()
142 (&self.event_socket).read_exact(&mut event_bytes)?; in recv_event_encoded()
155 self.event_socket.as_raw_descriptor() in as_raw_descriptor()