Stepping 1+ value when Translation Z is positive (Sensitivit

Post questions, comments and feedback to our 3Dconnexion Windows Development Team.

Moderator: Moderators

Post Reply
alexus
Posts: 39
Joined: Sat Apr 19, 2008 9:42 am
Location: New York, NY
Contact:

Stepping 1+ value when Translation Z is positive (Sensitivit

Post by alexus »

Hi,
I want to use Translation Z axis to control menu selection. To make it simpler lets say I have value 0 then is i push controller I want to increment valoue to 1 then with new detected push OR prolangated hold increment values to 2...3...4...5
Can some one help me out?

Im working in VB

Thanks a lot!
alexus
Posts: 39
Joined: Sat Apr 19, 2008 9:42 am
Location: New York, NY
Contact:

Post by alexus »

Ok Ive dun this in this way... oh I also took in account the acceleration, but we can disable it...

So if you push the stic 100% you will get values like 80 units, if you slightly push it you will get 20-25units, if you pull it you will get - (negative) values.

So

Code: Select all

if(Value <= 20){
   count++;
}elseif(Value<=20 AND Value <60>=60){
   count = count + 3
}
Well that is not 100% VB but you should get the idea, and if you dont want the acceleration just use one single if.
Post Reply