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
How Many WW2 Veterans Still Alive 2024?
by F4UDash4. 04/26/24 02:45 AM
Headphones
by RossUK. 04/24/24 03:48 PM
Skymaster down.
by Mr_Blastman. 04/24/24 03:28 PM
The Old Breed and the Costs of War
by wormfood. 04/24/24 01:39 PM
Actors portraying British Prime Ministers
by Tarnsman. 04/24/24 01:11 AM
Roy Cross is 100 Years Old
by F4UDash4. 04/23/24 11:22 AM
Actors portraying US Presidents
by PanzerMeyer. 04/19/24 12:19 PM
Dickey Betts was 80
by Rick_Rawlings. 04/19/24 01:11 AM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0