pub struct InputSpec { /* private fields */ }Expand description
One bool or normalized float-axis input exposed by an input device.
Implementations§
Source§impl InputSpec
impl InputSpec
Sourcepub const fn new(
name: &'static str,
display_name: &'static str,
value_type: InputValueType,
) -> Self
pub const fn new( name: &'static str, display_name: &'static str, value_type: InputValueType, ) -> Self
Describes one input using the exact names consumed by SCS.
Syntax is validated when the containing device is registered. The configuration name accepts lowercase ASCII letters, digits, and underscores. The display name accepts ASCII letters, digits, underscores, spaces, and dots.
Sourcepub const fn name(self) -> &'static str
pub const fn name(self) -> &'static str
Name persisted by the game or interpreted as a semantical mix name.
Sourcepub const fn display_name(self) -> &'static str
pub const fn display_name(self) -> &'static str
Human-facing name shown by the game’s input UI.
Sourcepub const fn value_type(self) -> InputValueType
pub const fn value_type(self) -> InputValueType
SDK representation expected for events targeting this input.
Trait Implementations§
impl Copy for InputSpec
impl Eq for InputSpec
impl StructuralPartialEq for InputSpec
Auto Trait Implementations§
impl Freeze for InputSpec
impl RefUnwindSafe for InputSpec
impl Send for InputSpec
impl Sync for InputSpec
impl Unpin for InputSpec
impl UnsafeUnpin for InputSpec
impl UnwindSafe for InputSpec
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