mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-05 07:48:05 +07:00
Added casting on mobile
This commit is contained in:
@ -96,8 +96,8 @@ public class MobileControls extends WidgetGroup implements Disposable {
|
||||
@Override
|
||||
public void tap(InputEvent event, float x, float y, int count, int button) {
|
||||
gameScreen.spellsQuickPanelR.setVisible(false);
|
||||
Button actor = (Button) event.getListenerActor();
|
||||
// TODO: cast spell
|
||||
HotkeyButton actor = (HotkeyButton) event.getListenerActor();
|
||||
gameScreen.player.cast(actor.getSkill());
|
||||
}
|
||||
};
|
||||
gestureListener.getGestureDetector().setLongPressSeconds(0.5f);
|
||||
|
Reference in New Issue
Block a user