pub struct InputDescriptor {
pub port: InputPort,
pub device: ControllerDevice,
pub index: InputDescriptorIndex,
pub id: InputDescriptorId,
pub description: String,
}Fields§
§port: InputPort§device: ControllerDevice§index: InputDescriptorIndex§id: InputDescriptorId§description: StringImplementations§
Source§impl InputDescriptor
impl InputDescriptor
pub fn new( port: impl Into<InputPort>, device: ControllerDevice, index: impl Into<InputDescriptorIndex>, id: impl Into<InputDescriptorId>, description: impl Into<String>, ) -> Self
pub fn joypad( port: impl Into<InputPort>, button: JoypadButton, description: impl Into<String>, ) -> Self
pub fn analog( port: impl Into<InputPort>, stick: AnalogStick, axis: AnalogAxis, description: impl Into<String>, ) -> Self
pub fn mouse( port: impl Into<InputPort>, id: impl Into<InputDescriptorId>, description: impl Into<String>, ) -> Self
pub fn pointer( port: impl Into<InputPort>, index: impl Into<InputDescriptorIndex>, id: impl Into<InputDescriptorId>, description: impl Into<String>, ) -> Self
pub fn lightgun( port: impl Into<InputPort>, id: impl Into<InputDescriptorId>, description: impl Into<String>, ) -> Self
Trait Implementations§
Source§impl Clone for InputDescriptor
impl Clone for InputDescriptor
Source§fn clone(&self) -> InputDescriptor
fn clone(&self) -> InputDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InputDescriptor
impl Debug for InputDescriptor
Source§impl PartialEq for InputDescriptor
impl PartialEq for InputDescriptor
Source§fn eq(&self, other: &InputDescriptor) -> bool
fn eq(&self, other: &InputDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for InputDescriptor
impl StructuralPartialEq for InputDescriptor
Auto Trait Implementations§
impl Freeze for InputDescriptor
impl RefUnwindSafe for InputDescriptor
impl Send for InputDescriptor
impl Sync for InputDescriptor
impl Unpin for InputDescriptor
impl UnsafeUnpin for InputDescriptor
impl UnwindSafe for InputDescriptor
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