Debian Codegraph @

3rdparty/joystick/jsNone.cxx

raw symbols SCIP
1 /*
2 Copyright (C) 1998,2002 Steve Baker
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library 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 GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public
15 License along with this library; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
18 For further information visit http://plib.sourceforge.net
19
20 $Id: jsNone.cxx 1960 2004-09-21 11:45:55Z smokydiamond $
21 */
22
23 #include "FlightGear_js.h"
24
25 #ifdef __OpenBSD__
26 #define TRUE JS_TRUE
27 #endif
28
29 struct os_specific_s ;
30
31
32 void jsJoystick::open ()
33 {
34 error = TRUE ;
35 num_axes = num_buttons = 0 ;
36 }
37
38
39 void jsJoystick::close ()
40 {
41 error = TRUE ;
42 }
43
44
45 jsJoystick::jsJoystick ( int ident )
46 {
47 error = TRUE ;
48 num_axes = num_buttons = 0 ;
49 os = NULL;
50 }
51
52
53 void jsJoystick::rawRead ( int *buttons, float *axes )
54 {
55 if ( buttons != NULL ) *buttons = 0 ;
56 }
57
58 void jsInit () {}