Input contains the necessary infoamtions to satisfy all your binary input-gathering needs!
Input is used for keyboard input (VirtualKeyCode) and mouse input (MouseButton).
See Events-documentation for usage information.
Returns wether the button is currently pressed. Does not care when it was pressed.
Returns wether the button was pressed this frame.
Returns wether the button was released this frame.
Returns an entire list of buttons that were just pressed.
Returns an entire list of buttons that were just released.
Returns an entire list of buttons that are pressed right now.
Performs copy-assignment from source
. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static