endlesstravel / Love2dCS

C# Wrapper for LÖVE, a 2d game engine
MIT License
166 stars 14 forks source link

Loop through all JoyStick Axes and check their values? #81

Open Shadowblitz16 opened 5 years ago

Shadowblitz16 commented 5 years ago

is there a way to all the joysticks axes values? I have tried doing this..

for (var ji = 1; ji < j.GetAxisCount(); ji++)
{
    d.Update(j.GetGamepadAxis((GamepadAxis)ji));
}

and this

for (var ji = 1; ji < j.GetAxisCount(); ji++)
{
    d.Update(j.GetAxis((GamepadAxis)ji));
}

but the first seems to only update my buttonData's Left Trigger and the other returns really strange values like -1 when I am not pressing anything.

btw d is my BtnMap while this is from my BtnMapGroup I am trying to make bindable controls.

endlesstravel commented 5 years ago
Shadowblitz16 commented 5 years ago

ok cool I will try this out