gamecontroller.js
gamecontroller.js copied to clipboard
Set axeThreshold Not work
Hi, I tried to change axeThreshold as it is said in the documentation gameControl.set('axeThreshold', 0.5); In console log i see the axeThreshold is set to 0.5, but analogs stop work (i use xbox one and PS4 controllers) If i change axeThreshold:[0.5] var manually inside the library , its work fine
I'll check this over the weekend.
I know this is very old.. but...
I belive the issue is gameControl.set('axeThreshold', XXX);
only acceps a number where as gamepad.axeThreshold
needs to be an array for each axis.
gamepad.axeThreshold = [XXX, XXX]
works as expected.