Announcement

Collapse
No announcement yet.

Joystick support via SDL2 library ?

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

    #46
    Originally posted by yanjieng View Post
    Hi!

    After you had packaged the game, what file do you need to copy over to the packaged file?

    Thank you
    Hi,
    normally i only have to copy the sdl.dll into the WindowsNoEditor-Directory.
    T.

    Comment


      #47
      Hi tsky!

      Correct me if I am wrong , I am supposed to copy and paste sdl2.dll into (C:\Users\ng\Desktop\mygame\New folder\WindowsNoEditor\MyProject2\Binaries\Win32) right ?

      If yes, I cannot move it with my joystick . Do you have any idea ?

      Thank you!

      Comment


        #48
        Hi samiljam !

        I not very familiar with the method you had mention. I am still very new to programming, Do you mind guiding me how to do it ?

        Thank you !

        Comment


          #49
          Originally posted by yanjieng View Post
          Hi tsky!

          Correct me if I am wrong , I am supposed to copy and paste sdl2.dll into (C:\Users\ng\Desktop\mygame\New folder\WindowsNoEditor\MyProject2\Binaries\Win32) right ?

          If yes, I cannot move it with my joystick . Do you have any idea ?

          Thank you!
          Hi,
          hmm as i wrote before: it should be the "WindowsNoEditor" Directory.
          Click image for larger version

Name:	WindowsEditor.PNG
Views:	1
Size:	7.1 KB
ID:	1107598
          You point out an Win32 directory, so be carefully i only use 64bit. So there is no precompiled version of sdl nor joystickplugin in my github. May be there is your error. Look in the demos i posted here in the thread to get a working example.

          T.

          Comment


            #50
            Originally posted by samiljan View Post
            Yes, I tried that some time ago, but if I remember correctly I had to build SDL myself with static linking support. Only then will the switch in the build file work. You should be able to use the .dll and .lib I included in this commit: https://github.com/samiljan/UEJoysti...ffb8fdab944a2a
            Wow that totally worked. Thanks a bunch!

            Comment


              #51
              Hi, tsky !

              For some reason after I close everything and start the exe file again then it works.

              Anywhere thank a lot !

              Comment


                #52
                Does this plugin work with Thrustmaster Warthog Hotas? I can not seem to get the axis bindings.

                Comment


                  #53
                  Originally posted by eozgonul View Post
                  Does this plugin work with Thrustmaster Warthog Hotas? I can not seem to get the axis bindings.
                  Hmm,

                  if you mean this: http://www.thrustmaster.com/de_DE/pr.../hotas-warthog i have to say thats the same i use in our lab and the plugins works well til UE 4.13. If i can (have time), i will check this next week. I have to update the binaries for newer versions.

                  t.

                  Update:
                  Update all binaries for UE 4.15+ for Plattform Windows (32,64).
                  Test with Thrustmaster HOTAS was ok. I got all all axis and buttons from joystick and throttle.
                  Click image for larger version

Name:	hotas.PNG
Views:	1
Size:	69.0 KB
ID:	1126246
                  If you need a Demo Project with configured plugins send me an PM.

                  t.
                  Last edited by tsky; 04-10-2017, 11:54 AM. Reason: update content information

                  Comment


                    #54
                    Update all binaries for UE 4.15+ for Plattform Windows (32,64).
                    Thanks, it works. Just need to be able to choose a device. That the first player would use one joystick, and the second player would use the other. How to do it?

                    Comment


                      #55
                      Why did they do this? What would appear in the list of all connected devices that they would have different names.

                      Click image for larger version

Name:	Безымянный34.png
Views:	1
Size:	61.0 KB
ID:	1126710 and Click image for larger version

Name:	Безымянный34.png
Views:	1
Size:	32.0 KB
ID:	1126738

                      If you connect two identical devices, they will work as one. Please correct.

                      To write a correctly working program you need to know the names of all the existing joysticks in the world? What would be possible to specify them in the input settings?
                      Last edited by Agni78; 04-22-2017, 11:28 AM.

                      Comment


                        #56
                        Originally posted by tsky View Post
                        Hmm,

                        if you mean this: http://www.thrustmaster.com/de_DE/pr.../hotas-warthog i have to say thats the same i use in our lab and the plugins works well til UE 4.13. If i can (have time), i will check this next week. I have to update the binaries for newer versions.

                        t.

                        Update:
                        Update all binaries for UE 4.15+ for Plattform Windows (32,64).
                        Test with Thrustmaster HOTAS was ok. I got all all axis and buttons from joystick and throttle.
                        [ATTACH=CONFIG]136644[/ATTACH]
                        If you need a Demo Project with configured plugins send me an PM.

                        t.

                        Correct, that's the controller I am talking about.

                        The problem is, stick and throttle inputs are not received when the game is run in new editor window. When I run over the stanalone game option, inputs are received just fine. This same problem also occurs on Logitech 3D Extreme stick.

                        Comment


                          #57
                          I answered my own question. How to connect two or more joysticks to the project. One character can be controlled by one joystick, the second character by another. The name of the joystick is not needed. Specify only the port number.Thank you for the plugin

                          Click image for larger version

Name:	Безымянный34.png
Views:	1
Size:	241.1 KB
ID:	1127066

                          Comment


                            #58
                            I know this is old, but, head's up - I created a PR so that multiple devices of the same type will show up as separate controllers now:

                            https://github.com/tsky1971/UEJoystickPlugin/pull/10

                            It just makes it a lot easier to work with this way.

                            Click image for larger version

Name:	Untitled1.jpg
Views:	134
Size:	43.0 KB
ID:	1633339
                            Last edited by jvukovich; 06-20-2019, 01:29 AM.

                            Comment


                              #59
                              Here is a new version for tests with 4.25.3

                              https://github.com/tsky1971/UEJoysti...ses/tag/4.25.3

                              Only recompiled. No further updates.

                              One manual step is to do for own deployments: copy sdl2.dll to binaries directory.

                              Comment


                                #60
                                Originally posted by tsky View Post
                                Here is a new version for tests with 4.25.3

                                https://github.com/tsky1971/UEJoysti...ses/tag/4.25.3

                                Only recompiled. No further updates.

                                One manual step is to do for own deployments: copy sdl2.dll to binaries directory.
                                Quick question, I'm using this plugin to add DualShock 4 and DualSense support, and I'm wondering how I would go about adjusting the deadzones and such for the triggers and analog sticks.
                                It seems like they go beyond -1 and 1, while being still doesn't produce 0.

                                EDIT:

                                Here's a video showing what I mean. Something is really off about the analog stick movement and triggers.

                                https://streamable.com/3fklql
                                Last edited by KingKrouch; 11-15-2020, 02:45 PM. Reason: Video proof.

                                Comment

                                Working...
                                X