Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
#3398698 - 09/27/11 05:01 PM How to put mouse on Warthog's Slew Control's /I (shifted) state?  
Joined: Jan 2001
Posts: 960
GregP Offline
Member
GregP  Offline
Member

Joined: Jan 2001
Posts: 960
Fairfax, VA
With Foxy on my Cougar I used to have the TDC Cursor mapped to the microstick's unshifted state and mouse control on its shifted state, but I can't find any analogous way to do this with the Warthog's Slew Control. From the TARGET Script Editor manual I figured out that I could use the following to do slew control:

Code:
KeyAxis(&Throttle, SCX, 'o', AXMAP2(3, HOTAS_slew_left, 0, HOTAS_slew_right));      
KeyAxis(&Throttle, SCY, 'o', AXMAP2(3, HOTAS_slew_up, 0, HOTAS_slew_down));  


But from what I understand, using 'KeyAxis' prevents me from using the 'MapAxis' command that would let me assign the shifted state to mouse control. Is there some 'mouse command' (but one that is not an axis like MOUSE_X_AXIS) that I could use in another KeyAxis statement?

Anybody have any ideas?

Last edited by GregP; 09/27/11 05:05 PM.

i7-9700K / MSI MPG Z390 Gaming PRO Carbon AC / 64GB DDR4 / RTX 3080 Ti / TrackIR5 / MFG Crosswind Rudder Pedals / VKB GF MkIII + MCG Pro
Inline advert (2nd and 3rd post)

#3398709 - 09/27/11 05:16 PM Re: How to put mouse on Warthog's Slew Control's /I (shifted) state? [Re: GregP]  
Joined: Sep 2010
Posts: 104
Dimebug Offline
Member
Dimebug  Offline
Member

Joined: Sep 2010
Posts: 104
France
give me few minute, why don't you control the TDC with analog axes ?


Guillaume "Dimebug" Leleve
#3398723 - 09/27/11 05:29 PM Re: How to put mouse on Warthog's Slew Control's /I (shifted) state? [Re: GregP]  
Joined: Sep 2010
Posts: 104
Dimebug Offline
Member
Dimebug  Offline
Member

Joined: Sep 2010
Posts: 104
France
this will achieve what you're looking for, the shift button is S4 (note that you can customize the mouse sensibility ands speed with the SetSCurve parameters)

first i define the keyboard axes mapping

then when i press S4 i force the axes to be turned into mouse

when i release S4, i force the keyboard axes mapping

KeyAxis(&Throttle, SCX, 'o', AXMAP2(3, 'l',0, 'r'));
KeyAxis(&Throttle, SCY, 'o', AXMAP2(3, 'u', 0, 'd'));


MapKey(&Joystick, S4, EXEC("MapAxis(&Throttle, SCX, MOUSE_X_AXIS, AXIS_NORMAL, MAP_RELATIVE);"
"SetSCurve(&Throttle, SCX, 0, 10, 0, 0, -5);"
"MapAxis(&Throttle, SCY, MOUSE_Y_AXIS, AXIS_NORMAL, MAP_RELATIVE);"
"SetSCurve(&Throttle, SCY, 0, 10, 0, 0, -5);"));

MapKeyR(&Joystick, S4, EXEC("KeyAxis(&Throttle, SCX, 'o', AXMAP2(3, 'l',0, 'r'));"
"KeyAxis(&Throttle, SCY, 'o', AXMAP2(3, 'u', 0, 'd'));"
"MapAxis(&Throttle, SCX, DX_XROT_AXIS);"
"MapAxis(&Throttle, SCY, DX_YROT_AXIS);"));


Guillaume "Dimebug" Leleve
#3398735 - 09/27/11 05:48 PM Re: How to put mouse on Warthog's Slew Control's /I (shifted) state? [Re: GregP]  
Joined: Jan 2001
Posts: 960
GregP Offline
Member
GregP  Offline
Member

Joined: Jan 2001
Posts: 960
Fairfax, VA
Fast response, thanks! Having just gotten my Warthog over the weekend, I hadn't had a chance to look into EXEC programming yet, and it seems that's the only way to combine a KeyAxis command with a MapAxis command. Thanks a lot! I'll give this a try tonight.


i7-9700K / MSI MPG Z390 Gaming PRO Carbon AC / 64GB DDR4 / RTX 3080 Ti / TrackIR5 / MFG Crosswind Rudder Pedals / VKB GF MkIII + MCG Pro

Moderated by  RacerGT 

Quick Search
Recent Articles
Support SimHQ

If you shop on Amazon use this Amazon link to support SimHQ
.
Social


Recent Topics
Exodus
by RedOneAlpha. 04/18/24 05:46 PM
Grumman Wildcat unique landing gear
by Coot. 04/17/24 03:54 PM
Peter Higgs was 94
by Rick_Rawlings. 04/17/24 12:28 AM
Whitey Herzog was 92
by F4UDash4. 04/16/24 04:41 PM
Anyone can tell me what this is?
by NoFlyBoy. 04/16/24 04:10 PM
10 Years ago MV Sewol
by wormfood. 04/15/24 08:25 PM
Pride Of Jenni race win
by NoFlyBoy. 04/15/24 12:22 AM
It's Friday: grown up humor for the weekend.
by NoFlyBoy. 04/12/24 01:41 PM
OJ Simpson Dead at 76
by bones. 04/11/24 03:02 PM
They wokefied tomb raider !!
by Blade_RJ. 04/10/24 03:09 PM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0