- 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
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
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
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
- 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
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
- 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
- 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
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
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
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
- 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
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
- 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
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
- 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
- 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
(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
- 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
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
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
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
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
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