axis as a button?

More
21 years 8 months ago #17490 by bob cobb
axis as a button? was created by bob cobb
i play the game with a sidewinder gamepad.

what i want to do is when i press the shift button (button 10 on the gamepad) i want to be able to control the menu that is normally done with the hatswitch.

but the d-pad has axes instead of buttons

here is what i got so far...

[Shift1]
Joystick1, JoyButton10

[HUD.MenuLeft]
Keyboard, Left
Joystick1, JoyXAxis, Shift1

[HUD.MenuRight]
Keyboard, Right
Joystick1, JoyXAxis, Shift1

[HUD.MenuUp]
Keyboard, Up
Joystick1, JoyYAxis, Shift1

[HUD.MenuDown]
Keyboard, Down
Joystick1, JoyYAxis, Shift1

but with this it always goes left no matter if i press left or right, same thing with up and down

does anyone even understand what i'm talking about?
can anyone help out?

Please Log in or Create an account to join the conversation.

More
21 years 8 months ago #2456 by MajorTom
Replied by MajorTom on topic axis as a button?
I think I understand what you want but

you have the same axis (Joystick1, JoyXAxis, Shift1) mapped to both left and right as well as up and down (Joystick1, JoyYAxis, Shift1)

you could perhaps get away with:

[HUD.MenuLeft]
Keyboard, Left
Joystick1, JoyXAxis, Shift1
Joystick1, JoyXAxis, ALT, inverse

(asuming you have a button, that you could program as "ALT" on your gamepad.

then your other side would just look like this.

[HUD.MenuRight]
Keyboard, Right


Sorry but thats only theory and not tested because I don't have a gamepad

Or maybe you could still treat your d-pad as a pov and use:

[HUD.MenuLeft]
Keyboard, Left
Joystick1, JoyPov1Left

And a last ditch attempt could be:

[HUD.MenuRight]
Keyboard, Right
Joystick1, JoyXAxisRight, Shift1

[HUD.MenuLeft]
Keyboard, Left
Joystick1, JoyXAxisLeft, Shift1


EOC/IWar2 Multiplayer Fansite

Please Log in or Create an account to join the conversation.

More
21 years 8 months ago #2475 by bob cobb
Replied by bob cobb on topic axis as a button?
thanks for the reply, i tried them but none of those methods work.

its not really that important to have the d pad as the menu thing.

the reason i wanted to do that is because some of my buttons just dont work with shift1 no matter what

example:

[Shift1]
Joystick1, JoyButton10

[icPlayerPilot.CycleEnemy]
Keyboard, E
Joystick1, JoyButton2, Shift1

this just doesnt work for some reason....
i cant understand why

Please Log in or Create an account to join the conversation.

More
21 years 7 months ago #2545 by Lurch
Replied by Lurch on topic axis as a button?
there are some excellent file for the logitech and others. I have a logitech wingman wirerless rumble pad, and the file there works well. I now have my thrusters on my right joystick which helps to dodge missiles. Hope it helps.

Please Log in or Create an account to join the conversation.