Page 1 of 1

macros with joystick don't work

Posted: Tue Jul 17, 2012 11:30 am
by attackroot
I've just put the code I am using with a macro with Madcatz FightStick

Here is my code:
http://pastebin.com/pLtHmShM

If I am using a config with mouse and keyboard and every control changed to keyboard controls assigned of that config it will work flawslessly but how can you call a button of the fightstick?

I wish I knew! Can this work or only the macros can be assigned to the keyboard?

Re: macros with joystick don't work

Posted: Tue Jul 17, 2012 11:48 am
by Matlo
http://gimx.fr/wiki/index.php?title=Macros#Commands

KEYDOWN --> JBUTTONDOWN
KEYUP --> JBUTTONUP

Re: macros with joystick don't work

Posted: Tue Jul 17, 2012 12:17 pm
by attackroot
Cool I will report this afternoon how it went thanks again

Re: macros with joystick don't work

Posted: Tue Jul 17, 2012 11:46 pm
by attackroot
Ok well everything has been changed but it still isn't working but it«s because I can't figure out how to put the button at the beginning of the macro

MACRO DELETE

will stand for the key DELETE for the keyboard but no keyboards are being used I tried:

MACRO 7
MACRO JBUTTON 7
MACRO BUTTON 7
MACRO JBUTTON7
MACRO BUTTON7

How can I define macro to buttons of the joystick?

Thanks

Re: macros with joystick don't work

Posted: Wed Jul 18, 2012 6:40 am
by Matlo

Code: Select all

MACRO JBUTTONDOWN 7

Re: macros with joystick don't work

Posted: Wed Jul 18, 2012 7:00 am
by attackroot
Matlo wrote:

Code: Select all

MACRO JBUTTONDOWN 7
Thank you for helping out but still a problem will appear after this for example the first part:

Code: Select all

MACRO JBUTTONDOWN 7

JBUTTONDOWN 13
JBUTTONDOWN 14
DELAY 25

JBUTTONUP 13
JBUTTONUP 14
DELAY 400

JBUTTONDOWN 7
DELAY 25

JBUTTONUP 7
DELAY 400

#JDUCK

JBUTTONDOWN 15
JBUTTONDOWN 0
DELAY 20

JBUTTONUP 0
DELAY 290

#LOOK UP
After the #DUCK part it won't do anything else because it is using the same button which is released JBUTTONUP 7 is there a way that this can be fixed or do I need to assign it to button that aren't being used?

Re: macros with joystick don't work

Posted: Wed Jul 18, 2012 7:03 am
by Matlo
You have to use another button.

Re: macros with joystick don't work

Posted: Wed Jul 18, 2012 7:09 am
by attackroot
Matlo wrote:You have to use another button.
Thanks for the quick reply, regarding axis up how can I use them is it the same JBUTTONDOWN and JBUTTONUP ?

basically what I wanted to try now is putting my madcatz fightstick into DP mode then switching to LS or RS (LEFT STICK or RIGHT STICK) and then seeing if it acknowledges those buttons in there from the LS or RS and uses the buttons from DP.

I don't think it will work but we never know until we try, and also because that information of the axis up and axis down on the madcatz fightstick can be important later on

Re: macros with joystick don't work

Posted: Wed Jul 18, 2012 7:23 am
by Matlo
Everything is explained on the wiki page: http://gimx.fr/wiki/index.php?title=Macros.

Anything not mentioned there, such as axis events, is not supported.

But you still can bind keyboard/mouse/joystick buttons to axes directions (lstick/rstick up/down/right/left), and use these buttons in your macros.

Re: macros with joystick don't work

Posted: Wed Jul 18, 2012 7:34 am
by attackroot
Matlo wrote:Everything is explained on the wiki page: http://gimx.fr/wiki/index.php?title=Macros.

Anything not mentioned there, such as axis events, is not supported.

But you still can bind keyboard/mouse/joystick buttons to axes directions (lstick/rstick up/down/right/left), and use these buttons in your macros.
Yes but I wanted to use everything only by using the joystick in this case I will have to disable some buttons and enable others thanks for the info.

Any other doubts or problems that arise I will ask but as of now the new build is working without problems because as I said before the d-pad won't allow left right or down only up.