Open
candycarmel
opened this issue 1 year ago
•
0 comments
theres no way to get a controller object from controller events like onGamepadStick
currently, the only parameter in the arrow function for gamepad events is the button or a vector of the stick position. it would be really useful to also get the gamepad object.
add another parameter possibly to the event of the gamepad object
a second gamepad parameter in all gamepad events of the gamepad object that triggered the event
you could get the gamepad object by looping through all gamepads connected and checking if the stick value is the same as the one in the stick event, however I'm not sure if its possible with gamepad button events and also another controller could have the same stick value (somehow with stick drift)