pub struct RuyiGamePadInput {
pub device_id: Option<String>,
pub user_id: Option<String>,
pub button_flags: Option<i32>,
pub left_trigger: Option<i8>,
pub right_trigger: Option<i8>,
pub left_thumb_x: Option<i16>,
pub left_thumb_y: Option<i16>,
pub right_thumb_x: Option<i16>,
pub right_thumb_y: Option<i16>,
}
Fields
device_id: Option<String>
user_id: Option<String>
Combination of RuyiGamePadButtonFlags
left_trigger: Option<i8>
right_trigger: Option<i8>
left_thumb_x: Option<i16>
left_thumb_y: Option<i16>
right_thumb_x: Option<i16>
right_thumb_y: Option<i16>
Implementations
sourceimpl RuyiGamePadInput
impl RuyiGamePadInput
pub fn new<F1, F2, F3, F4, F5, F6, F7, F8, F9>(
device_id: F1,
user_id: F2,
button_flags: F3,
left_trigger: F4,
right_trigger: F5,
left_thumb_x: F6,
left_thumb_y: F7,
right_thumb_x: F8,
right_thumb_y: F9
) -> RuyiGamePadInputwhere
F1: Into<Option<String>>,
F2: Into<Option<String>>,
F3: Into<Option<i32>>,
F4: Into<Option<i8>>,
F5: Into<Option<i8>>,
F6: Into<Option<i16>>,
F7: Into<Option<i16>>,
F8: Into<Option<i16>>,
F9: Into<Option<i16>>,
pub fn read_from_in_protocol(
i_prot: &mut dyn TInputProtocol
) -> Result<RuyiGamePadInput>
pub fn write_to_out_protocol(
&self,
o_prot: &mut dyn TOutputProtocol
) -> Result<()>
Trait Implementations
sourceimpl Clone for RuyiGamePadInput
impl Clone for RuyiGamePadInput
sourcefn clone(&self) -> RuyiGamePadInput
fn clone(&self) -> RuyiGamePadInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RuyiGamePadInput
impl Debug for RuyiGamePadInput
sourceimpl Default for RuyiGamePadInput
impl Default for RuyiGamePadInput
sourceimpl Hash for RuyiGamePadInput
impl Hash for RuyiGamePadInput
sourceimpl Ord for RuyiGamePadInput
impl Ord for RuyiGamePadInput
sourcefn cmp(&self, other: &RuyiGamePadInput) -> Ordering
fn cmp(&self, other: &RuyiGamePadInput) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<RuyiGamePadInput> for RuyiGamePadInput
impl PartialEq<RuyiGamePadInput> for RuyiGamePadInput
sourcefn eq(&self, other: &RuyiGamePadInput) -> bool
fn eq(&self, other: &RuyiGamePadInput) -> bool
sourceimpl PartialOrd<RuyiGamePadInput> for RuyiGamePadInput
impl PartialOrd<RuyiGamePadInput> for RuyiGamePadInput
sourcefn partial_cmp(&self, other: &RuyiGamePadInput) -> Option<Ordering>
fn partial_cmp(&self, other: &RuyiGamePadInput) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for RuyiGamePadInput
impl StructuralEq for RuyiGamePadInput
impl StructuralPartialEq for RuyiGamePadInput
Auto Trait Implementations
impl RefUnwindSafe for RuyiGamePadInput
impl Send for RuyiGamePadInput
impl Sync for RuyiGamePadInput
impl Unpin for RuyiGamePadInput
impl UnwindSafe for RuyiGamePadInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more