@selfsame it's fun! 🙂
has anyone here worked with libgdx before? specifically, there seems to be an issue with their controller support. both triggers (left trigger and right trigger) are mapped to the 4th axis of the controller, rather than having separate axes. left trigger is 4th axis positive, right trigger is 4th axis negative soooo if you hold down both triggers, you get a net input of zero...
theres got to be a way to fix that.
@idiomancy you can poll whether each trigger is being pressed down with getButton
they aren't buttons though
they're axes
they have continuous values
so if the net value of the axis is, say, -0.25, you have no way of knowing what the value of each trigger is
-0.25 could mean LT 0.5 RT -0.75 or LT 0.4 RT -0.85
or a million other things
triggers aren't very reliable for that
altho, have you checked if your controller supports axes above 4?
the xbox controller?
yes it supports more than 4 axes. You can map them separately in JoyToKey
also, triggers should be exceedingly reliably for that, they're independently pressure sensitive axes
so, imagine having a mecha game like Robot Alchemic Drive https://en.wikipedia.org/wiki/Robot_Alchemic_Drive where the left leg is moved with the left trigger, and right leg is moved with right trigger.
that would be completely impossible unless you had the independent values of those triggers
hmm
sure, triggers are reliable if you know exactly which controller you support
but not otherwise
in this case tho, I think it's a bug in lwjgl
which libgdx version are you running?
1.9.3
just for the fun of it, try 1.9.4
sure thing
same thing in 1.9.4
hmm, the fix I'm looking at only made it into lwjgl 3
what fix is that?
and is lwjgl the new or old version, hahaha
new one
huh. So. I suppose I need to look into how to use lwjgl 3
it might solve this particular issue
do you know offhand how to specify that you want an lwjgl 3 app? There's no Lwgl3Application class I can instantiate 😛 (that would be too easy i suppose)
sorry, I've never used it myself
I would start with changing the backend dependency
I think the controllers extension also needs another dependency for it
yeah, sure thing. I can do the legwork, I was just curious if you happened to know offhand. If its any work to figure it out, dont worry about it, thats my job.
I have to get ready for ludum dare myself 😛
fyi @oahner I was wrong, there is just a "Lwjgl3Application" class you can drop in and replace the LwjglApplication with
and the deps are super easy.
and, all the input works like a charm in 3