Home
last modified time | relevance | path

Searched refs:joystick (Results 1 – 25 of 25) sorted by relevance

/external/qemu/distrib/sdl-1.2.12/src/joystick/
DSDL_joystick.c96 SDL_Joystick *joystick; in SDL_JoystickOpen() local
107 joystick = SDL_joysticks[i]; in SDL_JoystickOpen()
108 ++joystick->ref_count; in SDL_JoystickOpen()
109 return(joystick); in SDL_JoystickOpen()
114 joystick = (SDL_Joystick *)SDL_malloc((sizeof *joystick)); in SDL_JoystickOpen()
115 if ( joystick != NULL ) { in SDL_JoystickOpen()
116 SDL_memset(joystick, 0, (sizeof *joystick)); in SDL_JoystickOpen()
117 joystick->index = device_index; in SDL_JoystickOpen()
118 if ( SDL_SYS_JoystickOpen(joystick) < 0 ) { in SDL_JoystickOpen()
119 SDL_free(joystick); in SDL_JoystickOpen()
[all …]
DSDL_joystick_c.h31 extern int SDL_PrivateJoystickAxis(SDL_Joystick *joystick,
33 extern int SDL_PrivateJoystickBall(SDL_Joystick *joystick,
35 extern int SDL_PrivateJoystickHat(SDL_Joystick *joystick,
37 extern int SDL_PrivateJoystickButton(SDL_Joystick *joystick,
DSDL_sysjoystick.h68 extern int SDL_SYS_JoystickOpen(SDL_Joystick *joystick);
75 extern void SDL_SYS_JoystickUpdate(SDL_Joystick *joystick);
78 extern void SDL_SYS_JoystickClose(SDL_Joystick *joystick);
/external/qemu/distrib/sdl-1.2.12/src/joystick/beos/
DSDL_bejoystick.cc59 BJoystick joystick; in SDL_SYS_JoystickInit() local
66 nports = joystick.CountDevices(); in SDL_SYS_JoystickInit()
71 if ( joystick.GetDeviceName(i, name) == B_OK ) { in SDL_SYS_JoystickInit()
72 if ( joystick.Open(name) != B_ERROR ) { in SDL_SYS_JoystickInit()
74 joystick.GetControllerName(&stick_name); in SDL_SYS_JoystickInit()
79 joystick.Close(); in SDL_SYS_JoystickInit()
97 int SDL_SYS_JoystickOpen(SDL_Joystick *joystick) in SDL_SYS_JoystickOpen() argument
102 joystick->hwdata = (struct joystick_hwdata *) in SDL_SYS_JoystickOpen()
103 SDL_malloc(sizeof(*joystick->hwdata)); in SDL_SYS_JoystickOpen()
104 if ( joystick->hwdata == NULL ) { in SDL_SYS_JoystickOpen()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/joystick/amigaos/
DSDL_sysjoystick.c112 int SDL_SYS_JoystickOpen(SDL_Joystick *joystick) in SDL_SYS_JoystickOpen() argument
115 D(bug("Opening joystick %ld\n",joystick->index)); in SDL_SYS_JoystickOpen()
117 if(!(joystick->hwdata=SDL_malloc(sizeof(struct joystick_hwdata)))) in SDL_SYS_JoystickOpen()
124 temp=ReadJoyPort(joystick->index^1); // fix to invert amiga joyports in SDL_SYS_JoystickOpen()
129 joystick->nbuttons=7; in SDL_SYS_JoystickOpen()
131 joystick->nbuttons=3; in SDL_SYS_JoystickOpen()
133 joystick->nhats=0; in SDL_SYS_JoystickOpen()
134 joystick->nballs=0; in SDL_SYS_JoystickOpen()
135 joystick->naxes=2; in SDL_SYS_JoystickOpen()
136 joystick->hwdata->joystate=0L; in SDL_SYS_JoystickOpen()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/joystick/linux/
DSDL_sysjoystick.c535 static int allocate_hatdata(SDL_Joystick *joystick) in allocate_hatdata() argument
539 joystick->hwdata->hats = (struct hwdata_hat *)SDL_malloc( in allocate_hatdata()
540 joystick->nhats * sizeof(struct hwdata_hat)); in allocate_hatdata()
541 if ( joystick->hwdata->hats == NULL ) { in allocate_hatdata()
544 for ( i=0; i<joystick->nhats; ++i ) { in allocate_hatdata()
545 joystick->hwdata->hats[i].axis[0] = 1; in allocate_hatdata()
546 joystick->hwdata->hats[i].axis[1] = 1; in allocate_hatdata()
551 static int allocate_balldata(SDL_Joystick *joystick) in allocate_balldata() argument
555 joystick->hwdata->balls = (struct hwdata_ball *)SDL_malloc( in allocate_balldata()
556 joystick->nballs * sizeof(struct hwdata_ball)); in allocate_balldata()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/joystick/macos/
DSDL_sysjoystick.c151 int SDL_SYS_JoystickOpen(SDL_Joystick *joystick) in SDL_SYS_JoystickOpen() argument
161 index = joystick->index; in SDL_SYS_JoystickOpen()
164 joystick->hwdata = (struct joystick_hwdata *) SDL_malloc(sizeof(*joystick->hwdata)); in SDL_SYS_JoystickOpen()
165 if (joystick->hwdata == NULL) in SDL_SYS_JoystickOpen()
170 SDL_memset(joystick->hwdata, 0, sizeof(*joystick->hwdata)); in SDL_SYS_JoystickOpen()
171 …SDL_strlcpy(joystick->hwdata->name, SDL_SYS_JoystickName(index), SDL_arraysize(joystick->hwdata->n… in SDL_SYS_JoystickOpen()
172 joystick->name = joystick->hwdata->name; in SDL_SYS_JoystickOpen()
179 joystick->hwdata->refs); in SDL_SYS_JoystickOpen()
190 &(joystick->hwdata->refs[count2])); in SDL_SYS_JoystickOpen()
201 &(joystick->hwdata->refs[count2])); in SDL_SYS_JoystickOpen()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/joystick/riscos/
DSDL_sysjoystick.c88 int SDL_SYS_JoystickOpen(SDL_Joystick *joystick) in SDL_SYS_JoystickOpen() argument
92 if(!(joystick->hwdata=SDL_malloc(sizeof(struct joystick_hwdata)))) in SDL_SYS_JoystickOpen()
95 regs.r[0] = joystick->index; in SDL_SYS_JoystickOpen()
98 joystick->nbuttons=4; in SDL_SYS_JoystickOpen()
100 joystick->nhats=0; in SDL_SYS_JoystickOpen()
101 joystick->nballs=0; in SDL_SYS_JoystickOpen()
102 joystick->naxes=2; in SDL_SYS_JoystickOpen()
103 joystick->hwdata->joystate=0; in SDL_SYS_JoystickOpen()
114 void SDL_SYS_JoystickUpdate(SDL_Joystick *joystick) in SDL_SYS_JoystickUpdate() argument
117 regs.r[0] = joystick->index; in SDL_SYS_JoystickUpdate()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/joystick/dc/
DSDL_sysjoystick.c88 int SDL_SYS_JoystickOpen(SDL_Joystick *joystick) in SDL_SYS_JoystickOpen() argument
91 joystick->hwdata = (struct joystick_hwdata *) SDL_malloc(sizeof(*joystick->hwdata)); in SDL_SYS_JoystickOpen()
92 if (joystick->hwdata == NULL) in SDL_SYS_JoystickOpen()
97 SDL_memset(joystick->hwdata, 0, sizeof(*joystick->hwdata)); in SDL_SYS_JoystickOpen()
100 joystick->nbuttons = MAX_BUTTONS; in SDL_SYS_JoystickOpen()
101 joystick->naxes = MAX_AXES; in SDL_SYS_JoystickOpen()
102 joystick->nhats = MAX_HATS; in SDL_SYS_JoystickOpen()
113 void SDL_SYS_JoystickUpdate(SDL_Joystick *joystick) in SDL_SYS_JoystickUpdate() argument
130 addr = SYS_Joystick_addr[joystick->index]; in SDL_SYS_JoystickUpdate()
134 prev_buttons = joystick->hwdata->prev_buttons; in SDL_SYS_JoystickUpdate()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/joystick/win32/
DSDL_mmjoystick.c190 int SDL_SYS_JoystickOpen(SDL_Joystick *joystick) in SDL_SYS_JoystickOpen() argument
199 index = joystick->index; in SDL_SYS_JoystickOpen()
214 joystick->hwdata = (struct joystick_hwdata *) SDL_malloc(sizeof(*joystick->hwdata)); in SDL_SYS_JoystickOpen()
215 if (joystick->hwdata == NULL) in SDL_SYS_JoystickOpen()
220 SDL_memset(joystick->hwdata, 0, sizeof(*joystick->hwdata)); in SDL_SYS_JoystickOpen()
223 joystick->hwdata->id = SYS_JoystickID[index]; in SDL_SYS_JoystickOpen()
226 joystick->hwdata->transaxis[i].offset = in SDL_SYS_JoystickOpen()
228 joystick->hwdata->transaxis[i].scale = in SDL_SYS_JoystickOpen()
231 joystick->hwdata->transaxis[i].offset = 0; in SDL_SYS_JoystickOpen()
232 joystick->hwdata->transaxis[i].scale = 1.0; /* Just in case */ in SDL_SYS_JoystickOpen()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/joystick/os2/
DSDL_sysjoystick.c327 int SDL_SYS_JoystickOpen(SDL_Joystick *joystick) in SDL_SYS_JoystickOpen() argument
333 joystick->hwdata = (struct joystick_hwdata *) SDL_malloc(sizeof(*joystick->hwdata)); in SDL_SYS_JoystickOpen()
334 if (joystick->hwdata == NULL) in SDL_SYS_JoystickOpen()
340 SDL_memset(joystick->hwdata, 0, sizeof(*joystick->hwdata)); in SDL_SYS_JoystickOpen()
343 index = joystick->index; in SDL_SYS_JoystickOpen()
345 joystick->hwdata->id = SYS_JoyData[index].id; in SDL_SYS_JoystickOpen()
350joystick->hwdata->transaxes[i].offset = ((AXIS_MAX + AXIS_MIN)>>1) - SYS_JoyData[index].axes_med[i… in SDL_SYS_JoystickOpen()
352 joystick->hwdata->transaxes[i].scale1 = (float)abs((AXIS_MIN/SYS_JoyData[index].axes_min[i])); in SDL_SYS_JoystickOpen()
353 joystick->hwdata->transaxes[i].scale2 = (float)abs((AXIS_MAX/SYS_JoyData[index].axes_max[i])); in SDL_SYS_JoystickOpen()
357 joystick->hwdata->transaxes[i].offset = 0; in SDL_SYS_JoystickOpen()
[all …]
/external/qemu/distrib/sdl-1.2.12/include/
DSDL_joystick.h77 extern DECLSPEC int SDLCALL SDL_JoystickIndex(SDL_Joystick *joystick);
82 extern DECLSPEC int SDLCALL SDL_JoystickNumAxes(SDL_Joystick *joystick);
89 extern DECLSPEC int SDLCALL SDL_JoystickNumBalls(SDL_Joystick *joystick);
94 extern DECLSPEC int SDLCALL SDL_JoystickNumHats(SDL_Joystick *joystick);
99 extern DECLSPEC int SDLCALL SDL_JoystickNumButtons(SDL_Joystick *joystick);
122 extern DECLSPEC Sint16 SDLCALL SDL_JoystickGetAxis(SDL_Joystick *joystick, int axis);
140 extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetHat(SDL_Joystick *joystick, int hat);
147 extern DECLSPEC int SDLCALL SDL_JoystickGetBall(SDL_Joystick *joystick, int ball, int *dx, int *dy);
153 extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetButton(SDL_Joystick *joystick, int button);
158 extern DECLSPEC void SDLCALL SDL_JoystickClose(SDL_Joystick *joystick);
/external/qemu/distrib/sdl-1.2.12/src/joystick/mint/
DSDL_sysjoystick.c314 int SDL_SYS_JoystickOpen(SDL_Joystick *joystick) in SDL_SYS_JoystickOpen() argument
318 numjoystick=GetEnabledAtariJoystick(joystick->index); in SDL_SYS_JoystickOpen()
322 joystick->naxes=0; in SDL_SYS_JoystickOpen()
323 joystick->nhats=0; in SDL_SYS_JoystickOpen()
324 joystick->nballs=0; in SDL_SYS_JoystickOpen()
335 joystick->nhats=1; in SDL_SYS_JoystickOpen()
336 joystick->nbuttons=JP_NUM_BUTTONS; in SDL_SYS_JoystickOpen()
341 joystick->naxes=2; in SDL_SYS_JoystickOpen()
342 joystick->nbuttons=2; in SDL_SYS_JoystickOpen()
345 joystick->nhats=1; in SDL_SYS_JoystickOpen()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/joystick/darwin/
DSDL_sysjoystick.c698 int SDL_SYS_JoystickOpen(SDL_Joystick *joystick) in SDL_SYS_JoystickOpen() argument
703 for (index = joystick->index; index > 0; index--) in SDL_SYS_JoystickOpen()
706 joystick->hwdata = device; in SDL_SYS_JoystickOpen()
707 joystick->name = device->product; in SDL_SYS_JoystickOpen()
709 joystick->naxes = device->axes; in SDL_SYS_JoystickOpen()
710 joystick->nhats = device->hats; in SDL_SYS_JoystickOpen()
711 joystick->nballs = 0; in SDL_SYS_JoystickOpen()
712 joystick->nbuttons = device->buttons; in SDL_SYS_JoystickOpen()
722 void SDL_SYS_JoystickUpdate(SDL_Joystick *joystick) in SDL_SYS_JoystickUpdate() argument
724 recDevice *device = joystick->hwdata; in SDL_SYS_JoystickUpdate()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/joystick/dummy/
DSDL_sysjoystick.c55 int SDL_SYS_JoystickOpen(SDL_Joystick *joystick) in SDL_SYS_JoystickOpen() argument
66 void SDL_SYS_JoystickUpdate(SDL_Joystick *joystick) in SDL_SYS_JoystickUpdate() argument
72 void SDL_SYS_JoystickClose(SDL_Joystick *joystick) in SDL_SYS_JoystickClose() argument
/external/quake/quake/src/WinQuake/kit/
DJOYSTICK.TXT3 …ow, due to problems on some systems without joysticks installed. Type "joystick 1" at the console…
11 The joystick support with Windows 95 Quake has been significantly enhanced. Standard joysticks, di…
13joystick or game controller is selected in the Joystick control panel applet and has been calibrat…
17 The standard joystick support has been enhanced to provide the following:
23 The default joystick setting is for joystick left/right movement to control turning and for joystic…
25 …king to running. 'Invert Mouse' allows you to change the direction the joystick has to move to wh…
41 The joystick sensitivity settings and the threshold settings are not saved after you quit your game…
43 If your joystick has a POV hat, the buttons are mapped to AUX29-AUX32. So, you get 8 buttons with …
62 joyadvaxisx - controls mapping of DirectInput axis X (typically joystick left and right)
63 joyadvaxisy - controls mapping of DirectInput axis Y (typically joystick forward and backward)
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/input/
DFlyByCamera.java208 Joystick joystick = joysticks[0]; in registerWithInput() local
209 joystick.assignAxis("FLYCAM_StrafeRight", "FLYCAM_StrafeLeft", JoyInput.AXIS_POV_X); in registerWithInput()
210 joystick.assignAxis("FLYCAM_Forward", "FLYCAM_Backward", JoyInput.AXIS_POV_Y); in registerWithInput()
211 joystick.assignAxis("FLYCAM_Right", "FLYCAM_Left", joystick.getXAxisIndex()); in registerWithInput()
212 joystick.assignAxis("FLYCAM_Down", "FLYCAM_Up", joystick.getYAxisIndex()); in registerWithInput()
238 Joystick joystick = joysticks[0]; in unregisterInput() local
DInputManager.java88 private final JoyInput joystick; field in InputManager
131 public InputManager(MouseInput mouse, KeyInput keys, JoyInput joystick, TouchInput touch) { in InputManager() argument
138 this.joystick = joystick; in InputManager()
143 if (joystick != null) { in InputManager()
144 joystick.setInputListener(this); in InputManager()
145 joysticks = joystick.loadJoysticks(this); in InputManager()
842 if (joystick != null) { in update()
843 joystick.update(); in update()
/external/quake/quake/src/WinQuake/data/
DREADME.TXT349 * Checked for very high joystick values, signalling a failed read
432 Your joystick must be plugged in when Quake is launched.
434 If you have a joystick plugged in, but don't want to use it in Quake
436 doesn't like being tested as a joystick add "-nojoy" to your Quake
439 You can turn off joystick reading during the game by typing "joystick 0" at
445 If your joystick or interface card improperly sets the third or fourth
446 joystick buttons, type "joybuttons 2" at the quake console or in your
449 The "mlook" button command now lets the joystick as well as the mouse control
455 The "invert mouse up/down" menu option also inverts the joystick pitch
DTECHINFO.TXT1597 Non-printable keys such as 'page up' and buttons from the mouse/joystick are
/external/quake/quake/src/WinQuake/
Dwqreadme.txt137 To use the joystick, you must bring down the console by pressing the
138 tilde ('~') key, and type "joystick 1<enter>"; you can disable the
139 joystick with "joystick 0<enter>" at any time. The joystick setting
141 you only need to do joystick 1 once to enable the joystick. If the
142 joystick somehow causes problems that keep you from being able to run
144 joystick for that session.
443 The joystick was enabled by default in earlier versions of
445 forced them to disable the joystick--even some people who didn't
446 have a joystick attached. Since most people don't have joysticks,
447 we've decided to disable the joystick by default, and let people
[all …]
/external/quake/quake/src/QW/docs/
Dqwcl-readme.txt136 To use the joystick, you must bring down the console by pressing the
137 tilde ('~') key, and type "joystick 1<enter>"; you can disable the
138 joystick with "joystick 0<enter>" at any time. The joystick setting
140 you only need to do joystick 1 once to enable the joystick. If the
141 joystick somehow causes problems that keep you from being able to run
143 joystick for that session.
442 The joystick was enabled by default in earlier versions of
444 forced them to disable the joystick--even some people who didn't
445 have a joystick attached. Since most people don't have joysticks,
446 we've decided to disable the joystick by default, and let people
[all …]
/external/qemu/distrib/sdl-1.2.12/
DREADME12 level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL,
/external/qemu/distrib/sdl-1.2.12/src/joystick/bsd/
DSDL_sysjoystick.c394 struct joystick gameport; in SDL_SYS_JoystickUpdate()
/external/jmonkeyengine/
DNOTICE15243 * A joystick represents a single joystick that is installed in the system.