Struct input_actions::action::Action
source · [−]pub struct Action { /* private fields */ }
Expand description
As in Rewired, an Action is a application/consumer facing event which a
User
can trigger via a Device
.
To configure an action:
- Call
System::add_action
- Add the
Action Id
used inadd_action
to add the action to anaction set
. - Add the action set via
System::add_action_set
. - Enable the action set for a given user via
System::mark_action_set_enabled
.
Once configured, System::get_user_action
can be called to get the action state
.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more