ps2gamelite library
v0.1
Communicate with PlayStation 2 controller(s) and return buttonandjoystickdata.
Main Page
Data Structures
Files
File List
Globals
ps2gamelite.h
Go to the documentation of this file.
1
15
#ifndef PS2LITE_H
16
#define PS2LITE_H
17
18
#if defined(__cplusplus)
19
extern
"C"
{
20
#endif
21
22
23
#include "simpletools.h"
24
25
typedef
struct
ps2game_st
{
26
volatile
int
dat;
27
volatile
int
cmd;
28
volatile
int
att;
29
volatile
int
clk;
30
volatile
int
thumbL;
31
volatile
int
thumbR;
32
volatile
int
status;
33
volatile
int
joyRX;
34
volatile
int
joyRY;
35
volatile
int
joyLX;
36
volatile
int
joyLY;
37
volatile
int
cog;
38
int
stack[128];
39
}
ps2game_t
;
40
51
ps2game_t
*ps2game_open(
int
dat,
int
cmd,
int
att,
int
clk);
52
53
59
void
ps2game_close(
ps2game_t
*device);
60
61
69
int
ps2game_status(
ps2game_t
*device);
70
71
79
int
ps2game_square(
ps2game_t
*device);
80
81
89
int
ps2game_cross(
ps2game_t
*device);
90
91
99
int
ps2game_circle(
ps2game_t
*device);
100
101
109
int
ps2game_triangle(
ps2game_t
*device);
110
111
119
int
ps2game_1R(
ps2game_t
*device);
120
121
129
int
ps2game_1L(
ps2game_t
*device);
130
131
139
int
ps2game_2R(
ps2game_t
*device);
140
141
149
int
ps2game_2L(
ps2game_t
*device);
150
151
159
int
ps2game_left(
ps2game_t
*device);
160
161
169
int
ps2game_backward(
ps2game_t
*device);
170
171
179
int
ps2game_right(
ps2game_t
*device);
180
181
189
int
ps2game_forward(
ps2game_t
*device);
190
191
199
int
ps2game_start(
ps2game_t
*device);
200
201
209
int
ps2game_select(
ps2game_t
*device);
210
211
219
int
ps2game_joyPressL(
ps2game_t
*device);
220
221
229
int
ps2game_joyPressR(
ps2game_t
*device);
230
231
239
int
ps2game_joyLX(
ps2game_t
*device);
240
241
249
int
ps2game_joyLY(
ps2game_t
*device);
250
251
259
int
ps2game_joyRX(
ps2game_t
*device);
260
261
269
int
ps2game_joyRY(
ps2game_t
*device);
270
271
272
#if defined(__cplusplus)
273
}
274
#endif
275
/* __cplusplus */
276
#endif
277
/* PS2LITE_H */
278
279
Generated on Fri Apr 10 2015 21:18:36 for ps2gamelite library by
1.8.1.2