I encountered the issue with the capitalisation in joystick 1.4.3, I tried to report it as a new bug and found this bug already existed.

I fixed the capitalisation with the attached patch after instrumenting inputattach to report the dialogue - the spaceball now works perfectly.

$ sudo ./inputattach --spaceball /dev/ttyS0
RECV:
RECV:
RECV: @1 Spaceball alive and well after a poweron reset.
RECV:
RECV: @2 Firmware version 2.43 created on 13-Oct-2000.
SENDING: hm
RECV: K@@
RECV: .`@
RECV: HVFirmware version 2.43 created on 13-Oct-2000
SENDING: "
RECV: "1 Spaceball 4000 FLX
RECV: "2 B:13 R PnP:0 Az:1 Sns:S 2710 14
RECV: "3 V2.43 created on Oct 13 2000
SENDING: YS
RECV: "4 Copyright(C) 1999 Spacetec IMC Corporation
RECV: YS
SENDING: M
RECV: M
--- utils/inputattach.c.orig	2011-12-17 19:05:48.000000000 +0000
+++ utils/inputattach.c	2014-01-06 22:04:35.000000000 +0000
@@ -192,7 +192,8 @@
 	if (!strncmp("Hm3003C", r, 7))
 		*id = SPACEBALL_3003C;
 
-	if (!strncmp("HvFirmware", r, 10)) {
+	/* spaceball 4000 returns 'HVFirmware' with v2.4.3 */
+	if (!strncasecmp("HvFirmware", r, 10)) {
 
 		if (spaceball_cmd(fd, "\"", r))
 			return -1;

Reply via email to