question

Osman Eralp avatar image
1 Like"
Osman Eralp asked Phil BoBo commented

How do I reverse axis on 3dconnexion 3d mouse?

I am using a SpacePilot 3D mouse from 3dconnexion. FlexSim sees the mouse even without the 3dconnexion drivers running. The problem is that all of the axis are reversed. Since there is no 3dconnection driver running, I can't edit the 3dconnexion config file. It looks like FlexSim is reading the mouse natively. Is there a way to tell FlexSim to reverse the direction of the axis?

FlexSim 16.1.2
3dconnexion3d mousespace pilot pro
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Logan Gold avatar image
6 Likes"
Logan Gold answered Phil BoBo commented

You are correct. FlexSim reads the raw input values of the 3D mouse directly and bypasses any settings that may be set in a driver or other program. Since the code that interprets the input for a 3D mouse is hardcoded, the easiest way to flip both axes is with a module. I created this small module awhile ago that should do that:

mouseinvert.zip

All you need to do is unzip the folder and place it in the modules folder for FlexSim. The modules folder can be found in the installation directory for FlexSim. So for the 64-bit version of FlexSim 2016 Update 1, the default location for the modules folder can be found at:

C:\Program Files\FlexSim 2016 Update 1\modules

Just be sure that the structure of the modules folder looks like this after unzipping the file:

C:\Program Files\FlexSim 2016 Update 1\modules\mouseinvert

Where mouseinvert contains 2 files: mouseinvert.fsx and mouseinvert.t.

After unzipping the folder and placing the mouseinvert folder in the modules folder, you should be able to open FlexSim (or close and reopen if it is already opened) to find the 3D mouse is inverted.


mouseinvert.zip (2.3 KiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Osman Eralp avatar image Osman Eralp commented ·

@Logan Gold

Brilliant! The scripts works perfectly! I have one more question. If I tilt the 3d mouse left-right, there is no effect in FlexSim. All other axis work. Is there a way to get the left-right tilt working?

1 Like 1 ·
Arun Kr avatar image Arun Kr commented ·

Dear Osman,

The link below will be helpful for you.

https://www.flexsim.com/community/forum/showthread.php?t=3360&highlight=mouse+control

Regards,

Arun KR

0 Likes 0 ·