I have this code for mouse:
if love.mouse.isDown(1) then
self.player:fire()
end
So this fires the gun as long as the mouse button is held down. I have onscreen buttons for touch which I can capture individual touches with love.touchpressed but this fires the gun one at a time.
I want it so that the player can touch the onscreen button and as long as it is held down the gun fires continuously.