Connecting my DS4 wired with the default default.gamepads
, works perfectly. Connecting it via Bluetooth yields a spam of trigger input events each frame (they both show up as “Wireless Controller”).
I think it’s because they’re both matched as “Wireless Controller”, when, in fact, it behaves differently wired vs wireless.
DEBUG:SCRIPT: hash: [gamepad_ltrigger],
{ --[[0x114985400]]
x = -415.75,
pressed = false,
y = 477.65216064453,
gamepad = 0,
screen_dy = 0,
screen_dx = 0,
screen_y = 916,
screen_x = -832,
value = 0.5,
dx = 0,
repeated = false,
released = false,
dy = 0
}
DEBUG:SCRIPT: hash: [gamepad_rtrigger],
{ --[[0x1147cb260]]
x = -415.75,
pressed = false,
y = 477.65216064453,
gamepad = 0,
screen_dy = 0,
screen_dx = 0,
screen_y = 916,
screen_x = -832,
value = 0.5,
dx = 0,
repeated = false,
released = false,
dy = 0
}