Forums » Technology » Flight Sim Controllers » T.A.R.G.E.T. (Thrustmaster) » How to put mouse on Warthog's Slew Control's /I (shifted) state? Active Topics You are not logged in. [Log In] [Register User]
Topic Options
Rate This Topic
Hop to:
#3398698 - 09/27/11 01:01 PM How to put mouse on Warthog's Slew Control's /I (shifted) state?
GregP Offline
Member

Registered: 01/15/01
Posts: 916
Loc: Washington, D.C.
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?


Edited by GregP (09/27/11 01:05 PM)
_________________________
i5-2500K @ 4.8 GHz / Asus P8P67 Pro / 8GB DDR3-1600 / 2x7970 3GB / Audigy X-Fi / Windows 7 Pro 64-bit / TrackIR5 / Saitek Pro Flight Combat Rudder Pedals / Thrustmaster HOTAS Warthog / CH Products Throttle Quadrant / Eyefinity 27" LCDs + 27" touchscreen


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

Registered: 09/18/10
Posts: 103
Loc: France
give me few minute, why don't you control the TDC with analog axes ?
_________________________
Guillaume "Dimebug" Leleve

Top

#3398723 - 09/27/11 01:29 PM Re: How to put mouse on Warthog's Slew Control's /I (shifted) state? [Re: GregP]
Dimebug Offline
Member

Registered: 09/18/10
Posts: 103
Loc: 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

Top
#3398735 - 09/27/11 01:48 PM Re: How to put mouse on Warthog's Slew Control's /I (shifted) state? [Re: GregP]
GregP Offline
Member

Registered: 01/15/01
Posts: 916
Loc: Washington, D.C.
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.
_________________________
i5-2500K @ 4.8 GHz / Asus P8P67 Pro / 8GB DDR3-1600 / 2x7970 3GB / Audigy X-Fi / Windows 7 Pro 64-bit / TrackIR5 / Saitek Pro Flight Combat Rudder Pedals / Thrustmaster HOTAS Warthog / CH Products Throttle Quadrant / Eyefinity 27" LCDs + 27" touchscreen

Top
Topic Options
Rate This Topic
Hop to:

Moderator:  531 Ghost, RacerGT 
 

Forum Use Agreement | Privacy Statement
Copyright 1997-2013, SimHQ Inc. All Rights Reserved.