![]() ![]() ![]() Did some googling and here you are with this awesome solution!įrankly, I did have the same issues like skysailor98 with the Xinput dll. About a day ago I was thinking that there should be a way to emulate a RailDriver device input somehow. I have registered here just to say a big thank you to Michael. It would be so easy if i just could force TSW to ignore the xbox controller, but i guess that there is no way to set this up. One of them only works well with Xinput Devices, so i would also have to use another virtual device here. But therefore i have to rewrite/recompile my lever from Xinput to Directinput, and also have to change a bunch of simulators that are already finetuned to my Lever. I could then use a virtual mapped device with your dll. I may have to change my lever from an Xbox device to an regular Joystick, so that TSW will not recognize it as input device anymore. So my "Xbox controller" (the Lever on my Desk) accidently pans the Camera, its Sifa Button or the Emergency Brake notch forces the game to the "do you really want to quit?" message and so on. At the moment I can't really use it however, cause i programmed my throttle lever to mimic an XBox controller already which means that it will interfere with the native xbox controller support built in TSW. I'll look at making a blank DLL with all the functions to see if that causes the same crashing issues on your machines.Ĭlick to expand.I've made a test, and it worked as intended as far as i can tell. For the other controls or if you want the combined throttle control on one pot. Val = map(val, 0, 1023, 0, 255) This would map the complete range of the control. I Limited my upper value to 230 as above this value seemed to be a deadzone. Val = map(val, 0, 388, 135, 230) Mine is mapping 0-388 (For my pot) to 135-230 (This is so I have one pot just for the throttle half of the combined throttle/brake that's on the Raildriver controller. The pot I'm using is from another project and has a resistor inline with the voltage in so my mapping is different. I would suggest testing with the analog input example first to make sure it's all working. You then map this to 0-255 as that is what the Raildriver DLL outputs to the game. ![]() The Arduino Leonardo analog inputs are 10bit so you should read a value of 0-1023. It shouldn't really matter about the resistance but make sure it is a linear pot. ![]() The standard Arduino or Mega will only work in the serial port version. This is so I can use it in the serial port version or the XInput game controller version. (Let me know if this needs work as I'm not famililar with the outputs of the actual Raildriver)Ĭlick to expand.I'm using a Leonardo as it has built in USB. The Bail-Off value will be that of the Right Thubstick Y and Independent Brake value will be 0. I have set it up so to use bail-off hold the DPad Up Button. *Note: The bail-off control on the original Raildriver is a 0-255 analog value like the rest. Independent Brake/Bail-off* - Right Thumbstick Y Here is how the DLL interprets the game controller axis. Going into the Raildriver Calibrate settings in TSW2 will allow you to check it. I have tested it with a PS4 controller mapped to Controller 2 for example to test it. The DLL will pickup only one controller that is not mapped to controller 1. Use anything other than Controller 1 as this controller is mapped to the usual Train Sim World 2 controller functions. I use x360ce to map my controls to an emulated Xbox 360 Controller. With this you can map your game controllers and use directly as TSW2 analog inputs. I learned all of this a couple of weeks ago while trying to use x360ce with Forza Motorsport 6 Apex.I have added a new version of the DLL that can now take a XInput game controller input. Furthermore, the Folder is encrypted with a public-private key encryption, and the private key is only available to the TrustedUser account, which means not even if you boot into Linux are you able to modify the files. However, those privileges are not transferable, nor can you log into windows with that account. The is a TrustedUser account on Windows 10 which is the only one who can launch or modify anything inside the WindowsApps folder. As it stands the security for that folder is rock solid. You can bypass that by taking Ownership of the folder, which will grant you viewing privileges, but you will not be able still to copy anything to the folder. This location can be changed through the settings app, but it doesn't change the fact that windows will not even let you see the contents of the folder. Windows Store Apps are all installed on C:/Program Files/WindowsApps. As of the time I'm writing this, there is no way to modify or copy files to the Windows Apps folder. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |