JaydenMaalouf / JoystickPlugin

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

No place to bind an axis in the Joystick Input section inside of project settings. #70

Closed TobiiCodes closed 4 months ago

TobiiCodes commented 4 months ago

This is the setup guide: image But this is what is on my screen (UE 5.4.2): image

JaydenMaalouf commented 4 months ago

Ah yep. This is just old documentation from version 2.x The system works the same, it just doesn't need to care about the physical key The reason behind this was there were times where the Joystick name would cause the Joystick key mapping to be lost by Unreal So I opted to use the Joystick GUID and an array of the index and the mappings I do prefer the old system, so might look at going back to it now that the key mapping being lost issue is resolved

TobiiCodes commented 4 months ago

But ue5 still wont detect any input from my g920

JaydenMaalouf commented 4 months ago

But ue5 still wont detect any input from my g920

Can you detail the issue a little more? Does the device show up in the connected devices list (in the settings)?

TobiiCodes commented 4 months ago

yes it does but if i put it into input as in axis mappings (binding the steering wheel rotation) then i print that axis float in a blueprint it always returns 0 even tho i turn the wheel

JaydenMaalouf commented 4 months ago

yes it does but if i put it into input as in axis mappings (binding the steering wheel rotation) then i print that axis float in a blueprint it always returns 0 even tho i turn the wheel

To clarify, in your screenshot, that is an input REmapping configuration. Which is for if your joystick does not present pressed in a standard 0-1 float. ie. my pedals come in 1:-1 (yes inverted), so the remapping is necessary for me

What happens if you have no input remapping and just use the axis event?

TobiiCodes commented 4 months ago

Still no input, the screen shot isnt really an issue anymore, just that it always returns 0 and detects 0 input

JaydenMaalouf commented 4 months ago

Still no input, the screen shot isnt really an issue anymore, just that it always returns 0 and detects 0 input

Can you please provide some more screenshots on your device in the Connected Devices settings page and how you're trying to access the axis value?

I just want to make sure that everything is setup correctly

Also, can you enable logs (within the Joystick settings) and restart the editor? Then if possible, copy the content to a pastebin (obfuscate the PI/PII from logs) and send the link here

TobiiCodes commented 4 months ago

Logs are enabled, where do i find them?

here is the joystick input settings: image

steering2 binded to the axis 0: image

printing the float value of the axis: image

always prints 0 no matter if i turn the wheel, press gass pedal, brakes or clutch. image

JaydenMaalouf commented 4 months ago

Logs are enabled, where do i find them?

Logs go to <projectDirectory>/Saved/Logs/ Usually the last modified file is the one to upload

here is the joystick input settings:

image

That mapping is not necessary as it's bound to -1 which is not a valid axis index. I would suggest removing it

image Please expand this drop down and upload a screenshot of the results

TobiiCodes commented 4 months ago

LOG: SimRacing.log

Connected devices: image

JaydenMaalouf commented 4 months ago

Okay, so which Axis are you binding to again? I assume Joystick_Logitech_G_HUB_G920_Driving_Force_Racing_Wheel_USB_0_Axis0?

TobiiCodes commented 4 months ago

Yes

TobiiCodes commented 4 months ago

FIX: Do not run input mode ui only! image

Turn off consume input on inputaxis! ![Uploading image.png…]()