Spacemouse wireless as a normal mouse

Questions and answers about 3Dconnexion devices on Windows.

Moderator: Moderators

Post Reply
ghostek2010
Posts: 2
Joined: Fri Jul 05, 2019 12:41 pm

Spacemouse wireless as a normal mouse

Post by ghostek2010 » Sat Jul 06, 2019 1:07 am

HI
Is it possible to use Spacemouse wireless with newest drivers (10.6) as a normal mouse (so that it controls the coursor) in certain applications, such as Chrome for example?
Any help would be apprieciated :)

jwick
Moderator
Moderator
Posts: 2563
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: Spacemouse wireless as a normal mouse

Post by jwick » Mon Jul 08, 2019 4:29 am

Yes, there is some capability to control act like a 2D mouse.

It isn't a great 2D mouse. It's basically a joystick with all the limitations of a joystick. You are driving the cursor by velocity not displacement. It's difficult to stop on a dime. There's a reason we all use traditional 2D mice. We even make them.

Unfortunately the GUI can not help you set it up. You have to edit XML files. I can help you with that if you want to go down that road.

Some more info on the scenario would help.
Do you want to use this as your normal mouse? Do you also have a 2D mouse attached? Which apps do you want to use this with, and why?

The problem becomes how to you tell the driver which mode you want:
1) You can tell the driver to only send 2D mouse events all the time. You can then roam all around the desktop.
2) You could press a button on the device to tell it to toggle between 2D and 3D modes. But your SMW only has two. That's pretty limited.
3) You can define a cfg that tells the driver to send 2D mouse events when a specific app is in focus. The question is how do you get in and out of the apps.
4) You can dedicate one device as a 2D device and another as a 3D mouse.
5) You can use a CadMouse menu to switch the 3D mouse.

The driver has a lot of capabilities (everything I could think of at the time). Building a GUI that lets you understand how to control it has always been the challenge.

banguin2
Posts: 2
Joined: Mon Jul 29, 2019 11:50 am

Re: Spacemouse wireless as a normal mouse

Post by banguin2 » Mon Jul 29, 2019 12:00 pm

@jwick I would like to have this capability as well as I find the form factor to be very ergonomic. I put the XML file you posted in a different thread in the folder and it is working, however I need a way to efficiently switch between 2d and 3d. Of the options presented, my first choice would be 3) and my second choice would be 5)

jwick
Moderator
Moderator
Posts: 2563
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: Spacemouse wireless as a normal mouse

Post by jwick » Tue Jul 30, 2019 4:44 am

To send 2D mouse events, you need to tell the driver to send HIDMouse_X/Y Output Actions for the 3D Input Axes, as such

Code: Select all

      <AxisBank Default="true">
        <Name>STR_DEFAULT_BANK</Name>
        <ID>Default</ID>
        <Axis>
          <Enabled>true</Enabled>
          <Input>
            <ActionID>HIDMultiAxis_Rx</ActionID>
            <Min>-512</Min>
            <Max>511</Max>
          </Input>
          <Output>
            <ActionID>HIDMouse_Y</ActionID>
          </Output>
        </Axis>
        <Axis>
          <Enabled>true</Enabled>
          <Input>
            <ActionID>HIDMultiAxis_Ry</ActionID>
            <Min>-512</Min>
            <Max>511</Max>
          </Input>
          <Output>
            <ActionID>HIDMouse_X</ActionID>
            <Reversed>true</Reversed>
          </Output>
        </Axis></AxisBank>
        ...
If you want this for an individual program, add these definitions to the cfg file for that program.
If you want to switch back and forth, add these to the Desktop.xml cfg.
Then there is a ButtonAction you can assign to one of your device buttons to toggle back and forth between the Desktop cfg and your current app (Driver_Desktop_ToggleGrab).

banguin2
Posts: 2
Joined: Mon Jul 29, 2019 11:50 am

Re: Spacemouse wireless as a normal mouse

Post by banguin2 » Tue Jul 30, 2019 7:33 am

-where do I find the .cfg files for programs? I only have the Desktop_2DMouse.xml that I created in the ProgramData/3Dconnecion/3DxWare/Cfg folder?

-is there any way to switch back and forth without using a button as I only have two of them? perhaps by pushing the 3d mouse down?

-Where do I find the Driver_Desktop_ToggleGrab?

jwick
Moderator
Moderator
Posts: 2563
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: Spacemouse wireless as a normal mouse

Post by jwick » Wed Jul 31, 2019 1:05 am

There is no standard way to use the cap to change. That's a good idea though. It would require custom software on someone's part. That software would have to capture the data from a 3d mouse axis and, perhaps, trigger this action if it exceeded some threshold.

Driver_Desktop_ToggleGrab is defined in Base.xml, but you can use it anywhere without redeclaring it. Assign it as the Output of the button you want to use (you have to do that manually or add a ButtonAction to your cfg to have it listed in our GUI).

If you got Desktop_2Dmouse.xml from me, it should already be in there.

If you have two buttons, dedicating one of them for this is impractical.
Possibly you may want to create a script or something to do this.
This function does something very simple. it changes the <Grab> entry in the Desktop file from None<->Hard. Hard is grabbed regardless of focus. None is "follow focus".

The default cfgs are in the 3DxWinCore dir under Program Files.
User cfg changes are saved in %APPDATA%\3Dconnexion\3DxWare\Cfg.

Post Reply