How do you determine that MessageHandler->OnControllerButtonPressed() is not being called, via breakpoint?
And how do you process the inputs further via ‘Enhanced Input’, and is the ‘Completed’ trigger not being executed there in the corresponding event?
Hey. The demo project worked for me, but when I try (after enabling ERI in editor plugins) to include Windows/EnhancedRawInputWindows.h in my c++ files, it doesnt recognize it. Did I miss a step? Ive also added InputDevice and EnhancedRawInput in private dependency module names.
I think I’ve found a slight bug but it’s hard to tell if its just my joystick or something general as I don’t have another joystick to test with. Joystick is quite old it’s a Thrustmaster T.Flight Hotas X.
If I add a device configuration in the plugin settings, everything works fine. If I restart the editor the 'Rz’ and ‘slider’ axis’s no longer work. I can see the the axis input working via ‘showdebug enhanceddrawinput’ but the value doesn’t get picked up in my C++ code anymore. All the other axis work fine, although I don’t have an Rx/Ry axis so that might not work aswell.
I can delete the device configuration, re-add it and it works again, until I restart the editor.
As it turns out it’s not such a problem for me as I can have everything working without a device configuration, I was previously just using the raw input plugin until 5.6 broke it so I had to capture the input and change the axis to -1 to 1 rather than 0 to 1 but it seems your plugin does that for me if I leave everything as default without a device configuration.
What I noticed:
You have the axis in the ‘IMC_MouseLook’ context, but have you also defined the axis in the ‘IMC_Default’ context?
You can only use an axis in one context (restriction of ‘Enhanced Input’). If an axis is defined twice, only one event (usually the context that was initialised first) will be used.
Have the axis value output from the other context, e.g. via print. The axis should work there.
Nah I just added it to that one context, I didn’t really do anything else with it other than add it to a starter template to test it wasn’t my project.
On my project its only assigned in one context.
I wouldn’t worry about it, it’s probably just my old ■■■■■■ joystick and everything seems to work without a device configuration so it’s not really a big issue for me
You can compile it yourself if you put in your Plugins Folder in the Unreal Project it is used.
Or just change
“EngineVersion”: “5.6.0”,
to
“EngineVersion”: “5.7.0”,
in the
Hey! Apologies if this is a dumb question, I’m trying to get this working with the 5.6 vehicle template and a G920 steering wheel, I’m finding that the throttle seems to only go in reverse, and the gear shown in the HUD is flashing between 1 and R. Is there a setting I’m missing?
You can compile it yourself if you put in your Plugins Folder in the Unreal Project it is used.
Or just change
“EngineVersion”: “5.6.0”,
to
“EngineVersion”: “5.7.0”,
in the
LogClass: Error: BoolProperty FEnhancedRawInputDeviceInfo::bIsConnected is not initialized properly. Module:EnhancedRawInput File:Public/EnhancedRawInputFunctionLibrary.h
LogClass: Error: BoolProperty FEnhancedRawInputDeviceInfo::bIsActive is not initialized properly. Module:EnhancedRawInput File:Public/EnhancedRawInputFunctionLibrary.h
LogClass: Error: IntProperty FEnhancedRawInputDeviceInfo::NumberOfAxis is not initialized properly. Module:EnhancedRawInput File:Public/EnhancedRawInputFunctionLibrary.h
LogClass: Error: IntProperty FEnhancedRawInputDeviceInfo::NumberOfButtons is not initialized properly. Module:EnhancedRawInput File:Public/EnhancedRawInputFunctionLibrary.h
LogClass: Error: IntProperty FEnhancedRawInputDeviceInfo::NumberOfPoVs is not initialized properly. Module:EnhancedRawInput File:Public/EnhancedRawInputFunctionLibrary.h
LogClass: Error: IntProperty FProductIdentification::VendorId is not initialized properly. Module:EnhancedRawInput File:Public/EnhancedRawInputSettings.h
LogClass: Error: IntProperty FProductIdentification::ProductId is not initialized properly. Module:EnhancedRawInput File:Public/EnhancedRawInputSettings.h
LogClass: Error: EnumProperty FEnhancedRawInputAxisInfo::AxisUsage is not initialized properly. Module:EnhancedRawInput File:Public/EnhancedRawInputFunctionLibrary.h
LogClass: Error: IntProperty FEnhancedRawInputAxisInfo::MinValue is not initialized properly. Module:EnhancedRawInput File:Public/EnhancedRawInputFunctionLibrary.h
LogClass: Error: IntProperty FEnhancedRawInputAxisInfo::MaxValue is not initialized properly. Module:EnhancedRawInput File:Public/EnhancedRawInputFunctionLibrary.h
LogClass: Error: IntProperty FEnhancedRawInputPovInfo::MinValue is not initialized properly. Module:EnhancedRawInput File:Public/EnhancedRawInputFunctionLibrary.h
LogClass: Error: IntProperty FEnhancedRawInputPovInfo::MaxValue is not initialized properly. Module:EnhancedRawInput File:Public/EnhancedRawInputFunctionLibrary.h