libacfutils
A general purpose library of utility functions designed to make it easier to develop addons for the X-Plane flight simulator.
Loading...
Searching...
No Matches
joystick.h
Go to the documentation of this file.
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *
9 * You can obtain a copy of the license in the file COPYING
10 * or http://www.opensource.org/licenses/CDDL-1.0.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file COPYING.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22/*
23 * Copyright 2023 Saso Kiselkov. All rights reserved.
24 */
30#ifndef _ACF_UTILS_JOYSTICK_H_
31#define _ACF_UTILS_JOYSTICK_H_
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
41typedef enum {
42 XPJOY_AXIS_UNASSIGNED = 0,
43 XPJOY_AXIS_PITCH = 1,
44 XPJOY_AXIS_ROLL = 2,
45 XPJOY_AXIS_YAW = 3,
46 XPJOY_AXIS_THROTTLE = 4,
47 XPJOY_AXIS_COLLECTIVE = 5,
48 XPJOY_AXIS_LEFT_TOE_BRAKE = 6,
49 XPJOY_AXIS_RIGHT_TOE_BRAKE = 7,
50 XPJOY_AXIS_PROP = 8,
51 XPJOY_AXIS_MIXTURE = 9,
52 XPJOY_AXIS_CARB_HEAT = 10,
53 XPJOY_AXIS_FLAPS = 11,
54 XPJOY_AXIS_THRUST_VECTOR = 12,
55 XPJOY_AXIS_WING_SWEEP = 13,
56 XPJOY_AXIS_SPEEDBRAKES = 14,
57 XPJOY_AXIS_DISPLACEMENT = 15,
58 XPJOY_AXIS_REVERSE = 16,
59 XPJOY_AXIS_ELEVATOR_TRIM = 17,
60 XPJOY_AXIS_AILERON_TRIM = 18,
61 XPJOY_AXIS_RUDDER_TRIM = 19,
62 XPJOY_AXIS_THROTTLE_1 = 20,
63 XPJOY_AXIS_THROTTLE_2 = 21,
64 XPJOY_AXIS_THROTTLE_3 = 22,
65 XPJOY_AXIS_THROTTLE_4 = 23,
66 XPJOY_AXIS_PROP_1 = 24,
67 XPJOY_AXIS_PROP_2 = 25,
68 XPJOY_AXIS_PROP_3 = 26,
69 XPJOY_AXIS_PROP_4 = 27,
70 XPJOY_AXIS_MIXTURE_1 = 28,
71 XPJOY_AXIS_MIXTURE_2 = 29,
72 XPJOY_AXIS_MIXTURE_3 = 30,
73 XPJOY_AXIS_MIXTURE_4 = 31,
74 XPJOY_AXIS_REVERSE_1 = 32,
75 XPJOY_AXIS_REVERSE_2 = 33,
76 XPJOY_AXIS_REVERSE_3 = 34,
77 XPJOY_AXIS_REVERSE_4 = 35,
78 XPJOY_AXIS_LANDING_GEAR = 36,
79 XPJOY_AXIS_NOSEWHEEL_TILLER = 37,
80 XPJOY_AXIS_BACKUP_THROTTLE = 38,
81 XPJOY_AXIS_THROTTLE_HORIZONTAL = 39,
82 XPJOY_AXIS_THROTTLE_VERTICAL = 40,
83 XPJOY_AXIS_VIEW_LEFT_RIGHT = 41,
84 XPJOY_AXIS_VIEW_UP_DOWN = 42,
85 XPJOY_AXIS_VIEW_ZOOM = 43
87
88#ifdef __cplusplus
89}
90#endif
91
92#endif /* _ACF_UTILS_JOYSTICK_H_ */
xpjoy_axis_t
Definition joystick.h:41