Description

The FRawInputDeviceConfiguration struct is not exposed so attempting to define custom raw input device configs fails with unresolved external errors when using:

FRawInputDeviceConfiguration newConfiguration;

If a pointer is used instead:

FRawInputDeviceConfiguration* newConfiguration;

VS errors at:

RawInputSettings->DeviceConfigurations.Add(newConfiguration);

stating that it cannot convert argument from FRawInputDeviceConfiguration* to FRawInputDeviceConfiguration&&.

Regression:
No - Raw Input not available prior to 4.15

Steps to Reproduce
  1. Open UE4 Editor
  2. Add code to project based on Actor (MyActor)
  3. Add include statement to RawInputSettings.h
    • Path/To/Engine/Location/Engine/Plugins/Experimental/RawInput/Source/RawInput/Public/RawInputSettings.h
  4. Add the following to MyActor.h
    • FRawInputDeviceConfiguration newConfiguration
  5. Compile

Result:
Unresolved External errors when using FRawInputDeviceConfiguration

Expected:
FRawInputDeviceConfiguration is exsposed and custom device configurations can be setup.

Have Comments or More Details?

Head over to the existingAnswerHub thread and let us know what's up.

0
Login to Vote

Fixed
ComponentGameplay - Input
Affects Versions4.15
Target Fix4.16
Fix Commit3317495
Main Commit3358685
CreatedFeb 21, 2017
ResolvedFeb 22, 2017
UpdatedApr 27, 2018