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