Debian Codegraph @

man/man1/fgjs.1

raw
1 .\" Copyright (C) 2002 Cameron Moore
2 .\" Copyright (C) 2017 Alessandro Menti
3 .\"
4 .\" This program is free software; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License
6 .\" as published by the Free Software Foundation; either version 2
7 .\" of the License, or (at your option) any later version.
8 .\"
9 .\" This program is distributed in the hope that it will be useful,
10 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
11 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 .\" GNU General Public License for more details.
13 .\"
14 .\" You should have received a copy of the GNU General Public License
15 .\" along with this program; if not, write to the Free Software
16 .\" Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 .\" Or try here: http://www.fsf.org/copyleft/gpl.html
18 .\"
19 .TH FGJS 1 2017-06-04 FlightGear "FlightGear man pages"
20 .SH NAME
21 fgjs \- FlightGear joystick utility
22 .SH SYNOPSIS
23 \fBfgjs\fR [\fB\-\-help\fR] [\fB\-\-fg\-root=\fIrootdir\fR]
24 .SH DESCRIPTION
25 .B fgjs
26 is a joystick utility for the FlightGear flight simulator which allows you to
27 generate a configuration file for your joystick interactively.
28
29 To use it, launch the program with your joystick(s) connected. The utility will
30 first prompt you to move each joystick around in the \fIdead band\fR, that is,
31 the area where it is centered and should not generate any input. Afterwards,
32 you will be asked to move the control/push the button you would like to use for
33 each function.
34
35 The configuration will be saved in the current working directory in several
36 files named \fIjsI.xml\fR, where \fII\fR is the progressive number assigned to
37 each detected joystick. You will need to move them to
38 .I ~/.fgfs/Input/Joysticks
39 for them to be used by FlightGear.
40 .SH OPTIONS
41 .TP
42 \fB\-\-help\fR
43 Display usage information and exit.
44 .TP
45 \fB\-\-fg\-root=\fIrootdir\fR
46 Set the FlightGear data root directory (\fB$FG_ROOT\fR) to \fIrootdir\fR.
47 .SH ENVIRONMENT
48 .IP "\fBFG_ROOT\fR" 4
49 If
50 .B FG_ROOT
51 is set and
52 .B \-\-fg\-root
53 is not set, it specifies the root data directory to use.
54 .SH FILES
55 .IP "\fI~/.fgfsrc.hostname\fR, \fI~/.fgfsrc\fR" 4
56 Configuration files containing command-line options for
57 .BR fgfs (1).
58 The
59 .B \-\-fg\-root
60 command-line option is searched there if it is not passed as a command-line
61 argument to \fBfgjs\fR.
62 .SH "SEE ALSO"
63 .BR fgfs (1),
64 .BR js_demo (1),
65 .UR http://\:wiki.flightgear.org/\:Joystick
66 the FlightGear wiki "Joystick" page
67 .UE