Forums » Technology » Flight Sim Controllers » T.A.R.G.E.T. (Thrustmaster) » Centering a relative mapped Axis Active Topics You are not logged in. [Log In] [Register User]
Topic Options
Rate This Topic
Hop to:
#3398107 - 09/26/11 05:16 PM Centering a relative mapped Axis
Madog Offline
Junior Member

Registered: 06/04/08
Posts: 7
Hey, i'm using
MapKey(&Joystick, S4, EXEC("MapAxis(&Throttle, SCX, DX_SLIDER_AXIS, AXIS_NORMAL, MAP_RELATIVE);
SetSCurve(&Throttle, SCX, 0, 10, 0, 4, -10);
SetSCurve(&Throttle, SCY, 0, 10, 0, 4, -10);")
MapKeyR(&Joystick, S4, EXEC("MapAxis(&Throttle, SCX, DX_XROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
SetSCurve(&Throttle, SCX, 0, 0, 0, 0, 0);
SetSCurve(&Throttle, SCY, 0, 0, 0, 0, 0);")
to toggle between ABSOLUTE mapped axis for the cursors, etc. and RELATIVE mapped axis for view control. My problem is this: i am not able to force the RELATIVE mapped axis to center, effectively centering the view.

Does someone know how center an relative mapped axis?

Thanks in advance,


#3398122 - 09/26/11 05:29 PM Re: Centering a relative mapped Axis [Re: Madog]
Madog Offline
Junior Member

Registered: 06/04/08
Posts: 7
Nevermind, wrote my own centering function, works like a charm:

int CenterAxis(alias o, int x, int index)
if(!GetAxisData(&o, x)) return 0;
DXSetAxis(index, 0);
axdata.relpos = 0;
MapKey(&Throttle, SC, CHAIN(EXEC("CenterAxis(&Throttle, SCX, DX_SLIDER_AXIS);"), EXEC("CenterAxis(&Throttle, SCY, DX_THROTTLE_AXIS);")));

Edited by Madog (09/27/11 09:17 AM)

Topic Options
Rate This Topic
Hop to:

Moderator:  RacerGT 
Quick Search
Recent Articles
Support SimHQ

Recent Topics
Some of us are given good names...
by Mr_Blastman
56 minutes 34 seconds ago
Kraftwerk offspring : Robots 2015
by Rends
Today at 02:38 PM
Steam Autumn Sale
by Bib4Tuna
Today at 01:42 PM
It's a cold winter morning...
by Desert Eagle
Today at 12:43 PM
A sound you don't want to hear
by KRT_Bong
Today at 11:26 AM
Is this really how British people are?
by Li'lJugs
Today at 03:42 AM
Airport Procedure question.
by CG2015
Yesterday at 04:20 PM
So....My Youngest Ratted Me Out On Camera
by Airdrop01
Yesterday at 01:16 PM
Guys, you've GOT to see this
by komemiute
Yesterday at 01:02 PM
I can't believe this is even a dilemma...
by HeinKill
Yesterday at 11:21 AM

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