JaydenMaalouf / JoystickPlugin

Native Input Joystick Plugin for Unreal Engine 4/5
MIT License
30 stars 6 forks source link

Axis keeps firing #55

Open iridescenthsn opened 9 months ago

iridescenthsn commented 9 months ago

A while after connecting the controller Axis 5 or 4 (which are R2 and L2 on my controller) keep firing for no reason. disconnecting and connecting the controller back fixes it temporarily but after a while it starts getting triggered again. This also happens if I just press any of these 2 axis and when I let go, its still getting triggered every frame

JaydenMaalouf commented 9 months ago

Are you using Enhanced Input or is this just the native input loop?

iridescenthsn commented 9 months ago

I am using enhanced input but it happens outside enhanced input as well.

iridescenthsn commented 9 months ago

I think I figured it out. the value for those axis were from -1 to 1 while they should have been between 0 and 1. overriding the axis like this fixed it I guess: image

iridescenthsn commented 9 months ago

There is something I dont understand @JaydenMaalouf .The option "ignore game controllers" is supposed to ignore XInput controllers so they can be handled by UE itself. But when I turn it on it also ignores playstation controllers (which cannot be handled by UE because they are not Xinput).

JaydenMaalouf commented 7 months ago

There is something I dont understand @JaydenMaalouf .The option "ignore game controllers" is supposed to ignore XInput controllers so they can be handled by UE itself. But when I turn it on it also ignores playstation controllers (which cannot be handled by UE because they are not Xinput).

Ah yes. This is an unfortunate issue with that toggle - it doesn't really have a way to ignore certain controller types. I could potentially add a field to ignore by Product Id? It may be difficult to ignore all XInput types though