Simple axis inversion code needed

Official forum for open source FreePIE discussion and development.
Post Reply
Bluedeath
One Eyed Hopeful
Posts: 49
Joined: Mon Feb 10, 2014 4:48 am

Simple axis inversion code needed

Post by Bluedeath »

Hi guys I am new to this forum. i need to use Freepie to invert a single joystick axe (to invert the throttle in a flight simulator thet does not have throttle inversion) i figured out how to create te virtual joystij with ppjoy and redirect the outpit to it but i have no clue how to script the axis inversion (i need 0% read as 100% and viceversa) can somenoe help me?
Thanks in advance.
CyberVillain
Petrif-Eyed
Posts: 2166
Joined: Mon Jun 22, 2009 8:36 am
Location: Stockholm, Sweden

Re: Simple axis inversion code needed

Post by CyberVillain »

You can use filters.mapRange

Code: Select all

filters.mapRange(x, 0, 100, 100, 0)
Bluedeath
One Eyed Hopeful
Posts: 49
Joined: Mon Feb 10, 2014 4:48 am

Re: Simple axis inversion code needed

Post by Bluedeath »

Sorry for the late response thanks
Post Reply

Return to “FreePIE”