if you want to recompile run: (E:\Unreal Projects\JoystickDemo411\Plugins\JoystickPlugin\ThirdParty\SDL2) setup and build (if your system has all dependencies (directx, winsdk etc.) it will say success at the end)
Here is a complete project.
I did not make action bindings. So no action with joystick. I use this plugin in my lab projects nearly every day… so it works.
This plugin is great, and I’m able to use it in 4.11 but only in the editor. Like mentioned before, packaging does not include the SDL dll on Windows so one has to manually copy it over.
Have there been any developments on statically linking on Windows? so copying the DLL is not necessary?
I get
unresolved external symbol _purecall
errors when I switch the bool at the top of the JoystickPlugin.Build.cs file. Is this the same issue from before?
Hi,
as we never publish games i never solve this issue. If i had to deploy an version i do copy the sdl.dll to the place where the game executable is placed. This should solve the problem. See in my demo deployment.
tsky
PS: If someone would dive into the .build.cs file this can perhaps be solved in a better way
Correct me if I am wrong , I am supposed to copy and paste sdl2.dll into (C:\Users
g\Desktop\mygame\New folder\WindowsNoEditor\MyProject2\Binaries\Win32) right ?
If yes, I cannot move it with my joystick . Do you have any idea ?
Hi,
hmm as i wrote before: it should be the “WindowsNoEditor” Directory.
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.
if you mean this: http://www.thrustmaster.com/de_DE/produkte/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.
If you need a Demo Project with configured plugins send me an PM.
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?
Why did they do this? What would appear in the list of all connected devices that they would have different names.
and
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?
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.
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
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.