Ikarus76 / UEJoystickPlugin

Unofficial Joystick Plugin for the Unreal Engine
39 stars 59 forks source link

compile error with ue4.6 #7

Open tsky1971 opened 9 years ago

tsky1971 commented 9 years ago

Hi, i got an error compile from Source UE4.6, with UE4.5 from Source and from Launcher the plugins works with an X52 but not with an MSForceWheel.

The Error: D:\UE4\cglabUnrealEngine_4.6\Engine\Plugins\JoystickPlugin\Source\JoystickPlugin\Private\FJoystickPlugin.cpp(200): error C2664: 'bool FSlateApplication::OnControllerButtonPressed(EControllerButtons::Type,int32,bool)' : cannot convert argument 1 from 'int' to 'EControllerButtons::Type' 19> Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)

Any Idea to solve this ?

tsky

Ikarus76 commented 9 years ago
Hi,
  I will look at this later today. I still didn't update to 4.6 :)

  If its only a problem of casting the value, it should be solved
  quickly.

  regards,
  Michael

  On 14.11.2014 12:13, tsky wrote:

  Hi,
    i got an error compile from Source UE4.6, with UE4.5 from Source
    and from Launcher the plugins works with an X52 but not with an
    MSForceWheel.
  The Error:
    D:\UE4\cglabUnrealEngine_4.6\Engine\Plugins\JoystickPlugin\Source\JoystickPlugin\Private\FJoystickPlugin.cpp(200):
    error C2664: 'bool
    FSlateApplication::OnControllerButtonPressed(EControllerButtons::Type,int32,bool)'
    : cannot convert argument 1 from 'int' to
    'EControllerButtons::Type'
    19> Conversion to enumeration type requires an explicit cast
    (static_cast, C-style cast or function-style cast)
  Any Idea to solve this ?
  tsky
  —
    Reply to this email directly or view
      it on GitHub.
getnamo commented 9 years ago

Made a pull request with compilation fixes for 4.6