Lines Matching refs:flags
113 flags: MouseFlags, field
123 flags: MouseFlags::empty(), in new()
131 self.flags.contains(MouseFlags::LEFT_BUTTON) in left_button_down()
136 !self.flags.contains(MouseFlags::LEFT_BUTTON) in left_button_up()
141 self.flags.contains(MouseFlags::RIGHT_BUTTON) in right_button_down()
146 !self.flags.contains(MouseFlags::RIGHT_BUTTON) in right_button_up()
294 let flags: MouseFlags = MouseFlags::from_bits_truncate(packet); in process_packet() localVariable
295 if !flags.contains(MouseFlags::ALWAYS_ONE) { in process_packet()
298 guard.current_state.flags = flags; in process_packet()
301 let flags = guard.current_state.flags; in process_packet() localVariable
302 if !flags.contains(MouseFlags::X_OVERFLOW) { in process_packet()
303 guard.current_state.x = self.get_x_movement(packet, flags); in process_packet()
307 let flags = guard.current_state.flags; in process_packet() localVariable
308 if !flags.contains(MouseFlags::Y_OVERFLOW) { in process_packet()
309 guard.current_state.y = self.get_y_movement(packet, flags); in process_packet()
325 fn get_x_movement(&self, packet: u8, flags: MouseFlags) -> i16 { in get_x_movement()
326 if flags.contains(MouseFlags::X_SIGN) { in get_x_movement()
333 fn get_y_movement(&self, packet: u8, flags: MouseFlags) -> i16 { in get_y_movement()
334 if flags.contains(MouseFlags::Y_SIGN) { in get_y_movement()