Lines Matching refs:flags
112 flags: MouseFlags, field
122 flags: MouseFlags::empty(), in new()
130 self.flags.contains(MouseFlags::LEFT_BUTTON) in left_button_down()
135 !self.flags.contains(MouseFlags::LEFT_BUTTON) in left_button_up()
140 self.flags.contains(MouseFlags::RIGHT_BUTTON) in right_button_down()
145 !self.flags.contains(MouseFlags::RIGHT_BUTTON) in right_button_up()
298 let flags: MouseFlags = MouseFlags::from_bits_truncate(packet); in process_packet() localVariable
299 if !flags.contains(MouseFlags::ALWAYS_ONE) { in process_packet()
302 guard.current_state.flags = flags; in process_packet()
305 let flags = guard.current_state.flags.clone(); in process_packet() localVariable
306 if !flags.contains(MouseFlags::X_OVERFLOW) { in process_packet()
307 guard.current_state.x = self.get_x_movement(packet, flags); in process_packet()
311 let flags = guard.current_state.flags.clone(); in process_packet() localVariable
312 if !flags.contains(MouseFlags::Y_OVERFLOW) { in process_packet()
313 guard.current_state.y = self.get_y_movement(packet, flags); in process_packet()
329 fn get_x_movement(&self, packet: u8, flags: MouseFlags) -> i16 { in get_x_movement()
330 if flags.contains(MouseFlags::X_SIGN) { in get_x_movement()
337 fn get_y_movement(&self, packet: u8, flags: MouseFlags) -> i16 { in get_y_movement()
338 if flags.contains(MouseFlags::Y_SIGN) { in get_y_movement()