GIMX Team,
I am having a hard time getting my simple macro to work. I searched the forums and didn't find my answer. I tried mapping one key to multiple buttons, but I couldn't get it to work so I decided to try a macro. If this "auto-sprint" works without a macro, please let me know.
I want to press "e" on my keyboard and send two actions as a joystick (XInput Controller). First event is to walk forward (JAXIS lstick up) on the left stick and the second event is to push the a button to initiate sprint (JBUTTONDOWN 0).
MACRO KEYDOWN e
JAXIS lstick up
DELAY 10
JBUTTONDOWN 0
I would appreciate any ideas or suggestions.
Thank you.
Auto Sprint Macro
Re: Auto Sprint Macro
You can assign more the one key to one button and vice versa on Gimx-config.
Your macro seems to have syntax error
Your macro seems to have syntax error
Code: Select all
JAXIS <ID> <value>
<ID> as displayed in gimx-config
<value> is something between -32768 and 32767
-
- Posts: 3
- Joined: Thu Jul 30, 2020 12:10 pm
Re: Auto Sprint Macro
Cybereu, thank you for the feedback. My game won't sprint if you assign one key to two buttons.
If anyone is interested, the macro below works for me (I'm strafing with esdf instead of wasd and have RETURN mapped to joystick "A"). I may tweak it, but for now this is what I'm using.
MACRO KEYDOWN e
JAXIS lstick up
DELAY 5
KEYDOWN RETURN
DELAY 80
KEYUP RETURN
Hope this helps someone.
If anyone is interested, the macro below works for me (I'm strafing with esdf instead of wasd and have RETURN mapped to joystick "A"). I may tweak it, but for now this is what I'm using.
MACRO KEYDOWN e
JAXIS lstick up
DELAY 5
KEYDOWN RETURN
DELAY 80
KEYUP RETURN
Hope this helps someone.