Search found 3 matches

by bkumanchik
Tue Aug 24, 2021 4:04 am
Forum: Support and Development
Topic: having issues reading gamepad - hat and buttons
Replies: 5
Views: 6519

Re: having issues reading gamepad - hat and buttons

Didn't work, I get:

---------------------
Error

main.lua:124: attempt to index global 'Joystick' (a nil value)


Traceback

main.lua:124: in function 'move_turret'
main.lua:62: in function 'update'
[C]: in function 'xpcall'
---------------------
I've tried everything :(
by bkumanchik
Tue Aug 24, 2021 12:38 am
Forum: Support and Development
Topic: having issues reading gamepad - hat and buttons
Replies: 5
Views: 6519

having issues reading gamepad - hat and buttons

I am trying to use the hat to move a sprite left and right and the A button to fire, I've spent all day trying to figure this out. Here's my code, any help would be appreciated: --move turret function move_turret() --don't move it if turret is exploding if not turret_hit then --if love.keyboard.isDo...