Wykres commitów

117 Commity (081182f1675bb69eec58d92698f1ba2f23466d3f)

Autor SHA1 Wiadomość Data
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
John Tsiombikas 01340da0f8 added example config file
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@110 ef983eb1-d774-4af8-acfd-baaf7b16a646
2010-08-01 00:36:37 +00:00
John Tsiombikas 8c7d1eb0e2 - fixed the stupid XAUTHORITY issue in spacenavd
- random whitespace fixes in libspnav


git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@107 ef983eb1-d774-4af8-acfd-baaf7b16a646
2010-07-27 04:46:14 +00:00
John Tsiombikas 1a25e7c7b2 - added serial device support (merged libsball by John Stone).
- fixed a bug where the swap-xy would only affect translation.


git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@103 ef983eb1-d774-4af8-acfd-baaf7b16a646
2010-06-07 00:47:02 +00:00
John Tsiombikas df57ada5a0 - According to Pavel Frolov the space pilot pro sends absolute events for some
reason. Applied his changes to support that device.


git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@100 ef983eb1-d774-4af8-acfd-baaf7b16a646
2010-03-05 23:18:10 +00:00
John Tsiombikas 71993bd239 minor cfgfile fixes
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@98 ef983eb1-d774-4af8-acfd-baaf7b16a646
2010-02-28 02:15:10 +00:00
John Tsiombikas cd5312cd39 - Fixed a bug where the daemon would quit if the X server is stopped.
- Alleviated the need for XSync in xsend_event. Now XFlush suffices.
- Added separate sensitivity options for rotation and translation.
- Added option to swap Y and Z translation axes.



git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@96 ef983eb1-d774-4af8-acfd-baaf7b16a646
2010-02-27 23:49:56 +00:00
John Tsiombikas f6a10f2786 - fixed configure script to disregard appended "-whatever" substrings in the kernel version.
- added -fno-strict-aliasing to the makefiles



git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@95 ef983eb1-d774-4af8-acfd-baaf7b16a646
2010-01-26 01:32:08 +00:00
John Tsiombikas 7389d01f34 fixed broken --disable-x11 build
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@94 ef983eb1-d774-4af8-acfd-baaf7b16a646
2009-10-09 09:09:56 +00:00
John Tsiombikas 4805edd983 - make the use of NETLINK_KOBJECT_UEVENT for hotplug events optional
(conditionally compiled). The configure script autodetects whether hotplug
  should be enabled by default or not, based on the output of uname. The user
  can override that decision with --enable-hotplug and --disable-hotplug.


git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@92 ef983eb1-d774-4af8-acfd-baaf7b16a646
2009-08-19 03:40:39 +00:00
John Tsiombikas e87cbc9ad5 forgot to add the new xdetect files
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@89 ef983eb1-d774-4af8-acfd-baaf7b16a646
2009-07-24 02:52:07 +00:00
John Tsiombikas fc771d996c changed configure to accept auto svn revision strings as version numbers
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@88 ef983eb1-d774-4af8-acfd-baaf7b16a646
2009-07-24 01:17:36 +00:00
John Tsiombikas d5ec2140e5 - added X server auto detection
- added forgotten GPL notices to the new files



git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@87 ef983eb1-d774-4af8-acfd-baaf7b16a646
2009-07-24 01:04:12 +00:00
John Tsiombikas 1ffb617673 Major source code reorganization. Broken up the spacenavd source into multiple
files, and re-wrote parts of the code.

- The UNIX socket protocol code is now in proto_unix.c
- The old magellan-compatible X11 protocol code is now in proto_x11.c
- Everything linux-specific is now in dev_linux.c. This is meant to be the linux
  implementation of the interface defined in dev.h, so that eventually we may
  add a dev_fbsd.c dev_solaris.c etc.
- The client list manipulation is now abstracted in client.h/.c.
- event.h/event.c deals with processing device events (struct dev_event, new
  struct to avoid using the linux-specific struct input_event outside of
  dev_linux.c) and distribution of spnav_events to the clients.
- spnav.c is left now with calling the various init functions to initialize
  everything, and handling the select() main loop by asking for fds and calling
  handler functions.

New features:
- now we're listening for hotplug events from the NETLINK_KOBJECT_UEVENT socket
  (dev_linux.c) instead of polling every 30s. If we're unable to get hotplug
  events from the kernel, a fallback to the old polling mechanism is provided,
  starting with 1 second waits and gradually doubling it until we reach
  MAX_POLL_TIME (which is 30s).



git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@86 ef983eb1-d774-4af8-acfd-baaf7b16a646
2009-07-20 22:47:08 +00:00
John Tsiombikas 05a20ad7c2 - now spacenavd grabs the device using EVIOCGRAB, so that X.org won't try to
use it as a mouse. The same was achieved so far by using a HAL fdi policy. I
  think we'll better keep both mechanisms.



git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@83 ef983eb1-d774-4af8-acfd-baaf7b16a646
2009-07-16 17:21:30 +00:00
John Tsiombikas 118a1ea467 - placed close_x11 between USE_X11 ifdefs
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@82 ef983eb1-d774-4af8-acfd-baaf7b16a646
2009-06-15 21:33:56 +00:00
John Tsiombikas adc5366783 Added a hal fdi policy file, and modified the install target of the makefile to
install it in /etc/hal/fdi/policy.
Thanks to Jaroslaw Bulat for the info regarding fdi files.


git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@79 ef983eb1-d774-4af8-acfd-baaf7b16a646
2009-02-02 06:35:56 +00:00
John Tsiombikas ffba7db4a1 foo
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@77 ef983eb1-d774-4af8-acfd-baaf7b16a646
2009-02-02 02:21:40 +00:00
John Tsiombikas 619dfe52a1 - forgot to update the spnavd_ctl script to use the new pid location, this will
require a new release
- removed unnecessary bits from the makefiles



git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@75 ef983eb1-d774-4af8-acfd-baaf7b16a646
2009-02-02 02:11:10 +00:00
John Tsiombikas 19d6532630 actually make that spacenavd 0.3.1
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@69 ef983eb1-d774-4af8-acfd-baaf7b16a646
2009-01-30 03:01:59 +00:00
John Tsiombikas 25f330e6fa preparing for spacenavd 0.4
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@66 ef983eb1-d774-4af8-acfd-baaf7b16a646
2009-01-30 02:59:39 +00:00
John Tsiombikas 23c52605e3 - removed init script installation from spacenavd's install target, added
message to the user instead.

Applied Hans Meine's patches:
- allow build dir != source dir
- install into /lib64 if /lib64 exists
  (modified that one to use uname -m in the configure script, debian seems to
  have a lib64 even on 32bit systems)
- display X11 connection closing in verbose mode, too (not only init)



git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@47 ef983eb1-d774-4af8-acfd-baaf7b16a646
2008-08-14 02:10:34 +00:00