macros with joystick don't work

Need help? Ask here and someone will help
Post Reply
attackroot
Posts: 29
Joined: Sat Jun 30, 2012 1:49 pm

macros with joystick don't work

Post 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?
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: macros with joystick don't work

Post by Matlo »

http://gimx.fr/wiki/index.php?title=Macros#Commands

KEYDOWN --> JBUTTONDOWN
KEYUP --> JBUTTONUP
GIMX creator
attackroot
Posts: 29
Joined: Sat Jun 30, 2012 1:49 pm

Re: macros with joystick don't work

Post by attackroot »

Cool I will report this afternoon how it went thanks again
attackroot
Posts: 29
Joined: Sat Jun 30, 2012 1:49 pm

Re: macros with joystick don't work

Post 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
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: macros with joystick don't work

Post by Matlo »

Code: Select all

MACRO JBUTTONDOWN 7
GIMX creator
attackroot
Posts: 29
Joined: Sat Jun 30, 2012 1:49 pm

Re: macros with joystick don't work

Post 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?
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: macros with joystick don't work

Post by Matlo »

You have to use another button.
GIMX creator
attackroot
Posts: 29
Joined: Sat Jun 30, 2012 1:49 pm

Re: macros with joystick don't work

Post 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
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: macros with joystick don't work

Post 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.
GIMX creator
attackroot
Posts: 29
Joined: Sat Jun 30, 2012 1:49 pm

Re: macros with joystick don't work

Post 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.
Post Reply