On pc use W A S D to move or the arrow keys and click the joystick so the attack button appears and then hover your mouse over the attack button and click when you want to attack. On mobile move around with the joystick and click the attack button when you want to. By the way this is multitouch. And no cheating by spamming the attack button because you have energy.
I need to thank griffpatch for the joystick and multitouch.