pub trait VirtualJoystickAction<I>:
Send
+ Sync
+ 'static {
// Provided methods
fn on_start_drag(
&self,
_id: I,
_data: VirtualJoystickState,
_world: &mut World,
_entity: Entity,
) { ... }
fn on_drag(
&self,
_id: I,
_data: VirtualJoystickState,
_world: &mut World,
_entity: Entity,
) { ... }
fn on_end_drag(
&self,
_id: I,
_data: VirtualJoystickState,
_world: &mut World,
_entity: Entity,
) { ... }
}Provided Methods§
fn on_start_drag( &self, _id: I, _data: VirtualJoystickState, _world: &mut World, _entity: Entity, )
fn on_drag( &self, _id: I, _data: VirtualJoystickState, _world: &mut World, _entity: Entity, )
fn on_end_drag( &self, _id: I, _data: VirtualJoystickState, _world: &mut World, _entity: Entity, )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".