pub struct InputInitCall<'scope> { /* private fields */ }Expand description
Initialization-only input capability which can register devices.
Implementations§
Source§impl InputInitCall<'_>
impl InputInitCall<'_>
pub const fn input_api_version(&self) -> InputApiVersion
pub const fn logger(&self) -> ScopedLogger<'_>
Sourcepub fn register_device(&self, device: &InputDeviceRegistration<'_>) -> SdkResult
pub fn register_device(&self, device: &InputDeviceRegistration<'_>) -> SdkResult
Registers one input device during scs_input_init.
§Errors
Returns the SDK error reported by SCS when the device name, input list, callbacks, or current lifecycle state are rejected by the game.
Auto Trait Implementations§
impl<'scope> !Send for InputInitCall<'scope>
impl<'scope> !Sync for InputInitCall<'scope>
impl<'scope> !UnwindSafe for InputInitCall<'scope>
impl<'scope> Freeze for InputInitCall<'scope>
impl<'scope> RefUnwindSafe for InputInitCall<'scope>
impl<'scope> Unpin for InputInitCall<'scope>
impl<'scope> UnsafeUnpin for InputInitCall<'scope>
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