-
Notifications
You must be signed in to change notification settings - Fork 25
/
joystick.h
55 lines (51 loc) · 1.38 KB
/
joystick.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
** Oricutron
** Copyright (C) 2009-2014 Peter Gordon
**
** This program is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License
** as published by the Free Software Foundation, version 2
** of the License.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**
** Joystick definitions
*/
// Joystick interface types
enum
{
JOYIFACE_NONE = 0,
JOYIFACE_ALTAI,
JOYIFACE_IJK
};
// Joystick emulation modes
enum
{
JOYMODE_NONE = 0,
JOYMODE_KB1,
JOYMODE_KB2,
JOYMODE_SDL0,
JOYMODE_SDL1,
JOYMODE_SDL2,
JOYMODE_SDL3,
JOYMODE_SDL4,
JOYMODE_SDL5,
JOYMODE_SDL6,
JOYMODE_SDL7,
JOYMODE_SDL8,
JOYMODE_SDL9,
JOYMODE_MOUSE
};
SDL_bool init_joy( struct machine *oric );
void shut_joy( struct machine *oric );
SDL_COMPAT_KEY joy_keyname_to_sym( char *name );
void joy_setup( struct machine *oric );
SDL_bool joy_filter_event( SDL_Event *ev, struct machine *oric );
void joy_buildmask( struct machine *oric );