pub struct InputEditor {Show 26 fields
pub asset: InputAsset,
pub active_panel: InputEditorPanel,
pub selected_context: Option<usize>,
pub selected_action: Option<usize>,
pub selected_binding: Option<usize>,
pub selected_haptic: Option<usize>,
pub selected_macro: Option<usize>,
pub rebinding_mode: bool,
pub rebind_action: Option<String>,
pub rebind_binding_index: Option<usize>,
pub gamepad_state: GamepadState,
pub keyboard_state: KeyboardState,
pub mouse_state: MouseState,
pub live_input_values: HashMap<String, f32>,
pub deadzone_test_input: Vec2,
pub deadzone_test_output: Vec2,
pub selected_deadzone_axis: GamepadAxis,
pub haptic_preview_time: f32,
pub haptic_playing: bool,
pub search_query: String,
pub show_all_platforms: bool,
pub active_device_tab: InputDevice,
pub conflicts: Vec<BindingConflict>,
pub conflict_filter: Option<ConflictSeverity>,
pub history: Vec<InputAsset>,
pub history_pos: usize,
}Fields§
§asset: InputAsset§active_panel: InputEditorPanel§selected_context: Option<usize>§selected_action: Option<usize>§selected_binding: Option<usize>§selected_haptic: Option<usize>§selected_macro: Option<usize>§rebinding_mode: bool§rebind_action: Option<String>§rebind_binding_index: Option<usize>§gamepad_state: GamepadState§keyboard_state: KeyboardState§mouse_state: MouseState§live_input_values: HashMap<String, f32>§deadzone_test_input: Vec2§deadzone_test_output: Vec2§selected_deadzone_axis: GamepadAxis§haptic_preview_time: f32§haptic_playing: bool§search_query: String§show_all_platforms: bool§active_device_tab: InputDevice§conflicts: Vec<BindingConflict>§conflict_filter: Option<ConflictSeverity>§history: Vec<InputAsset>§history_pos: usizeImplementations§
Source§impl InputEditor
impl InputEditor
pub fn snapshot(&mut self)
pub fn undo(&mut self)
pub fn redo(&mut self)
pub fn refresh_conflicts(&mut self)
pub fn begin_rebind(&mut self, action: &str, binding_index: usize)
pub fn cancel_rebind(&mut self)
pub fn update_deadzone_test(&mut self, raw: Vec2)
pub fn update_haptic_preview(&mut self, dt: f32)
pub fn current_haptic_intensity(&self) -> f32
pub fn filtered_actions(&self) -> Vec<(&str, &InputAction)>
pub fn active_context(&self) -> Option<&ActionMapContext>
pub fn active_context_mut(&mut self) -> Option<&mut ActionMapContext>
pub fn generate_code_bindings(&self) -> String
Trait Implementations§
Source§impl Debug for InputEditor
impl Debug for InputEditor
Auto Trait Implementations§
impl Freeze for InputEditor
impl RefUnwindSafe for InputEditor
impl Send for InputEditor
impl Sync for InputEditor
impl Unpin for InputEditor
impl UnsafeUnpin for InputEditor
impl UnwindSafe for InputEditor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.