kopia lustrzana https://github.com/FreeSpacenav/spacenavd
added example config file
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@110 ef983eb1-d774-4af8-acfd-baaf7b16a646pull/1/head
rodzic
8c7d1eb0e2
commit
01340da0f8
1
README
1
README
|
@ -44,6 +44,7 @@ spacenavd - $Rev$
|
||||||
use the graphical spnavcfg program to interactively set any of these options.
|
use the graphical spnavcfg program to interactively set any of these options.
|
||||||
The daemon should respond immediately to your changes, and also the
|
The daemon should respond immediately to your changes, and also the
|
||||||
configuration file should be updated automatically.
|
configuration file should be updated automatically.
|
||||||
|
An example configuration file is included in the doc subdirectory.
|
||||||
|
|
||||||
6. Troubleshooting
|
6. Troubleshooting
|
||||||
If you're having trouble running spacenavd, read the up to date FAQ on the
|
If you're having trouble running spacenavd, read the up to date FAQ on the
|
||||||
|
|
|
@ -0,0 +1,42 @@
|
||||||
|
# This is an example configuration file for spacenavd. Uncomment and change
|
||||||
|
# any settings you need and copy it to /etc/spnavrc.
|
||||||
|
#
|
||||||
|
# Note that it's much easier to configure sensitivities and figure out axis
|
||||||
|
# reversals by using the interactive configure utility "spnavcfg", which lets
|
||||||
|
# you fiddle with all the settings and see the result immediately.
|
||||||
|
#
|
||||||
|
# Lines that start with a `#' are comments, and are ignored by spacenavd.
|
||||||
|
|
||||||
|
|
||||||
|
# Sensitivity is multiplied with every motion (1.0 normal).
|
||||||
|
#sensitivity = 1.0
|
||||||
|
|
||||||
|
|
||||||
|
# Separate sensitivity for rotation and translation.
|
||||||
|
#sensitivity-translation = 1.0
|
||||||
|
#sensitivity-rotation = 1.0
|
||||||
|
|
||||||
|
|
||||||
|
# Dead zone; any motion less than this number is discarded as noise.
|
||||||
|
#dead-zone = 2
|
||||||
|
|
||||||
|
|
||||||
|
# Selectively invert translation and rotation axes. Valid values are
|
||||||
|
# combinations of the letters x, y, and z.
|
||||||
|
#invert-rot = yz
|
||||||
|
#invert-trans = yz
|
||||||
|
|
||||||
|
|
||||||
|
# Swap Y and Z axes
|
||||||
|
#swap-yz = false
|
||||||
|
|
||||||
|
|
||||||
|
# Serial device
|
||||||
|
# Set this only if you have a serial device, and make sure you specify the
|
||||||
|
# correct device file. If you do set this option, any USB devices will be
|
||||||
|
# ignored!
|
||||||
|
#serial = /dev/ttyS0
|
||||||
|
|
||||||
|
|
||||||
|
# Enable/disable LED light (for devices that have one).
|
||||||
|
#led = on
|
|
@ -240,9 +240,13 @@ int write_cfg(const char *fname, struct cfg *cfg)
|
||||||
fprintf(fp, "led = 0\n\n");
|
fprintf(fp, "led = 0\n\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(cfg->serial_dev[0]) {
|
|
||||||
fprintf(fp, "# serial device\n");
|
fprintf(fp, "# serial device\n");
|
||||||
|
fprintf(fp, "# Set this only if you have a serial device, and make sure you specify the\n");
|
||||||
|
fprintf(fp, "# correct device file (On linux usually: /dev/ttyS0, /dev/ttyS1, /dev/ttyUSB0 ... etc).\n");
|
||||||
|
if(cfg->serial_dev[0]) {
|
||||||
fprintf(fp, "serial = %s\n\n", cfg->serial_dev);
|
fprintf(fp, "serial = %s\n\n", cfg->serial_dev);
|
||||||
|
} else {
|
||||||
|
fprintf(fp, "#serial = /dev/ttyS0\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* unlock */
|
/* unlock */
|
||||||
|
|
Ładowanie…
Reference in New Issue