10 years ago by substandardgaussian
The gamepad plugin written by dominic works like a charm, though it doesn't support the analog sticks at all: no problem, it's fairly simple to update the plugin to at least just pass the axis information along from the gamepad objects.
I'm interested in implementing gamepad aiming for my project. I want continuous aim but without jitters: that means that I don't want to just "snap" the axis info to various values or angles for the right stick as I intend to do for the left stick. My plan is to employ some sort of damping so that tiny changes to the real analog state of the right analog stick won't affect the perceived analog state that the game uses.
It'll probably take some practice to make it feel right. I kind of feel like this the usual way to implement gamepad aiming in 2D, like for example in Hotline Miami, but Google isn't doing so hot with giving me relevant topics. Does anyone know if any libraries that give an example implementation, whether they're Javascript or not?
I'm interested in implementing gamepad aiming for my project. I want continuous aim but without jitters: that means that I don't want to just "snap" the axis info to various values or angles for the right stick as I intend to do for the left stick. My plan is to employ some sort of damping so that tiny changes to the real analog state of the right analog stick won't affect the perceived analog state that the game uses.
It'll probably take some practice to make it feel right. I kind of feel like this the usual way to implement gamepad aiming in 2D, like for example in Hotline Miami, but Google isn't doing so hot with giving me relevant topics. Does anyone know if any libraries that give an example implementation, whether they're Javascript or not?