Universal Control Remapper (UCR) - v0.1.20 7th Sep 2018

Post gaming related scripts
Guest555

Re: Universal Control Remapper (UCR) - v0.1.19 26th Dec 2017

02 Sep 2018, 04:38

Hello evilC:

I notice you have done incredible work with both UCR and AHI - and a combination of the two would be perfect for what I am trying to achieve with my simpit - and so I was wondering is that possible?

Specifically, I have multiple USB numpads and want them each to be recognised as unique inputs for the purposes of triggering a vJoy button. An example to illustrate: if I press the '+' key on numpad 1, I'd like that to send vJoy device 1 button 4 to my game (DCS Hornet), but then if I press the '+' key on numpad 2, I'd like that to send vJoy device 1 button 5, for example. From the experimenting I've done with UCR, it seems like pressing the '+' key on EITHER numpad 1 or 2 will simply cause vJoy device 1 button 4 to the game - which, in practice, would mean I have a bunch of useless numpads! I had used HIDMacros (now LUAMacros) to achieve this in the past, alas it doesn't work in DCS!

So, noting that AHI is able to distinguish between multiple keyboards and make each of them send 'unique' commands, I was wondering if there was someway that AHI functionality could be fused with UCR to make a utility that could take a bunch of otherwise identical USB keyboards/numpads and allow them to send a bunch of unique commands to vJoy...

I am not software savvy - so I have probably asked you the equivalent of 'could make an aeroplane that runs on hamburgers?'. If that is the case, let me know! Otherwise, if there is some way to achieve this result, then I am all ears! I am happy to muck about and experiment if you can point me in the right direction, as I have figured out FSUIPC, HIDMacros and similar things over the past few years in that way...
User avatar
evilC
Posts: 4336
Joined: 27 Feb 2014, 12:30

Re: Universal Control Remapper (UCR) - v0.1.19 26th Dec 2017

02 Sep 2018, 14:03

You have two options:
1) Code yourself
Use AHI to read independently from each pad and send the output to vJoy using CvJoyInterface

2) Gui App
You need the new UCR-C#, not this version of UCR
UCR-C# uses Interception for keyboard / mouse input, so you can have bindings to each numpad individually.
If the numpads are identical (ie same make and model), then things get a little more complicated ensuring that the first numpad is always the first numpad on every launch, but if this part does not work well, I would be willing to try and work with you to fix it.
Guest555

Re: Universal Control Remapper (UCR) - v0.1.19 26th Dec 2017

03 Sep 2018, 03:09

Thanks for the quick reply evilC - I think I'll definitely go with Option 2. I can muck about with config files and have made some very basic AHK scripts for myself (after much difficulty) but that's about as much 'coding' as I've ever done! GUI is always welcome for a simpleton like me!

I've downloaded the new UCR 0.3.1 alpha to test it out, but I am having issues getting it running. However, I've posted on the HID Wizards discord channel as per your documentation, so I'll bow out of this forum now...
User avatar
evilC
Posts: 4336
Joined: 27 Feb 2014, 12:30

Re: Universal Control Remapper (UCR) - v0.1.20 7th Sep 2018

07 Sep 2018, 11:59

I was not intending to do any major changes to this version of UCR, however it seems that a recent Win10 update broke non-Xbox360 controllers (One, Elite, Accessibility) while the UCR window was not active.
For most people, UCR-C# should be fine, but primarily for OneSwitch and the accessible gaming crowd who still rely on UCR-AHK functionality, this was a problem.
So I decided to make an exception in this case, and have added XInput support to UCR-AHK.
There is no Bind Mode for XInput, I added menu options to the inputs, select buttons or axes from there.

Full changelog:

Code: [Select all] [Download] GeSHi © Codebox Plus

0.1.20 7th Sep 2018
+ Added XInput support
Does not have Bind Mode, as normal AHK hotkeys would see the input too
+ Added Support for Nintendo Switch to Titan
+ Performance increases for Mouse Delta input:
Cache state of Invert checkboxes in MouseToJoy plugin
Disable pseudo-thread callback for mouse delta
+ Replaced CreateGUID with Lexikos' ANSI compatible version
Anonymus91
Posts: 3
Joined: 14 Sep 2018, 06:41

Re: Universal Control Remapper (UCR) - v0.1.20 7th Sep 2018

14 Sep 2018, 06:50

Hey. I'm new to using this program.
Is there any way I can map a certain position of a joystick to buttons? I'm interested in turning one of my gamepads joysticks into a H-Shifter. Like using two axis ranges to map a button. (X-Y axes)
Thanks!
Anonymus91
Posts: 3
Joined: 14 Sep 2018, 06:41

Re: Universal Control Remapper (UCR) - v0.1.20 7th Sep 2018

14 Sep 2018, 06:51

Hey. I'm new to using this program.
Is there any way I can map a certain position of a joystick to buttons? I'm interested in turning one of my gamepads joysticks into a H-Shifter. Like using two axis ranges to map a button. (X-Y axes)
Thanks!
User avatar
evilC
Posts: 4336
Joined: 27 Feb 2014, 12:30

Re: Universal Control Remapper (UCR) - v0.1.20 7th Sep 2018

14 Sep 2018, 09:29

I think someone wrote something vaguely similar for single-axis use (eg mapping a throttle to 10%, 20% etc) but not an H-shifter.
It's definitely possible though, but you would need to consider both axes.
Having seen that Iris Dynamics dynamic FFB H-Shifter video, would love to be able to do something like that :)
I even bought an old FFB stick to tinker with for that purpose, but not gad a chance to look into it yet.
I try not to add new stuff to this version of UCR where possible, but could probably rig you up a simple POC in the new UCR-C# without too much problem.
Anonymus91
Posts: 3
Joined: 14 Sep 2018, 06:41

Re: Universal Control Remapper (UCR) - v0.1.20 7th Sep 2018

14 Sep 2018, 12:00

evilC wrote:I think someone wrote something vaguely similar for single-axis use (eg mapping a throttle to 10%, 20% etc) but not an H-shifter.
It's definitely possible though, but you would need to consider both axes.
Having seen that Iris Dynamics dynamic FFB H-Shifter video, would love to be able to do something like that :)
I even bought an old FFB stick to tinker with for that purpose, but not gad a chance to look into it yet.
I try not to add new stuff to this version of UCR where possible, but could probably rig you up a simple POC in the new UCR-C# without too much problem.


That would be really nice, really looking forward to it :D Can't wait to test it :)
henrikmink

Re: Universal Control Remapper (UCR) - v0.1.20 7th Sep 2018

14 Sep 2018, 15:18

I've just installed Forza Horizon 4. I use buttontobutten for accelerate and brake when i press left/right mouse button, and it works just fine! (it's set as vbox). But when i try to use mousetojoy i can't get the car to turn, i tried vbox and vjoy for x axis, and i just can't figure it out. But it works on forza 7. My windows sees the controller as a Xbox 360 controller, can i change that to a Xbox one controller? and would it work? I'm disabled and can only use my mouse. Please help!
Btw great job!

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 0 guests