VirtualJoystickAction

Trait VirtualJoystickAction 

Source
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§

Source

fn on_start_drag( &self, _id: I, _data: VirtualJoystickState, _world: &mut World, _entity: Entity, )

Source

fn on_drag( &self, _id: I, _data: VirtualJoystickState, _world: &mut World, _entity: Entity, )

Source

fn on_end_drag( &self, _id: I, _data: VirtualJoystickState, _world: &mut World, _entity: Entity, )

Implementors§