Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
#3894319 - 01/13/14 08:16 AM Microstick or hat as axis  
Joined: Sep 2013
Posts: 4
tutbr969 Offline
Junior Member
tutbr969  Offline
Junior Member

Joined: Sep 2013
Posts: 4
Hi, I'm trying to map a smooth zoom in il-2. This is possible using an axis, but I don't have a spare one. Can I map the microstick or a hat to emulate this?

Ideally, the microstick would control the axis with speed of axis movement controlled by the amount of microstick travel, ie. move the microstick a little = slow speed, move the microstick all the way = fast axis sliding.

I'm brand new at Target and have a Cougar.

Cheers

Last edited by tutbr969; 01/13/14 09:17 AM.
Inline advert (2nd and 3rd post)

#3912425 - 02/15/14 08:03 PM Re: Microstick or hat as axis [Re: tutbr969]  
Joined: Jan 2001
Posts: 2,477
HomeFries Offline
Air Dominance Project
HomeFries  Offline
Air Dominance Project
Member

Joined: Jan 2001
Posts: 2,477
Just map the microstick axis as a relative axis instead of absolute to prevent your view from being recentered every time you released the microstick.

This code is for the Cougar, but you can easily translate it to the Hog if that's what you are using.
Code:
MapAxis(&HCougar, RDR_Y, DX_YROT_AXIS, AXIS_NORMAL, MAP_RELATIVE);


-Home Fries

"Pacifism is a shifty doctrine under which a man accepts the benefits of the social group without being willing to pay - and claims a halo for his dishonesty."
- Robert A. Heinlein

The average naval aviator, despite the sometimes swaggering exterior, is very much capable of such feelings as love, affection, intimacy, and caring. These feelings just don't involve anyone else.


Moderated by  RacerGT 

Quick Search
Recent Articles
Support SimHQ

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


Recent Topics
Carnival Cruise Ship Fire....... Again
by F4UDash4. 03/26/24 05:58 PM
Baltimore Bridge Collapse
by F4UDash4. 03/26/24 05:51 PM
The Oldest WWII Veterans
by F4UDash4. 03/24/24 09:21 PM
They got fired after this.
by Wigean. 03/20/24 08:19 PM
Grown ups joke time
by NoFlyBoy. 03/18/24 10:34 PM
Anyone Heard from Nimits?
by F4UDash4. 03/18/24 10:01 PM
RIP Gemini/Apollo astronaut Tom Stafford
by semmern. 03/18/24 02:14 PM
10 years after 3/8/2014
by NoFlyBoy. 03/17/24 10:25 AM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0