gamecontroller.js icon indicating copy to clipboard operation
gamecontroller.js copied to clipboard

Set axeThreshold Not work

Open dalter opened this issue 3 years ago • 2 comments

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

dalter avatar Mar 04 '21 02:03 dalter

I'll check this over the weekend.

alvaromontoro avatar Mar 04 '21 18:03 alvaromontoro

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.

Hypercubed avatar Mar 12 '23 02:03 Hypercubed