Code: Select all
local inputtype, inputindex, hatdirection = joystick:getGamepadMapping("a")
print("name", joystick:getName())
print("is gamepad", joystick:isGamepad())
print("inputtype", inputtype)
print("inputindex", inputindex)
print("hatdirection", hatdirection)
prints:
name XInput Controller #1
is gamepad true
inputtype nil
inputindex nil
hatdirection nil
I tried different controllers, they are all original Xbox controllers. I am currently using Love version 0.10.2 but I tried different versions to see if it was a bug introduced recently but got the same results in all the versions I tried
any help would be truly appreciated