]> icculus.org git repositories - taylor/freespace2.git/blob - src/io/joy-unix.cpp
Keyboard partially fixed
[taylor/freespace2.git] / src / io / joy-unix.cpp
1 #include "pstypes.h"
2 #include "joy.h"
3
4 Joy_info joystick;
5 int Joy_sensitivity = 9;
6 int Dead_zone_size = 10;
7
8 void joy_close()
9 {
10         STUB_FUNCTION;
11 }
12
13 int joy_down(int btn)
14 {
15         STUB_FUNCTION;
16         
17         return 0;
18 }
19
20 int joy_down_count(int btn, int reset_count)
21 {
22         STUB_FUNCTION;
23         
24         return 0;
25 }
26
27 float joy_down_time(int btn)
28 {
29         STUB_FUNCTION;
30         
31         return 0.0f;
32 }
33
34 void joy_flush()
35 {
36         STUB_FUNCTION;
37 }
38
39 int joy_get_pos(int *x, int *y, int *z, int *rx)
40 {
41         if (x) *x = 0;
42         if (y) *y = 0;
43         if (z) *z = 0;
44         if (rx) *rx = 0;
45         
46         STUB_FUNCTION;
47         
48         return 0;                        
49 }
50
51 int joy_get_scaled_reading(int raw, int axn)
52 {
53         STUB_FUNCTION;
54         
55         return 0;
56 }
57
58 int joy_get_unscaled_reading(int raw, int axn)
59 {
60         STUB_FUNCTION;
61         
62         return 0;
63 }
64
65 int joy_init()
66 {
67         STUB_FUNCTION;
68         
69         return 0;
70 }
71
72 void joy_set_cen()
73 {
74         joystick_read_raw_axis( 2, joystick.axis_center );
75 }
76
77 int joystick_read_raw_axis(int num_axes, int *axis)
78 {
79         return 0;
80 }
81
82 void joy_ff_adjust_handling(int speed)
83 {
84         STUB_FUNCTION;
85 }
86
87 void joy_ff_afterburn_off()
88 {
89         STUB_FUNCTION;
90 }
91
92 void joy_ff_afterburn_on()
93 {
94         STUB_FUNCTION;
95 }
96
97 void joy_ff_deathroll()
98 {
99         STUB_FUNCTION;
100 }
101
102 void joy_ff_docked()
103 {
104         STUB_FUNCTION;
105 }
106
107 void joy_ff_explode()
108 {
109         STUB_FUNCTION;
110 }
111
112 void joy_ff_fly_by(int mag)
113 {
114         STUB_FUNCTION;
115 }
116
117 void joy_ff_mission_init(vector v)
118 {
119         STUB_FUNCTION;
120 }
121
122 void joy_ff_play_dir_effect(float x, float y)
123 {
124         STUB_FUNCTION;
125 }
126
127 void joy_ff_play_primary_shoot(int gain)
128 {
129         STUB_FUNCTION;
130 }
131
132 void joy_ff_play_reload_effect()
133 {
134         STUB_FUNCTION;
135 }
136
137 void joy_ff_play_secondary_shoot(int gain)
138 {
139         STUB_FUNCTION;
140 }
141
142 void joy_ff_play_vector_effect(vector *v, float scaler)
143 {
144         STUB_FUNCTION;
145 }
146
147 void joy_ff_stop_effects()
148 {
149         joy_ff_afterburn_off();
150 }