John Tsiombikas
b3ab0447f8
usb detection: make sure we only add devices if we also found which device file to use.
2018-08-27 10:05:45 +03:00
John Tsiombikas
3066072245
reverting the default LED behaviour to be always on, because it serves
...
as feedback to new users, that the device actually works.
2018-08-23 06:04:22 +03:00
John Tsiombikas
dd0f7d1813
Merge branch 'rhaschke-led-handling'
2018-08-23 05:58:54 +03:00
John Tsiombikas
ddab49ea6c
minor formatting fixes old and new, and usage of the LED_AUTO
...
enumeration in src/client.c
2018-08-23 05:57:40 +03:00
John Tsiombikas
5f268ed360
LED state enumeration instead of magic numbers, since it's no longer a
...
simple boolean value.
2018-08-23 05:44:50 +03:00
John Tsiombikas
b8e0e84400
Merge branch 'led-handling' of git://github.com/rhaschke/spacenavd into rhaschke-led-handling
2018-08-23 05:34:11 +03:00
Robert Haschke
c890aac70e
improve device information provided by daemon
2018-08-22 22:07:58 +02:00
Robert Haschke
5ef32beada
auto-enable LED with connected clients
2018-08-22 22:07:58 +02:00
John Tsiombikas
6f46571c25
updated readme file
2018-08-22 11:42:58 +03:00
John Tsiombikas
da4744a9a0
updated readme file
2018-08-22 11:40:21 +03:00
John Tsiombikas
04574d0ed0
replaced the svn $rev$ substitution with git describe falling back to git rev-parse HEAD
2018-08-21 05:46:28 +03:00
John Tsiombikas
e34c70fecd
.gitignore
2018-08-21 05:36:46 +03:00
John Tsiombikas
dd91e1fe41
added .gitignore
2018-08-21 05:22:32 +03:00
John Tsiombikas
d91b621192
minor cleanup
...
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@195 ef983eb1-d774-4af8-acfd-baaf7b16a646
2018-08-20 23:45:19 +00:00
John Tsiombikas
1abbae3018
fixed axis detection, and added detection of the number of buttons for USB devices on linux
...
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@194 ef983eb1-d774-4af8-acfd-baaf7b16a646
2018-08-20 18:13:12 +00:00
John Tsiombikas
6085db63f5
Applied Wiedemann's patch (sf#6) to link object files in alphabetical order
...
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@193 ef983eb1-d774-4af8-acfd-baaf7b16a646
2017-05-27 06:50:36 +00:00
John Tsiombikas
5d386e3650
Added missing include to dev_usb_darwin.c
...
closing bug #10
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@192 ef983eb1-d774-4af8-acfd-baaf7b16a646
2015-08-15 13:21:45 +00:00
John Tsiombikas
4f28ee892a
fixed a small bug in device detection which sometimes skipped a single character during parsing
...
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@191 ef983eb1-d774-4af8-acfd-baaf7b16a646
2015-04-05 23:23:15 +00:00
John Tsiombikas
5a5de08a10
added rule to match devices with the new 3Dconnexion vendor id (0x256f)
...
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@190 ef983eb1-d774-4af8-acfd-baaf7b16a646
2015-03-13 21:14:57 +00:00
John Tsiombikas
6d326b1f27
- Better example-spnavrc descriptions
...
- remove some debugging printfs which where commited accidentally previously
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@189 ef983eb1-d774-4af8-acfd-baaf7b16a646
2015-02-12 16:07:47 +00:00
John Tsiombikas
69f0a1bd65
moved axis remapping before checking deadzones
...
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@188 ef983eb1-d774-4af8-acfd-baaf7b16a646
2015-02-12 15:35:56 +00:00
John Tsiombikas
cd7e0576e5
trying to remove devices from Xinput
...
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@187 ef983eb1-d774-4af8-acfd-baaf7b16a646
2015-02-12 04:17:13 +00:00
John Tsiombikas
0517f0e481
added all the missing options to the example-spnavrc file
...
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@186 ef983eb1-d774-4af8-acfd-baaf7b16a646
2015-02-12 02:19:25 +00:00
John Tsiombikas
ee5ee52e5c
possible fix for bug #9
...
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@184 ef983eb1-d774-4af8-acfd-baaf7b16a646
2015-01-09 11:09:34 +00:00
John Tsiombikas
34ddda1246
added code to skip joystick device files while parsing /proc/bus/input/devices
...
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@183 ef983eb1-d774-4af8-acfd-baaf7b16a646
2014-10-11 05:07:58 +00:00
John Tsiombikas
667abe4981
added more 3d connexion usb device ids to the detection routine
...
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@177 ef983eb1-d774-4af8-acfd-baaf7b16a646
2014-03-03 14:51:57 +00:00
John Tsiombikas
ab41eaf551
Applied Christian Ehrlicher's patch, fixing a couple of memory leaks in the
...
linux usb device detection code.
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@176 ef983eb1-d774-4af8-acfd-baaf7b16a646
2014-02-01 15:19:38 +00:00
John Tsiombikas
135c403f1c
Applied Christian Ehrlicher's patch, fixing a potentially invalid access of
...
freed memory in handle_events (spnavd.c) when disconnecting a USB device.
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@175 ef983eb1-d774-4af8-acfd-baaf7b16a646
2014-02-01 14:54:30 +00:00
John Tsiombikas
0d1165a0e5
fixed C++ comment in dev_usb_darwin.c and silenced gcc's nagging for empty files
...
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@174 ef983eb1-d774-4af8-acfd-baaf7b16a646
2013-12-29 02:02:44 +00:00
John Tsiombikas
7951ae1c50
commited Christian Ehrlicher's patch fixing a buffer overrun in find_usb_devices.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@173 ef983eb1-d774-4af8-acfd-baaf7b16a646
2013-12-29 02:00:44 +00:00
John Tsiombikas
8590a7e1c0
adding initial win32 build files and service test. will have a long way to go before a completed win32 release is ready
...
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@172 ef983eb1-d774-4af8-acfd-baaf7b16a646
2013-07-11 17:59:25 +00:00
John Tsiombikas
456a6410af
I *think* I fixed a race condition with inotify and the X detection.
...
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@159 ef983eb1-d774-4af8-acfd-baaf7b16a646
2013-06-26 23:57:56 +00:00
John Tsiombikas
42604a51ba
- removed unnecessary devjs handler. Joysticks can be used as regular HID devices
...
- fixed axis range mapping for various HID devices
- fixed device detection which would pick up any logitech device instead of just 3Dconnexion ones
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@158 ef983eb1-d774-4af8-acfd-baaf7b16a646
2013-06-26 00:12:28 +00:00
John Tsiombikas
04aea924e3
- implemented more elaborate device selection with a predicate callback
...
- added the ability to specify a list of USB device IDs in the configuration
file, for non-standard devices to be handled by spacenavd (such as joysticks).
- added joystick support on linux. Joysticks are not claimed by default unless
listed in the device-id config option.
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@157 ef983eb1-d774-4af8-acfd-baaf7b16a646
2013-06-24 23:17:23 +00:00
John Tsiombikas
c12c505801
Fixed a bug introduced with the multi-device support patch. device->close()
...
would not be called when removing devices any more muldi-device patch was
applied). This would leave LEDs on when shutting down spacenavd.
Also simplified the code in some places
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@156 ef983eb1-d774-4af8-acfd-baaf7b16a646
2013-06-22 17:15:55 +00:00
John Tsiombikas
c17defa830
fixed an off-by-one error introduced in the latest commit which broke the main
...
device detection routine and fell back unto the alternative device detection.
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@155 ef983eb1-d774-4af8-acfd-baaf7b16a646
2013-06-22 15:57:45 +00:00
John Tsiombikas
b318c18c02
added missing include in smag_comm.c
...
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@154 ef983eb1-d774-4af8-acfd-baaf7b16a646
2013-05-22 16:16:08 +00:00
John Tsiombikas
b2c44718b2
beefed up the error handling and logging around the XAUTHORITY setup, and added the possibility of using the HOME env var as a fallback
...
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@153 ef983eb1-d774-4af8-acfd-baaf7b16a646
2013-05-22 15:15:48 +00:00
John Tsiombikas
a3721ea87d
merged Ralf Morel's patch for multiple device support
...
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@152 ef983eb1-d774-4af8-acfd-baaf7b16a646
2013-04-04 22:06:50 +00:00
John Tsiombikas
18b7357753
added contrib directory for unmaintained 3rd party contributions, starting with
...
Richard Shaw's and John Morris' systemd unit file from Fedora.
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@150 ef983eb1-d774-4af8-acfd-baaf7b16a646
2012-11-05 12:08:01 +00:00
John Tsiombikas
d3b2f25748
started merging the serial magellan code
...
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@149 ef983eb1-d774-4af8-acfd-baaf7b16a646
2012-10-27 18:50:11 +00:00
John Tsiombikas
e6b41b7666
starting preliminary work on macosx port
...
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@146 ef983eb1-d774-4af8-acfd-baaf7b16a646
2012-05-17 03:56:12 +00:00
John Tsiombikas
301c691fe1
- added -L/usr/X11/lib to the generated X link line in configure
...
- fixed a couple of annoying warnings in dummy_usb.c
- in spnavd.c I forgot to include string.h
- fixed a typo in xdetect_freebsd.c and made it compile on MacOSX too
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@145 ef983eb1-d774-4af8-acfd-baaf7b16a646
2012-05-16 13:01:20 +00:00
John Tsiombikas
b3204c8c47
Added DESTDIR to the makefile by applying Anthoine Bourgeois' patch. See bug #3512087
...
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@144 ef983eb1-d774-4af8-acfd-baaf7b16a646
2012-05-10 19:39:47 +00:00
John Tsiombikas
2c3915a047
Fixed bug #3512076 by placing #include "proto_x11.h" inside a USE_X11 ifdef block
...
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@142 ef983eb1-d774-4af8-acfd-baaf7b16a646
2012-05-10 19:15:06 +00:00
John Tsiombikas
45a7aaf7b4
Abort running if another spacenavd instance is already running. The detection
...
is robust even in the case of a stale pidfile.
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@141 ef983eb1-d774-4af8-acfd-baaf7b16a646
2012-05-09 10:25:32 +00:00
John Tsiombikas
7724df7961
now spacenavd should compile and be completely usable for serial devices on any platform
...
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@140 ef983eb1-d774-4af8-acfd-baaf7b16a646
2012-05-08 04:07:09 +00:00
John Tsiombikas
3b5d37fb34
Code cleanup.
...
- separated hotplug functionality from device driver for USB devices
- factored out common code to minimize redundancy for different platforms (linux/freebsd)
- created an internal "device" data type to allow handling both USB and serial devices
transparently without conditions everywhere.
Also fixed a minor performance bug. If there is no device plugged in, the repeat interval is ignored.
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@139 ef983eb1-d774-4af8-acfd-baaf7b16a646
2012-05-08 03:18:17 +00:00
John Tsiombikas
0f5d96c69f
forgot to add the new files
...
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@138 ef983eb1-d774-4af8-acfd-baaf7b16a646
2012-05-05 05:22:41 +00:00
John Tsiombikas
fa6bc12d9e
- added a configuration option for arbitrarily remapping button numbers
...
- added preliminary support for emulating keyboard input from button presses
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@137 ef983eb1-d774-4af8-acfd-baaf7b16a646
2012-05-05 05:12:49 +00:00