File: Joystick.h

package info (click to toggle)
psychtoolbox-3 3.0.19.14.dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 86,796 kB
  • sloc: ansic: 176,245; cpp: 20,103; objc: 5,393; sh: 2,753; python: 1,397; php: 384; makefile: 193; java: 113
file content (109 lines) | stat: -rw-r--r-- 2,093 bytes parent folder | download | duplicates (7)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/*

	joystick.h

	

	PLATFORMS:	Windows

				Mac OS 9

			

	

	AUTHORS:

	Allen Ingling		awi		Allen.Ingling@nyu.edu



	HISTORY:

	08/12/01		awi		wrote it.

	11/26/01		awi		modified for OS 9.  Moved declarations for minibox

							functions to minibox.h file.     

	



*/



#include "PsychPlatform.h"

#include "SDL.h"

#include "MiniBox.h"





typedef struct ProjectTable{

	CONSTmxArray	*joystickNumberArgument;

	Boolean			giveHelp; 

	Boolean			ignoreCase;

} ProjectTable;







extern void JOYSTICKGetNumJoysticks(int nlhs, mxArray *plhs[], int nrhs, CONSTmxArray *prhs[]);

extern void JOYSTICKGetNumButtons(int nlhs, mxArray *plhs[], int nrhs, CONSTmxArray *prhs[]);

extern void JOYSTICKGetNumAxes(int nlhs, mxArray *plhs[], int nrhs, CONSTmxArray *prhs[]);

extern void JOYSTICKGetNumBalls(int nlhs, mxArray *plhs[], int nrhs, CONSTmxArray *prhs[]);

extern void JOYSTICKGetNumHats(int nlhs, mxArray *plhs[], int nrhs, CONSTmxArray *prhs[]);

extern void JOYSTICKGetButton(int nlhs, mxArray *plhs[], int nrhs, CONSTmxArray *prhs[]);

extern void JOYSTICKGetAxis(int nlhs, mxArray *plhs[], int nrhs, CONSTmxArray *prhs[]);

extern void JOYSTICKGetBall(int nlhs, mxArray *plhs[], int nrhs, CONSTmxArray *prhs[]);

extern void JOYSTICKGetHat(int nlhs, mxArray *plhs[], int nrhs, CONSTmxArray *prhs[]);

extern void JOYSTICKUnplug(int nlhs, mxArray *plhs[], int nrhs, CONSTmxArray *prhs[]);

extern void JOYSTICKGetJoystickName(int nlhs, mxArray *plhs[], int nrhs, CONSTmxArray *prhs[]);

extern void JOYSTICKGetJoystickNumbersFromName(int nlhs, mxArray *plhs[], int nrhs, CONSTmxArray *prhs[]);



extern void CloseJoystick(void);

void JoystickExitFunction(void);

extern SDL_Joystick *GetJoystickObjFromNum(int joystickNum);

extern ProjectTable *GetProjectTable(void);

void InitializeSynopsis(char *synopsis[],int maxStrings);





extern char useGetNumJoysticks[],useGetJoystickName[], useGetJoystickNumbersFromName[], useGetNumButtons[], 

			useGetNumAxes[], useGetNumBalls[], useGetNumHats[], useGetButton[], useGetAxis[], useGetBall[], 

			useGetHat[], useUnplug[];