Skip to content

Regression in SpaceMousePro button mapping #117

@ideasman42

Description

@ideasman42

In recent versions of SpaceNavD, SpaceMousePro's buttons are not working in Blender.

I bisected the error to: d537c9b.
Setting dev->bnhack = 0; resolves the issue in my case.

Patch:

diff --git a/src/dev_usb_linux.c b/src/dev_usb_linux.c
index fcaac36..da5c38c 100644
--- a/src/dev_usb_linux.c
+++ b/src/dev_usb_linux.c
@@ -155,6 +155,8 @@ int open_dev_usb(struct device *dev)
 	if(dev->bnhack) {
 		logmsg(LOG_DEBUG, "Device %04x:%04x reports %d buttons before disjointed button remapping\n",
 				dev->usbid[0], dev->usbid[1], dev->num_buttons);
+
+		dev->bnhack = 0;
 	}
 
 	if(dev->bnhack) {

I have a wired SpaceMousePro, starting sudo spacenavd -d shows the following output:

Spacenav daemon v1.3.1-1-gf19202e
reading config file: /etc/spnavrc
failed to open config file /etc/spnavrc: No such file or directory. using defaults.
adding device (id: 0).
device name: 3Dconnexion SpaceM
Device 046d:c62b reports 15 buttons before disjointed button remapping
using device: 3Dconnexion SpaceM (/dev/input/event16)
  device flags: swap y-z invert y-z
Authorization required, but no authorization protocol specified

NOTE: if you wanted to test with Blender, use v4.3 as there is a bug in v4.4 which I was trying to fix when I noticed this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions