Wykres commitów

88 Commity (dd91e1fe418d94ad5f4811799f16b39445e9d04a)

Autor SHA1 Wiadomość Data
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
John Tsiombikas 8361610b5e - Added a repeat interval in the config file (for now disabled by default).
When enabled, any motion events outside of the deadzone are repeated every
  so many milliseconds.


git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@136 ef983eb1-d774-4af8-acfd-baaf7b16a646
2012-04-21 01:08:16 +00:00
John Tsiombikas d07b70f92f I think I fixed a spurious "can't set led" message after a SIGHUP when the
device is not present



git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@135 ef983eb1-d774-4af8-acfd-baaf7b16a646
2012-02-01 02:51:04 +00:00
John Tsiombikas 0bf5d8c0b8 improved the logging slightly when we run out of event device files during the
alternate device detection codepath



git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@134 ef983eb1-d774-4af8-acfd-baaf7b16a646
2012-02-01 02:43:48 +00:00
John Tsiombikas ad81171ce0 - added option (disabled by default) to avoid grabbing the USB device so that
google earth will be able to use it. This might become the default if after
  further testing it's decided that current X servers won't try to use the device
  as a mouse by default.



git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@128 ef983eb1-d774-4af8-acfd-baaf7b16a646
2011-11-23 23:35:48 +00:00
John Tsiombikas b15eb755d2 Deadzone detection would just ignore events below the threshold instead of
clamping them to 0. Any programs that used the events as state-changes would
thus keep a small continouous motion for ever instead of "stopping". Thanks to
Thomas Anderson for pointing it out.



git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@127 ef983eb1-d774-4af8-acfd-baaf7b16a646
2011-11-12 18:30:22 +00:00
John Tsiombikas 0d075a364a Daniel Brandt's patch adding separate deadzone control for each axis
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@126 ef983eb1-d774-4af8-acfd-baaf7b16a646
2011-11-08 19:07:03 +00:00
John Tsiombikas 135772a7a5 - added proper build-dependency tracking in the makefile
- added separate sensitivities for each axis



git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@124 ef983eb1-d774-4af8-acfd-baaf7b16a646
2011-11-05 20:23:24 +00:00
John Tsiombikas c901bfa6df According to Matthew Marincic some old linux versions don't have EV_SYN defined in the evdev headers. So now we define it if it's missing.
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@123 ef983eb1-d774-4af8-acfd-baaf7b16a646
2011-10-10 03:27:05 +00:00
John Tsiombikas cfd07dfdd4 preliminary freebsd support, only serial at the moment.
implemented xdetect_freebsd with kqueue events.



git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@120 ef983eb1-d774-4af8-acfd-baaf7b16a646
2011-10-05 02:05:18 +00:00
John Tsiombikas 36b51c2b90 Motion time periods were calculated incorrectly. Thanks to Jesse Crossen for pointing it out.
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@116 ef983eb1-d774-4af8-acfd-baaf7b16a646
2011-06-06 12:34:37 +00:00
John Tsiombikas e5e7f92e18 - Applied G.Dimitropoulos' fix for setup_init, which would fail to detect the
correct runlevel if the string initdefault is mentioned anywhere in the
  comments of inittab.



git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@115 ef983eb1-d774-4af8-acfd-baaf7b16a646
2011-03-07 03:13:02 +00:00
John Tsiombikas 237199d8f7 added AUTHORS
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@111 ef983eb1-d774-4af8-acfd-baaf7b16a646
2010-08-01 06:44:37 +00:00