Hi all,
I have been searching for a way to accomplish the following, and it would be great if someone could give me some advice or let me know if it is impossible.
Basically, my favourite control method with a joystick is to have the normal axis setup as is default with vegastrike, but to have it so that when a joystick button is held down (usually the top one) you can roll by moving left and right - then when the button is released it goes back to the default axis. When a game has this method I love it.
Is there a way to edit the sdl joystick config to permit this? Or some other way.
I don't have a very configurable joystick - just a basic 2 axis 1 throttle and a few buttons...
Any help appreciated - I will keep searching for a way and if I find it I will post it.
Thanks
D_
Joystick Button Roll Question
-
- The Shepherd
- Posts: 5841
- Joined: Fri May 13, 2005 8:37 pm
- Location: Ottawa
- Contact:
Re: Joystick Button Roll Question
Welcome de4dly all the bindings keyboard and joystick are in the bindings section of vegastrike.config you could map the keyboard roll cmds to joystick buttons or use one as a modifier(shift/ctr/alt) that changes the x-axis to the z-axis but since i have never done it i don't know if it will work the config file is XML so make those edits with an editor that does syntax highlighting just about any under Linux or Notepad++ under windows.Good luck.
Enjoy the Choice
Enjoy the Choice
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
-
- Star Pilot
- Posts: 4
- Joined: Fri Apr 17, 2009 8:14 pm
Re: Joystick Button Roll Question
Thanks,
I have tried a few things,
assigning the command Joystick::Mode::RollToggle in vegastrike.config willl cause the button to togggle the axis but as for a way for it to be modified while the button is held down and then to revert when the button is released I do not know.
Thanks for the quick reply!
I will keep working on it.
D_
I have tried a few things,
assigning the command Joystick::Mode::RollToggle in vegastrike.config willl cause the button to togggle the axis but as for a way for it to be modified while the button is held down and then to revert when the button is released I do not know.
Thanks for the quick reply!
I will keep working on it.
D_
-
- Star Pilot
- Posts: 4
- Joined: Fri Apr 17, 2009 8:14 pm
Re: Joystick Button Roll Question
Ok, figured it!!!
The command is Joystick::Mode:Roll, which calls FlyByKeyboard::JoyRollPulsorKey in flykeyboard.cpp, which has case UP and case DOWN events.
so:
<bind joystick="0" button="1" modifier="none" command="Joystick::Mode::Roll" />
Cool. Just what I wanted. It would be good if there was a commented example of this in vegastrike.config to save other people going through the source... Or unless I missed something simple.
Anyway. Yeehaaa!
The command is Joystick::Mode:Roll, which calls FlyByKeyboard::JoyRollPulsorKey in flykeyboard.cpp, which has case UP and case DOWN events.
so:
<bind joystick="0" button="1" modifier="none" command="Joystick::Mode::Roll" />
Cool. Just what I wanted. It would be good if there was a commented example of this in vegastrike.config to save other people going through the source... Or unless I missed something simple.
Anyway. Yeehaaa!
-
- The Shepherd
- Posts: 5841
- Joined: Fri May 13, 2005 8:37 pm
- Location: Ottawa
- Contact:
Re: Joystick Button Roll Question
Glad you got it the way you wanted
Enjoy the Choice
Enjoy the Choice
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
-
- Star Pilot
- Posts: 4
- Joined: Fri Apr 17, 2009 8:14 pm
Re: Joystick Button Roll Question
Thanks for pointing me in the right direction.
Also thanks to everyone working on the game. Great stuff!
D4_
Also thanks to everyone working on the game. Great stuff!
D4_