Home
last modified time | relevance | path

Searched refs:joy (Results 176 – 200 of 2159) sorted by relevance

12345678910>>...87

/dports/emulators/joytran/joytran-0.9.5.2/src/
H A Ddetect_joysticks.c20 SDL_Joystick *joy = SDL_JoystickOpen(i); in detect_joysticks() local
21 int num_axes = SDL_JoystickNumAxes(joy); in detect_joysticks()
22 int num_hats = SDL_JoystickNumHats(joy); in detect_joysticks()
23 int num_btns = SDL_JoystickNumButtons(joy); in detect_joysticks()
40 joys[j] = joy; dev_map[i] = j; j++; } in detect_joysticks()
/dports/devel/emscripten/emscripten-2.0.3/tests/
H A Dtest_glfw_joystick.c23 void joystick_callback(int joy, int event) in joystick_callback() argument
26 printf("Joystick %d was connected: %s\n", joy, glfwGetJoystickName(joy)); in joystick_callback()
27 joy_connected = joy; // use the most recently connected joystick in joystick_callback()
29 printf("Joystick %d was disconnected\n", joy); in joystick_callback()
30 if (joy == joy_connected) joy_connected = -1; in joystick_callback()
/dports/devel/allegro5/allegro5-5.2.7.0/src/win/
H A Dwjoyxi.c85 static void joyxi_release_joystick(ALLEGRO_JOYSTICK *joy);
87 static const char *joyxi_get_name(ALLEGRO_JOYSTICK *joy);
88 static bool joyxi_get_active(ALLEGRO_JOYSTICK *joy);
299 event.joystick.id = (ALLEGRO_JOYSTICK *)&joy->parent; in joyxi_generate_axis_event()
328 event.joystick.id = (ALLEGRO_JOYSTICK *)joy; in joyxi_generate_button_event()
686 static void joyxi_release_joystick(ALLEGRO_JOYSTICK *joy) in joyxi_release_joystick() argument
689 (void)joy; in joyxi_release_joystick()
694 ALLEGRO_JOYSTICK_XINPUT *xjoy = (ALLEGRO_JOYSTICK_XINPUT *)joy; in joyxi_get_joystick_state()
705 static const char *joyxi_get_name(ALLEGRO_JOYSTICK *joy) in joyxi_get_name() argument
707 ALLEGRO_JOYSTICK_XINPUT *xjoy = (ALLEGRO_JOYSTICK_XINPUT *)joy; in joyxi_get_name()
[all …]
/dports/graphics/glx-utils/demos-5435fc7fbd332e171da9a71e33a9b190e9462cf0/src/demos/
H A Dterrain.c324 JOYINFO joy; in dojoy() local
331 if (max[0] < joy.wXpos) in dojoy()
332 max[0] = joy.wXpos; in dojoy()
333 if (min[0] > joy.wXpos) in dojoy()
334 min[0] = joy.wXpos; in dojoy()
337 if (max[1] < joy.wYpos) in dojoy()
338 max[1] = joy.wYpos; in dojoy()
339 if (min[1] > joy.wYpos) in dojoy()
340 min[1] = joy.wYpos; in dojoy()
350 if (joy.wButtons & JOY_BUTTON1) in dojoy()
[all …]
H A Dipers.c403 JOYINFO joy; in dojoy() local
410 if (max[0] < joy.wXpos) in dojoy()
411 max[0] = joy.wXpos; in dojoy()
412 if (min[0] > joy.wXpos) in dojoy()
413 min[0] = joy.wXpos; in dojoy()
416 if (max[1] < joy.wYpos) in dojoy()
417 max[1] = joy.wYpos; in dojoy()
418 if (min[1] > joy.wYpos) in dojoy()
419 min[1] = joy.wYpos; in dojoy()
429 if (joy.wButtons & JOY_BUTTON1) in dojoy()
[all …]
/dports/graphics/mesa-demos/mesa-demos-8.4.0/src/demos/
H A Dterrain.c324 JOYINFO joy; in dojoy() local
331 if (max[0] < joy.wXpos) in dojoy()
332 max[0] = joy.wXpos; in dojoy()
333 if (min[0] > joy.wXpos) in dojoy()
334 min[0] = joy.wXpos; in dojoy()
337 if (max[1] < joy.wYpos) in dojoy()
338 max[1] = joy.wYpos; in dojoy()
339 if (min[1] > joy.wYpos) in dojoy()
340 min[1] = joy.wYpos; in dojoy()
350 if (joy.wButtons & JOY_BUTTON1) in dojoy()
[all …]
H A Dipers.c403 JOYINFO joy; in dojoy() local
410 if (max[0] < joy.wXpos) in dojoy()
411 max[0] = joy.wXpos; in dojoy()
412 if (min[0] > joy.wXpos) in dojoy()
413 min[0] = joy.wXpos; in dojoy()
416 if (max[1] < joy.wYpos) in dojoy()
417 max[1] = joy.wYpos; in dojoy()
418 if (min[1] > joy.wYpos) in dojoy()
419 min[1] = joy.wYpos; in dojoy()
429 if (joy.wButtons & JOY_BUTTON1) in dojoy()
[all …]
/dports/emulators/fs-uae/fs-uae-3.1.35/src/
H A Dinputdevice.cpp2845 mouse_x[joy] = (mouse_x[joy] & 0xfc) | cntx; in joymousecounter()
2851 mouse_y[joy] = (mouse_y[joy] & 0xfc) | cnty; in joymousecounter()
2854 mouse_frame_x[joy] = mouse_x[joy]; in joymousecounter()
2855 mouse_frame_y[joy] = mouse_y[joy]; in joymousecounter()
3009 for (joy = 0; joy < 2; joy++) { in cap_check()
3038 …if ((is_joystick_pullup (joy) && digital_port[joy][i]) || (is_mouse_pullup (joy) && mouse_port[joy in cap_check()
3059 if ((digital_port[joy][i] || mouse_port[joy]) && pot_dat_act[joy][i] == 2) { in cap_check()
4345 int left = oleft[joy], right = oright[joy], top = otop[joy], bot = obot[joy]; in handle_input_event()
4440 if (joy == 0 || joy == 1) in handle_input_event()
6242 for (joy = 0; used[joy]; joy++); in compatibility_copy()
[all …]
/dports/devel/allegro/allegro-4.4.3.1/docs/src/
H A Dapi._tx212 joy_x (joy).
214 joy_y (joy).
220 joy_up (joy).
224 joy_b1 (joy).
226 joy_b2 (joy).
228 joy_b3 (joy).
230 joy_b4 (joy).
232 joy_b5 (joy).
234 joy_b6 (joy).
236 joy_b7 (joy).
[all …]
/dports/games/rottdc/rottdc-1.0-2/rott/
H A Drt_in.c747 if (joy < sdl_total_sticks) in IN_GetJoyAbs()
782 IN_GetJoyAbs (joy, &x, &y); in INL_GetJoyDelta()
783 def = JoyDefs + joy; in INL_GetJoyDelta()
848 if (joy < sdl_total_sticks) in INL_GetJoyButtons()
933 def = &JoyDefs[joy]; in INL_SetJoyScale()
954 def = &JoyDefs[joy]; in IN_SetupJoy()
970 INL_SetJoyScale (joy); in IN_SetupJoy()
1005 sdl_joysticks[joy] = SDL_JoystickOpen (joy); in INL_StartJoy()
1035 void INL_ShutJoy (word joy) in INL_ShutJoy() argument
1037 JoysPresent[joy] = false; in INL_ShutJoy()
[all …]
/dports/games/vitetris/vitetris-0.59.1/src/input/
H A Dinp_allegro.c294 if (joy[i].stick[0].axis[j].d1 == joy[i].stick[0].axis[j].d2) in readaxis()
296 else if (joy[i].stick[0].axis[j].d1) { in readaxis()
327 for (a=0; a < 32 && a < joy[i].num_buttons; a++) { in js_readbtn()
328 if (!joy[i].button[a].b) in js_readbtn()
355 if (n > joy[i].num_buttons) in js_pressed()
356 n = joy[i].num_buttons; in js_pressed()
376 if (n > joy[i].num_buttons) in js_autorep()
377 n = joy[i].num_buttons; in js_autorep()
391 if (n > joy[i].num_buttons) in js_reset_drop()
392 n = joy[i].num_buttons; in js_reset_drop()
/dports/emulators/uae/uae-0.8.29/src/od-generic/
H A Djoystick.c45 static char *get_joystick_name (int joy) in get_joystick_name() argument
50 static int get_joystick_widget_num (int joy) in get_joystick_widget_num() argument
55 static int get_joystick_widget_type (int joy, int num, char *name, uae_u32 *code) in get_joystick_widget_type() argument
60 static int get_joystick_widget_first (int joy, int type) in get_joystick_widget_first() argument
/dports/games/nexuiz/Nexuiz/sources/darkplaces/
H A Dvid_sdl.c255 static double IN_JoystickGetAxis(SDL_Joystick *joy, int axis, double sensitivity, double deadzone) in IN_JoystickGetAxis() argument
258 if (axis < 0 || axis >= SDL_JoystickNumAxes(joy)) in IN_JoystickGetAxis()
260 value = SDL_JoystickGetAxis(joy, axis) * (1.0 / 32767.0); in IN_JoystickGetAxis()
309 SDL_Joystick *joy = vid_joysticks[joy_index.integer]; in IN_Move() local
310 int numballs = SDL_JoystickNumBalls(joy); in IN_Move()
313 SDL_JoystickGetBall(joy, j, &x, &y); in IN_Move()
319 …cl.cmd.upmove += IN_JoystickGetAxis(joy, joy_axisup.integer, joy_sensitivityup.value, joy_dea… in IN_Move()
775 SDL_Joystick *joy; in VID_InitMode() local
776 joy = vid_joysticks[i] = SDL_JoystickOpen(i); in VID_InitMode()
777 if (!joy) in VID_InitMode()
[all …]
/dports/devel/allegro5/allegro5-5.2.7.0/src/sdl/
H A Dsdl_joystick.c152 static void sdl_release_joystick(ALLEGRO_JOYSTICK *joy) in sdl_release_joystick() argument
154 ASSERT(joy); in sdl_release_joystick()
157 static void sdl_get_joystick_state(ALLEGRO_JOYSTICK *joy, in sdl_get_joystick_state() argument
163 SDL_Joystick *sdl = get_sdl(joy); in sdl_get_joystick_state()
175 static const char *sdl_get_name(ALLEGRO_JOYSTICK *joy) in sdl_get_name() argument
177 SDL_Joystick *sdl = get_sdl(joy); in sdl_get_name()
181 static bool sdl_get_active(ALLEGRO_JOYSTICK *joy) in sdl_get_active() argument
183 SDL_Joystick *sdl = get_sdl(joy); in sdl_get_active()
/dports/emulators/mess/mame-mame0226/src/devices/bus/vsmile/
H A Dmat.cpp104 uint8_t const joy = m_io_joy->read(); in INPUT_CHANGED_MEMBER() local
105 if ((joy ^ m_sent_joy) & 0x03) in INPUT_CHANGED_MEMBER()
107 if (BIT(joy, 0)) in INPUT_CHANGED_MEMBER()
109 else if (BIT(joy, 1)) in INPUT_CHANGED_MEMBER()
114 if ((joy ^ m_sent_joy) & 0x0c) in INPUT_CHANGED_MEMBER()
116 if (BIT(joy, 2)) in INPUT_CHANGED_MEMBER()
118 else if (BIT(joy, 3)) in INPUT_CHANGED_MEMBER()
123 m_sent_joy = joy; in INPUT_CHANGED_MEMBER()
/dports/emulators/mame/mame-mame0226/src/devices/bus/vsmile/
H A Dmat.cpp104 uint8_t const joy = m_io_joy->read(); in INPUT_CHANGED_MEMBER() local
105 if ((joy ^ m_sent_joy) & 0x03) in INPUT_CHANGED_MEMBER()
107 if (BIT(joy, 0)) in INPUT_CHANGED_MEMBER()
109 else if (BIT(joy, 1)) in INPUT_CHANGED_MEMBER()
114 if ((joy ^ m_sent_joy) & 0x0c) in INPUT_CHANGED_MEMBER()
116 if (BIT(joy, 2)) in INPUT_CHANGED_MEMBER()
118 else if (BIT(joy, 3)) in INPUT_CHANGED_MEMBER()
123 m_sent_joy = joy; in INPUT_CHANGED_MEMBER()
/dports/emulators/anese/ANESE-0.9.1/src/nes/
H A Dnes.cc27 /* joy */ this->joy in NES()
33 joy(), in NES()
69 void NES::attach_joy(uint port, Memory* joy) { this->joy.attach_joy(port, joy); } in attach_joy() argument
70 void NES::detach_joy(uint port) { this->joy.detach_joy(port); } in detach_joy()
/dports/games/zdoom/zdoom-2.8.1/src/menu/
H A Djoystickmenu.cpp61 FOptionMenuDescriptor *UpdateJoystickConfigMenu(IJoystickConfig *joy);
251 FOptionMenuItemJoyConfigMenu(const char *label, IJoystickConfig *joy) in FOptionMenuItemJoyConfigMenu() argument
254 mJoy = joy; in FOptionMenuItemJoyConfigMenu()
271 FOptionMenuDescriptor *UpdateJoystickConfigMenu(IJoystickConfig *joy) in UpdateJoystickConfigMenu() argument
283 if (joy == NULL) in UpdateJoystickConfigMenu()
291 opt->mTitle.Format("Configure %s", joy->GetName().GetChars()); in UpdateJoystickConfigMenu()
293 SELECTED_JOYSTICK = joy; in UpdateJoystickConfigMenu()
300 if (joy->GetNumAxes() > 0) in UpdateJoystickConfigMenu()
305 for (int i = 0; i < joy->GetNumAxes(); ++i) in UpdateJoystickConfigMenu()
310 it = new FOptionMenuItemJoyMap(joy->GetAxisName(i), i, "JoyAxisMapNames", false); in UpdateJoystickConfigMenu()
/dports/emulators/frodo/Frodo-4.1b/Src/
H A DC64_Acorn.i161 uint8 joy; in poll_joystick() local
165 if (state == -1) {joy = joystate[port];} // use old value in poll_joystick()
168 joy = 0xff; in poll_joystick()
169 if ((state & (JoyButton1 + JoyButton2)) != 0) {joy &= 0xef;} // fire in poll_joystick()
172 if ((state & 0xff) >= JoyDir_Thresh) {joy &= 0xfe;} // up in poll_joystick()
176 if ((256 - (state & 0xff)) >= JoyDir_Thresh) {joy &= 0xfd;} // down in poll_joystick()
180 if ((state & 0xff00) >= JoyDir_Thresh<<8) {joy &= 0xf7;} // right in poll_joystick()
184 if ((0x10000 - (state & 0xff00)) >= JoyDir_Thresh<<8) {joy &= 0xfb;} // left in poll_joystick()
187 joystate[port] = joy; return(joy); in poll_joystick()
/dports/games/brumbrumrally/brumbrumrally-0.7/src/
H A DJoystickDevice.cpp55 joy = SDL_JoystickOpen(i); in JoystickDevice()
60 if (joy) in ~JoystickDevice()
62 SDL_JoystickClose(joy); in ~JoystickDevice()
73 return new JoystickDriver(name, joy); in createDriver()
/dports/games/crrcsim/crrcsim-0.9.13/src/
H A Dmouse_kbd.cpp187 joy = SDL_JoystickOpen(joystick_n); in openJoystick()
188 if (joy) in openJoystick()
192 printf("Number of Axes: %d\n", SDL_JoystickNumAxes(joy)); in openJoystick()
224 joy = (SDL_Joystick*)0; in TInputDev()
350 if (joy != (SDL_Joystick*)0) in closeJoystick()
352 SDL_JoystickClose(joy); in closeJoystick()
353 joy = (SDL_Joystick*)0; in closeJoystick()
360 if (joy != NULL) in getJoystickNumAxes()
362 return SDL_JoystickNumAxes(joy); in getJoystickNumAxes()
376 if (joy != NULL) in getJoystickNumButtons()
[all …]
/dports/games/craft/Craft-1.0fbsd/deps/glfw/src/
H A Dcocoa_joystick.m220 int joy;
222 for (joy = 0; joy <= GLFW_JOYSTICK_LAST; joy++)
291 int joy = 0;
432 joy++;
433 if (joy > GLFW_JOYSTICK_LAST)
456 int _glfwPlatformJoystickPresent(int joy)
460 return _glfw.ns.joysticks[joy].present;
465 _GLFWjoy* joystick = _glfw.ns.joysticks + joy;
478 _GLFWjoy* joystick = _glfw.ns.joysticks + joy;
490 const char* _glfwPlatformGetJoystickName(int joy)
[all …]
/dports/games/alex4/alex4src/src/
H A Dcontrol.c58 if (joy[0].stick[0].axis[1].d1) c->flags |= K_UP; in poll_control()
59 if (joy[0].stick[0].axis[1].d2) c->flags |= K_DOWN; in poll_control()
60 if (joy[0].stick[0].axis[0].d1) c->flags |= K_LEFT; in poll_control()
61 if (joy[0].stick[0].axis[0].d2) c->flags |= K_RIGHT; in poll_control()
62 if (joy[0].button[1].b) c->flags |= K_FIRE; in poll_control()
63 if (joy[0].button[0].b) c->flags |= K_JUMP; in poll_control()
/dports/devel/allegro/allegro-4.4.3.1/demos/shooter/
H A Dgame.c45 if ((joy[0].button[0].b) || (joy[0].button[1].b)) in fade_intro_item()
117 if ((key[KEY_LEFT]) || (joy[0].stick[0].axis[0].d1)) { in move_everyone()
122 else if ((key[KEY_RIGHT]) || (joy[0].stick[0].axis[0].d2)) { in move_everyone()
160 if ((key[KEY_UP]) || (joy[0].stick[0].axis[1].d1)) { in move_everyone()
228 (joy[0].button[0].b) || (joy[0].button[1].b)) { in move_everyone()
432 if ((!keypressed()) && (!joy[0].button[0].b) && (!joy[0].button[1].b)) { in play_game()
497 keypressed() || joy[0].button[0].b || joy[0].button[1].b))) in play_game()
/dports/games/nxengine/nxengine-evo-2.6.5-1/src/
H A Dinput.cpp18 SDL_Joystick *joy; variable
112 joy = SDL_JoystickOpen(0); in input_init()
114 if (joy) in input_init()
118 LOG_INFO("Number of Axes: {}", SDL_JoystickNumAxes(joy)); in input_init()
119 LOG_INFO("Number of Buttons: {}", SDL_JoystickNumButtons(joy)); in input_init()
120 LOG_INFO("Number of Balls: {}", SDL_JoystickNumBalls(joy)); in input_init()
133 SDL_JoystickRumble(joy, 0xFFFF * str, 0xFFFF * str, len); in rumble()
404 for (int ax = 0; ax < SDL_JoystickNumAxes(joy); ax++) in input_poll()
406 int value = SDL_JoystickGetAxis(joy, ax); in input_poll()
417 if (SDL_JoystickGetAttached(joy)) in input_close()
[all …]

12345678910>>...87