pub struct Binding {
pub source: Source,
pub modifier: f32,
}
Expand description
A binding to some source with additional properties like a value modifier. Useful for binding buttons to axis actions for example.
Fields§
§source: Source
§modifier: f32
Multipier to the value of the source when its event is received. Can be used to invert button values from (0..1) range to (0..-1) before they are applied as the input to an axis action.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Binding
impl RefUnwindSafe for Binding
impl Send for Binding
impl Sync for Binding
impl Unpin for Binding
impl UnwindSafe for Binding
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