SCToolsfactory / SCJMapper-V2

SC Joystick Mapper (.Net 4; using sharpDX wrapper)
Other
137 stars 30 forks source link

Modifiers #70

Open anxelbao opened 6 years ago

anxelbao commented 6 years ago

Greetings and thanks for the work.

I'm trying to combine several buttons with my Hotas X and I can not find a way to do it. If my memory does not fail me, this used to work and now not anymore. It's possible? With the large number of keys necessary for this game, it is essential not to be able to make combinations with the joinstick

(I do not mean combinations with the keyboard / joinstick, I already know that it can be done, I mean to combine several buttons of the joinstick so that you do not have to demote the keyboard)

Thanks in advance.

bm98 commented 6 years ago

As far as I know there is nothing like js2_button1+button2 possible. There are modifiers but I don't know if it is possible to define a joystick button as modifier (technically yes but I don't know if it is recognised in the game...)

d2bishop commented 6 years ago

The only way I can see this getting done would be to use software to assign a keyboard press to a joystick button.

It would be nice if SCJMapper could assign a keyboard press to a joystick button press, but the following might be a work around.

Use 3rd party software to assign a keyboard press to a joystick button.

I have CH Products Pro Throttle and FighterStick USB, each with 3-axis, 1-8way hat, and 16-buttons.

If 3rd party software is used to reprogram buttons 16 on both the Joystick and HOTAS to say 'right CTRL'. Now when button16 is pressed on the HOTAS the joystick (axis, hat buttons1-15) could have different functions, and vice versa.

In SCJMapper if you press a joystick button for instance js1_button7, and then move your pointer over the Assign radial / press right CTRL on your keyboard / and before the new command (js1_rctrl_button7) fades away press the Assign radial.

After an in game ~+"pp_rebindkeys layout_my_whatever" go into game options and check if the command sequence is there, as to working properly I do not know. Probably needs to be tested before using in game.

Just my 2cents

Good Luck

d2bishop commented 6 years ago

Just a little follow up, I did as above with my setup, and pressing CTRL on keyboard and a joystick button, it worked like a champ. I do not have any 3rd party software installed at the moment, looking at https://joytokey.net/en/ but will check out https://sourceforge.net/ also.

bm98 commented 6 years ago

The program may not change what the joystick does - however there is e.g. Joystick Gremlin https://whitemagic.github.io/JoystickGremlin/ which does help in doing so for the ones that have no native software (e.g. Saitek has, CH-Prod I don't know) With this you can do almost everything from remapping to pull multiple devices into one virtual joystick and creating Key Codes with a Joystick or even macros...

For simple modifiers such as Shift, Ctrl and Alt - yes SCJM does support those as you mentioned - but you cannot create a new Modifier for using e.g. button 19 as modifier or the like. There I don't know if the game would recognise this from the XML file.