Home
last modified time | relevance | path

Searched refs:joy (Results 126 – 150 of 2159) sorted by relevance

12345678910>>...87

/dports/devel/allegro5/allegro5-5.2.7.0/examples/
H A Dex_haptic.c14 static void test_haptic_joystick(ALLEGRO_JOYSTICK *joy) in test_haptic_joystick() argument
22 haptic = al_get_haptic_from_joystick(joy); in test_haptic_joystick()
114 ALLEGRO_JOYSTICK *joy = al_get_joystick(i); in main() local
115 if (!joy) { in main()
119 if (al_is_joystick_haptic(joy)) { in main()
121 al_get_joystick_name(joy)); in main()
122 test_haptic_joystick(joy); in main()
126 al_get_joystick_name(joy)); in main()
129 al_release_joystick(joy); in main()
H A Dex_joystick_hotplugging.c7 static void print_joystick_info(ALLEGRO_JOYSTICK *joy) in print_joystick_info() argument
11 if (!joy) in print_joystick_info()
14 log_printf("Joystick: '%s'\n", al_get_joystick_name(joy)); in print_joystick_info()
17 n = al_get_joystick_num_buttons(joy); in print_joystick_info()
19 log_printf(" '%s'", al_get_joystick_button_name(joy, i)); in print_joystick_info()
23 n = al_get_joystick_num_sticks(joy); in print_joystick_info()
25 log_printf(" Stick %d: '%s'\n", i, al_get_joystick_stick_name(joy, i)); in print_joystick_info()
27 for (a = 0; a < al_get_joystick_num_axes(joy, i); a++) { in print_joystick_info()
29 a, al_get_joystick_axis_name(joy, i, a)); in print_joystick_info()
/dports/emulators/anese/ANESE-0.9.1/src/ui/SDL2/movies/fm2/
H A Drecord.cc14 memset(&this->joy, 0, sizeof this->joy); in FM2_Record()
46 void FM2_Record::set_joy(uint port, FM2_Controller::Type type, Memory* joy) { in set_joy() argument
48 this->joy[port].type = type; in set_joy()
49 this->joy[port]._mem = joy; in set_joy()
59 uint(this->joy[port].type) in output_header()
74 switch (this->joy[port].type) { in step_frame()
85 buf[i] = this->joy[port].standard->get_button(btn) ? c : '.'; in step_frame()
/dports/emulators/visualboyadvance-m/visualboyadvance-m-VBA-M_Beta_2/src/wx/widgets/wx/
H A Dsdljoy.h34 void Add(int joy = -1);
39 void Remove(int joy = -1);
41 bool IsPolling(int joy);
46 int GetNumAxes(int joy);
49 int GetNumHats(int joy);
52 int GetNumButtons(int joy);
80 unsigned short GetJoy() { return joy; } in GetJoy()
88 unsigned short joy;
/dports/emulators/libretro-vice/vice-libretro-5725415/vice/src/arch/gtk3/
H A DMakefile.am62 joy-osx-hid.c \
63 joy-osx-hidmgr.c \
65 joy-osx.c \
66 joy-unix-usb.c \
67 joy-unix.c \
69 joy-win32.c \
128 joy-osx-hid.h \
130 joy-osx.h \
131 joy-unix.h \
133 joy-win32.h \
[all …]
/dports/emulators/vice/vice-3.5/src/arch/gtk3/
H A DMakefile.am66 joy-osx-hid.c \
67 joy-osx-hidmgr.c \
69 joy-osx.c \
70 joy-unix-usb.c \
71 joy-unix.c \
73 joy-win32.c \
139 joy-osx-hid.h \
141 joy-osx.h \
142 joy-unix.h \
144 joy-win32.h \
[all …]
/dports/games/dodgindiamond2/dd2-0.2.2/src/
H A Dmain.c43 SDL_Joystick *joy[2]={ NULL, NULL }; variable
101 if(player[0].joy && joy[0]) in gameLoop()
105 if(SDL_JoystickGetButton(joy[0], 1)) in gameLoop()
112 if(player[1].joy && joy[1]) in gameLoop()
116 if(SDL_JoystickGetButton(joy[1], 1)) in gameLoop()
147 if(joy[0] && player[0].joy) in gameLoop()
154 if(joy[1] && player[1].joy) in gameLoop()
355 joy[0]=SDL_JoystickOpen(0); in main()
357 joy[1]=SDL_JoystickOpen(1); in main()
445 SDL_JoystickClose(joy[0]); in main()
[all …]
/dports/games/libretro-fceumm/libretro-fceumm-91ccd3b/src/
H A Dinput.c57 static uint8 joy[4] = { 0, 0, 0, 0 }; variable
134 return(joy[0] | joy[1] | joy[2] | joy[3]); in FCEU_GetJoyJoy()
158 ret = ((joy[w] >> (joy_readbit[w])) & 1); in ReadGPVS()
192 joy[0] = *(uint32*)ptr; in UpdateGP()
193 joy[2] = *(uint32*)ptr >> 16; in UpdateGP()
195 joy[1] = *(uint32*)ptr >> 8; in UpdateGP()
196 joy[3] = *(uint32*)ptr >> 24; in UpdateGP()
198 FCEUMOV_AddJoy(joy); in UpdateGP()
228 FCEU_VSUniSwap(&joy[0], &joy[1]); in FCEU_UpdateInput()
366 memset(joy,0,sizeof(joy)); in InitializeInput()
[all …]
/dports/emulators/teo/teo/src/alleg/
H A Dajoyint.c80 if (joy[j].stick[0].axis[0].d1) in ajoyint_Update()
82 else if (joy[j].stick[0].axis[0].d2) in ajoyint_Update()
85 if (joy[j].stick[0].axis[1].d1) in ajoyint_Update()
87 else if (joy[j].stick[0].axis[1].d2) in ajoyint_Update()
97 joystick_Button(j, 0, joy[j].button[0].b ? in ajoyint_Update()
100 if (joy[j].num_buttons>1) in ajoyint_Update()
101 joystick_Button(j, 1, joy[j].button[1].b ? in ajoyint_Update()
/dports/x11/plasma5-plasma-desktop/plasma-desktop-5.23.5/kcms/joystick/
H A Djoywidget.cpp170 JoyDevice *joy = new JoyDevice(dev); in init() local
173 delete joy; in init()
175 joy = new JoyDevice(dev); in init()
178 delete joy; in init()
185 device->addItem(QStringLiteral("%1 (%2)").arg(joy->text()).arg(joy->device())); in init()
192 delete joy; in init()
252 JoyDevice *joy = new JoyDevice(devName); in deviceChanged() local
253 JoyDevice::ErrorCode ret = joy->open(); in deviceChanged()
258 delete joy; in deviceChanged()
263 showDeviceProps(joy); in deviceChanged()
[all …]
/dports/games/OpenLara/OpenLara-b4b19f2/src/
H A Dinput.h31 } joy[INPUT_JOY_COUNT]; variable
116 if (joy[index].down[key] == value) in setJoyDown()
119 joy[index].down[key] = value; in setJoyDown()
122 joy[index].lastKey = key; in setJoyDown()
166 memset(&joy, 0, sizeof(joy)); in reset()
219 …State[j][i] = (c.key != ikNone && down[c.key]) || (c.joy != jkNone && joy[ctrl.joyIndex].down[c.jo… in update()
246 Joystick &joy = Input::joy[Core::settings.controls[0].joyIndex]; in update() local
249 joy.L = vec2(0.0f); in update()
252 joy.L = vec2(0.0f); in update()
286 getTouchDir(touchKey[zMove], joy.L); in update()
[all …]
/dports/games/opensonic/opensnc-src-0.1.4/src/core/
H A Dinput.c88 …if(num_joysticks > 0 && joy[0].num_sticks > 0 && joy[0].stick[0].num_axis >= 2 && joy[0].num_butto… in input_init()
104 joy[0].num_sticks, in input_init()
105 joy[0].num_sticks > 0 ? joy[0].stick[0].num_axis : 0, in input_init()
106 joy[0].num_buttons in input_init()
189 it->data->state[IB_FIRE1] = joy[0].button[0].b; in input_update()
190 it->data->state[IB_FIRE2] = joy[0].button[1].b; in input_update()
191 it->data->state[IB_FIRE3] = joy[0].button[2].b; in input_update()
192 it->data->state[IB_FIRE4] = joy[0].button[3].b; in input_update()
205 it->data->state[IB_FIRE1] |= joy[0].button[0].b; in input_update()
206 it->data->state[IB_FIRE2] |= joy[0].button[1].b; in input_update()
[all …]
/dports/games/OpenLara/OpenLara-b4b19f2/src/platform/xb1/
H A Dmain.cpp95 JoyDevice &joy = joyDevice[i]; in joyUpdate() local
97 if (!joy.gamepad) continue; in joyUpdate()
121 if ((joy.vL != joy.oL || joy.vR != joy.oR) && osGetTimeMS() >= joy.time) { in joyUpdate()
126 joy.oL = joy.vL; in joyUpdate()
127 joy.oR = joy.vR; in joyUpdate()
140 JoyDevice &joy = joyDevice[i]; variable
141 if (joy.gamepad) continue;
142 joy.gamepad = args;
153 if (!joy.gamepad) continue;
154 if (joy.gamepad == args) {
[all …]
/dports/graphics/glfw2/glfw-2.7.9/lib/
H A Djoystick.c42 GLFWAPI int GLFWAPIENTRY glfwGetJoystickParam( int joy, int param ) in glfwGetJoystickParam() argument
49 return _glfwPlatformGetJoystickParam( joy, param ); in glfwGetJoystickParam()
57 GLFWAPI int GLFWAPIENTRY glfwGetJoystickPos( int joy, float *pos, int numaxes ) in glfwGetJoystickPos() argument
72 return _glfwPlatformGetJoystickPos( joy, pos, numaxes ); in glfwGetJoystickPos()
80 GLFWAPI int GLFWAPIENTRY glfwGetJoystickButtons( int joy, in glfwGetJoystickButtons() argument
97 return _glfwPlatformGetJoystickButtons( joy, buttons, numbuttons ); in glfwGetJoystickButtons()
/dports/games/libretro-fbneo/FBNeo-bbe3c05/src/intf/input/pi/
H A Dinp_pi.cpp43 #define JOY_MAP_DIR(joy,dir) ((((joy)&0xff)<<8)|((dir)&0x3)) argument
44 #define JOY_MAP_BUTTON(joy,button) ((((joy)&0xff)<<8)|(((button)+4)&0x1f)) argument
277 for (int joy = 0; joy < joyCount; joy++) { in scanJoysticks() local
278 joyButtonStates[joy] = 0; in scanJoysticks()
279 SDL_Joystick *joystick = JoyList[joy]; in scanJoysticks()
292 joyButtonStates[joy] |= (dirStates[i] << i); in scanJoysticks()
306 joyButtonStates[joy] |= ((state & 1) << shift); in scanJoysticks()
314 if (joyButtonStates[joy] != 0) { in scanJoysticks()
319 if (oldButtonStates[joy] != joyButtonStates[joy]) { in scanJoysticks()
323 *ch = ((joyButtonStates[joy] >> i) & 1) + '0'; in scanJoysticks()
[all …]
/dports/emulators/uae/uae-0.8.29/src/od-amiga/
H A Djoystick.c30 int bot, right, top, left, joy,fire; in read_joystick() local
36 joy = custom->joy1dat; in read_joystick()
39 right = (joy & 0x0002) ? 1 : 0; in read_joystick()
40 left = (joy & 0x0200) ? 1 : 0; in read_joystick()
41 bot = (joy & 0x0001) ? 1 : 0; in read_joystick()
42 top = (joy & 0x0100) ? 1 : 0; in read_joystick()
/dports/games/openlierox/OpenLieroX/src/client/
H A DCInput.cpp238 return SDL_JoystickGetAxis(joy, axis_Y); in getJoystickControlValue()
240 return SDL_JoystickGetAxis(joy, axis_Y); in getJoystickControlValue()
264 SDL_Joystick *joy = joys[j_index]; in checkJoystickState() local
266 if(joy == NULL) return false; in checkJoystickState()
273 val = SDL_JoystickGetAxis(joy, axis_Y); in checkJoystickState()
278 val = SDL_JoystickGetAxis(joy, axis_Y); in checkJoystickState()
283 val = SDL_JoystickGetAxis(joy, axis_X); in checkJoystickState()
288 val = SDL_JoystickGetAxis(joy, axis_X); in checkJoystickState()
293 if(SDL_JoystickGetButton(joy,extra)) in checkJoystickState()
297 val = SDL_JoystickGetAxis(joy, axis_Z); in checkJoystickState()
[all …]
/dports/games/openomf/openomf-c36c421/src/
H A Dmain.c178 SDL_Joystick *joy; in main() local
181 joy = SDL_JoystickOpen(i); in main()
182 if (joy) { in main()
183 SDL_JoystickGUID guid = SDL_JoystickGetGUID(joy); in main()
187 INFO(" * Number of Axes: %d", SDL_JoystickNumAxes(joy)); in main()
188 INFO(" * Number of Buttons: %d", SDL_JoystickNumButtons(joy)); in main()
189 INFO(" * Number of Balls: %d", SDL_JoystickNumBalls(joy)); in main()
190 INFO(" * Number of Hats: %d", SDL_JoystickNumHats(joy)); in main()
196 if (SDL_JoystickGetAttached(joy)) { in main()
197 SDL_JoystickClose(joy); in main()
/dports/devel/liblouis/liblouis-3.20.0/tests/yaml/
H A Dface-with-tears-of-joy-ucs4.yaml9 - '"<face with tears of joy">'
11 - 'a "<face with tears of joy">'
13 - '"<face with tears of joy"> b'
15 - 'a "<face with tears of joy"> b'
17 - 'before "<face with tears of joy">'
19 - '"<face with tears of joy"> after'
21 - 'before "<face with tears of joy"> after'
/dports/games/libretro-yabause/yabause-ea5b118/yabause/src/
H A Dmacjoy.h82 int joy_open_joystick(joydata_t *joy);
85 int joy_close_joystick(joydata_t *joy);
89 int joy_read_element(joydata_t *joy, joy_elemdata_t *elem);
92 int joy_read_button(joydata_t *joy, int num);
96 int joy_read_axis(joydata_t *joy, int index);
99 int joy_read_hat(joydata_t *joy, int index);
/dports/devel/allegro5/allegro5-5.2.7.0/src/win/
H A Dwhapall.c163 static bool hapall_is_joystick_haptic(ALLEGRO_JOYSTICK *joy) in hapall_is_joystick_haptic() argument
166 ASSERT(joy->driver); in hapall_is_joystick_haptic()
168 if (joy->driver == &_al_joydrv_xinput) { in hapall_is_joystick_haptic()
169 dx_ok = _al_hapdrv_xinput.is_joystick_haptic(joy); in hapall_is_joystick_haptic()
171 else if (joy->driver == &_al_joydrv_directx) { in hapall_is_joystick_haptic()
172 xi_ok = _al_hapdrv_directx.is_joystick_haptic(joy); in hapall_is_joystick_haptic()
209 if (!al_is_joystick_haptic(joy)) in hapall_get_from_joystick()
214 if (joy->driver == &_al_joydrv_xinput) { in hapall_get_from_joystick()
215 haptic = _al_hapdrv_xinput.get_from_joystick(joy); in hapall_get_from_joystick()
220 else if (joy->driver == &_al_joydrv_directx) { in hapall_get_from_joystick()
[all …]
/dports/devel/godot/godot-3.2.3-stable/platform/android/java/lib/src/org/godotengine/godot/input/
H A DGodotInputHandler.java167 Joystick joy = joysticksDevices.get(device_id); in onGenericMotionEvent() local
169 for (int i = 0; i < joy.axes.size(); i++) { in onGenericMotionEvent()
170 InputDevice.MotionRange range = joy.axes.get(i); in onGenericMotionEvent()
181 for (int i = 0; i < joy.hats.size(); i += 2) { in onGenericMotionEvent()
235 Joystick joy = new Joystick(); in onInputDeviceAdded() local
236 joy.device_id = deviceId; in onInputDeviceAdded()
237 joy.name = device.getName(); in onInputDeviceAdded()
246 joy.hats.add(range); in onInputDeviceAdded()
248 joy.axes.add(range); in onInputDeviceAdded()
252 joysticksDevices.add(joy); in onInputDeviceAdded()
[all …]
/dports/devel/godot-tools/godot-3.2.3-stable/platform/android/java/lib/src/org/godotengine/godot/input/
H A DGodotInputHandler.java167 Joystick joy = joysticksDevices.get(device_id); in onGenericMotionEvent() local
169 for (int i = 0; i < joy.axes.size(); i++) { in onGenericMotionEvent()
170 InputDevice.MotionRange range = joy.axes.get(i); in onGenericMotionEvent()
181 for (int i = 0; i < joy.hats.size(); i += 2) { in onGenericMotionEvent()
235 Joystick joy = new Joystick(); in onInputDeviceAdded() local
236 joy.device_id = deviceId; in onInputDeviceAdded()
237 joy.name = device.getName(); in onInputDeviceAdded()
246 joy.hats.add(range); in onInputDeviceAdded()
248 joy.axes.add(range); in onInputDeviceAdded()
252 joysticksDevices.add(joy); in onInputDeviceAdded()
[all …]
/dports/graphics/glx-utils/demos-5435fc7fbd332e171da9a71e33a9b190e9462cf0/src/demos/
H A Dtunnel.c343 JOYINFO joy; in dojoy() local
350 if (max[0] < joy.wXpos) in dojoy()
351 max[0] = joy.wXpos; in dojoy()
352 if (min[0] > joy.wXpos) in dojoy()
353 min[0] = joy.wXpos; in dojoy()
356 if (max[1] < joy.wYpos) in dojoy()
357 max[1] = joy.wYpos; in dojoy()
358 if (min[1] > joy.wYpos) in dojoy()
359 min[1] = joy.wYpos; in dojoy()
369 if (joy.wButtons & JOY_BUTTON1) in dojoy()
[all …]
/dports/graphics/mesa-demos/mesa-demos-8.4.0/src/demos/
H A Dtunnel.c343 JOYINFO joy; in dojoy() local
350 if (max[0] < joy.wXpos) in dojoy()
351 max[0] = joy.wXpos; in dojoy()
352 if (min[0] > joy.wXpos) in dojoy()
353 min[0] = joy.wXpos; in dojoy()
356 if (max[1] < joy.wYpos) in dojoy()
357 max[1] = joy.wYpos; in dojoy()
358 if (min[1] > joy.wYpos) in dojoy()
359 min[1] = joy.wYpos; in dojoy()
369 if (joy.wButtons & JOY_BUTTON1) in dojoy()
[all …]

12345678910>>...87