pub struct InputPort {
pub buttons: Buttons,
pub joystick_x: i16,
pub joystick_y: i16,
pub mouse_x: i16,
pub mouse_y: i16,
pub mouse_left_down: bool,
pub mouse_right_down: bool,
pub mouse_middle_down: bool,
}Fields§
§joystick_x: i16§joystick_y: i16§mouse_x: i16§mouse_y: i16§mouse_left_down: bool§mouse_right_down: bool§mouse_middle_down: boolImplementations§
Trait Implementations§
Source§impl Ord for InputPort
impl Ord for InputPort
Source§impl PartialOrd for InputPort
impl PartialOrd for InputPort
impl Copy for InputPort
impl Eq for InputPort
impl StructuralPartialEq for InputPort
Auto Trait Implementations§
impl Freeze for InputPort
impl RefUnwindSafe for InputPort
impl Send for InputPort
impl Sync for InputPort
impl Unpin for InputPort
impl UnwindSafe for InputPort
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more