Wykres commitów

134 Commity (3b2eeb011fdcf47342796682a853ee228916d035)

Autor SHA1 Wiadomość Data
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
John Tsiombikas d406e77ebc partial commit, led disabling should work, can't test right now... can't vouch for cfggui
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@46 ef983eb1-d774-4af8-acfd-baaf7b16a646
2008-05-12 06:03:19 +00:00
John Tsiombikas b91b2cdf15 added a configure script
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@30 ef983eb1-d774-4af8-acfd-baaf7b16a646
2008-04-09 07:25:15 +00:00
John Tsiombikas 6b8ca7ea98 moved spacenavd to trunk
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@27 ef983eb1-d774-4af8-acfd-baaf7b16a646
2008-04-09 07:00:01 +00:00
John Tsiombikas d8f197d7e0 - advisory file locking in the cfgfile read/write code
- changes in the init script to use the pidfile for killing
- changed the spnavcfg program, added functionality to start/stop the X11
  magellan interface, and to "ping" the server and see if it's running.


git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/spacenavd@23 ef983eb1-d774-4af8-acfd-baaf7b16a646
2008-04-09 04:27:12 +00:00
John Tsiombikas 27d0aab0ea forgot to add copyright statements on the new files
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/spacenavd@21 ef983eb1-d774-4af8-acfd-baaf7b16a646
2008-04-07 08:36:05 +00:00
John Tsiombikas 4aff43b6da - added a script to setup init ... scripts.
- now the daemon writes a file on /tmp with its pid.
- added axis inversions as a config option.
- wrote installation and usage instractions in the README file.
- renamed spnavd_x11 to spnavd_ctl and modified it a bit in an effort to
  expand its functionality in the future.
- modified the HUP signal usage to reread config files without
  restarting the daemon. that works fine with the new interactive config tool.


git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/spacenavd@20 ef983eb1-d774-4af8-acfd-baaf7b16a646
2008-04-07 08:31:27 +00:00
John Tsiombikas dcaac5cd37 - Now taking heed of the DISPLAY variable if it's set.
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/spacenavd@19 ef983eb1-d774-4af8-acfd-baaf7b16a646
2008-04-05 03:48:37 +00:00
John Tsiombikas a0fe5c1101 - added alternative device detection process, in case the
/proc/bus/input/devices isn't there, or its parsing fails.


git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/spacenavd@18 ef983eb1-d774-4af8-acfd-baaf7b16a646
2008-04-05 01:26:39 +00:00
John Tsiombikas f491b6ddb5 - Fixed a bug where spacenavd would open the wrong device file if there are two
"Handler"s in /proc/bus/input/devices for the device.


git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/spacenavd@17 ef983eb1-d774-4af8-acfd-baaf7b16a646
2008-04-02 01:15:23 +00:00
John Tsiombikas c94780c916 - minor changes and chkconfig compatibility header in the init script.
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/spacenavd@16 ef983eb1-d774-4af8-acfd-baaf7b16a646
2008-04-02 00:44:58 +00:00
John Tsiombikas 3dc652084e - merged the LED code from absum's patch, it only works for recent linux kernel
versions though.
- fixed a crashing bug if the daemon can't connect to the X server on startup.
- added a SIGSEGV handler to try and exit gracefully on segfaults.



git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/spacenavd@11 ef983eb1-d774-4af8-acfd-baaf7b16a646
2008-01-18 23:21:31 +00:00
John Tsiombikas 85a83c59cf - added a missing continue, that led to crashes on disconnecting clients.
- removed the useless exception fds from the select/handle calls


git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/spacenavd@10 ef983eb1-d774-4af8-acfd-baaf7b16a646
2008-01-16 15:02:51 +00:00
John Tsiombikas fede71cd94 minor fixes
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/spacenavd@9 ef983eb1-d774-4af8-acfd-baaf7b16a646
2007-11-08 00:40:33 +00:00
John Tsiombikas 14f1522aba added init script, plus install/uninstall rules in the makefile
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/spacenavd@8 ef983eb1-d774-4af8-acfd-baaf7b16a646
2007-11-08 00:37:14 +00:00
John Tsiombikas 16ac12f3ef - fixed the spnavd_x11 script to make error reporting more extensive, and the
messages more reasonable. (fix contributed by: Doug LaRue).


git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/spacenavd@6 ef983eb1-d774-4af8-acfd-baaf7b16a646
2007-08-11 16:24:56 +00:00
John Tsiombikas c69abfbdd3 - Added UNIX-socket alternative communication method (not working correctly yet).
- Restructured the daemon code, broken up the huge main loop into two functions.


git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/spacenavd@5 ef983eb1-d774-4af8-acfd-baaf7b16a646
2007-07-06 07:16:13 +00:00
John Tsiombikas 6ae8785b9c initial import of the daemon
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/spacenavd@1 ef983eb1-d774-4af8-acfd-baaf7b16a646
2007-07-02 22:03:28 +00:00