Debian Codegraph @

src/Network/jsclient.hxx

raw symbols SCIP
1 // jsclient.hxx -- simple UDP networked joystick client
2 //
3 // Copyright (C) 2003 by Manuel Bessler and Stephen Lowry
4 //
5 // based on joyclient.hxx by Curtis Olson
6 // Copyright (C) 2000 Curtis L. Olson - http://www.flightgear.org/~curt
7 //
8 // This program is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU General Public License as
10 // published by the Free Software Foundation; either version 2 of the
11 // License, or (at your option) any later version.
12 //
13 // This program is distributed in the hope that it will be useful, but
14 // WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // General Public License for more details.
17 //
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the Free Software
20 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 //
22 // $Id$
23
24 #pragma once
25
26 #include <simgear/compiler.h>
27
28 #include <string>
29
30 #include <FDM/flight.hxx>
31
32 #include "protocol.hxx"
33
34
35 class FGJsClient : public FGProtocol {
36
37 char buf[256];
38 double axis[4];
39 SGPropertyNode_ptr axisdef[4];
40 std::string axisdefstr[4];
41 bool active;
42
43 public:
44
45 FGJsClient();
46 ~FGJsClient();
47
48 // open hailing frequencies
49 bool open();
50
51 // process work for this port
52 bool process();
53
54 // close the channel
55 bool close();
56 };