JaydenMaalouf / JoystickPlugin

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

FJoystickInputDevice is missing JOYSTICKPLUGIN_API. #57

Closed fredzvt-drest closed 7 months ago

fredzvt-drest commented 7 months ago

On 3.2.0-rc.10, the FJoystickInputDevice class is missing the JOYSTICKPLUGIN_API macro.

On my code I got a pointer to it through JoystickSubsystem->GetInputDevice() but when I called JoystickInputDevice->GetInstanceIdByKey(Key) I got the link error: Error LNK2019 : unresolved external symbol "public: struct FJoystickInstanceId __cdecl FJoystickInputDevice::GetInstanceIdByKey(struct FKey const &)const " (?GetInstanceIdByKey@FJoystickInputDevice@@QEBA?AUFJoystickInstanceId@@AEBUFKey@@@Z) referenced in function "private: bool __cdecl UCPKeyMappingSubsystem::GetKeyOwnerJoystickGuid(struct FKey const &,struct FGuid &)const " (?GetKeyOwnerJoystickGuid@UCPKeyMappingSubsystem@@AEBA_NAEBUFKey@@AEAUFGuid@@@Z)

After a lot of time banging my head on the wall, I found that this class was never exported on the plugin module.

JaydenMaalouf commented 7 months ago

Thanks for pointing this out - I've just merged a commit into the #54 branch I will hopefully get this release out once I have resolved the other issues people are facing!

JaydenMaalouf commented 7 months ago

I have released 3.3.0 Please feel free to raise another issue if you happen to find something!