Announcement

Collapse
No announcement yet.

UE 4.8 joystick support

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    UE 4.8 joystick support

    Have not been able to find any answers about this.

    Is there anyway to get joystick input in UE 4.8 ? USB joystick, not a game controller.

    I found some plugins but all of them give me an error saying they were made for a different version of the engine.

    I feel like i am missing something because this seems like a very simple feature that should be included with the engine.

    I have found that a joystick is the only really usable form of input with the oculus rift, very frustrated not being able to find support in unreal. Any help would be greatly appreciated.

    #2
    Originally posted by strayVoltage View Post
    Have not been able to find any answers about this.

    Is there anyway to get joystick input in UE 4.8 ? USB joystick, not a game controller.

    I found some plugins but all of them give me an error saying they were made for a different version of the engine.

    I feel like i am missing something because this seems like a very simple feature that should be included with the engine.

    I have found that a joystick is the only really usable form of input with the oculus rift, very frustrated not being able to find support in unreal. Any help would be greatly appreciated.
    I also echo this frustration, I use a plugin provided by a user here on the forums, however, it is not compatible with 4.8. It doesn't matter if it is a controller or not, a joystick is a joystick, you just need a plugin that handles direct input.

    https://github.com/samiljan/UEJoystickPlugin

    Comment


      #3
      What version of the engine did you get that working on ? If push comes to shove I would use 4.7.6, but i tried to add this plugin to a 4.7.6 project and it says:

      The following modules are missing or built with a different engine version:

      UE4Editor-JoystickPlugin.dll

      Would you like to rebuild them now?

      when i click yes it says:

      projectName could not be compiled. Try rebuilding them from source manually

      Comment


        #4
        For anyone interested, this is kind of a hacky work-around, but as The Britain stated, the problem is just that unreal wants xinput instead of directinput

        I got joystick support working by using x360ce, available here: https://github.com/x360ce/x360ce

        its basically an open source program meant to let off-brand gamepads emulate the brand-name xbox 360 controllers, but it does so by translating directinput to xinput.



        This only works after you package the game to play in windows outside of the editor

        1. Set up project input axis to use the gamepad thumbstick axes
        2. After packaging the game, you should have a folder named somethings like 'WindowsNoEditor'
        3. After downloading x360ce (in the appropriate 32 or 64 bit version) configure the inputs of your joystick to match the gamepad inputs you set up in step 1 *look for youtube video on configuring x360ce*

        you should now have 3 files:
        x360ce_x64 application
        xinput1_3.dll
        x360ce configuration file

        4. copy these 3 files into WindowsNoEditor>Engine>Binaries>Win64

        Your joystick inputs should now work within your application.


        This is by no means an ideal solution. I would really like to see native support from Epic.

        Comment


          #5
          I can verify 100% that the plugin I linked works on 4.7.6 which is the last version of Super Smash Ponies before we switched to Unity. It also does seamless switching between XInput and Direct Input, but I think that's just Unreal adding its 2c. We considered x360e before we ran into this plugin, but it is not stable at all and has caused me an endless amount of headaches. After I installed it, by joystick now acts like 2 joysticks. Meaning I can controller both Joy1 and Joy2 with the same controller at the same time. I recommend not installing it.

          Comment

          Working...
          X