/dports/games/zdoom/zdoom-2.8.1/src/ |
H A D | m_joy.cpp | 62 id += joy->GetIdentifier(); in M_SetJoystickConfigSection() 79 joy->SetDefaultConfig(); in M_LoadJoystickConfig() 87 joy->SetSensitivity((float)atof(value)); in M_LoadJoystickConfig() 89 numaxes = joy->GetNumAxes(); in M_LoadJoystickConfig() 117 joy->SetAxisMap(i, gameaxis); in M_LoadJoystickConfig() 136 if (M_SetJoystickConfigSection(joy, true)) in M_SaveJoystickConfig() 139 if (!joy->IsSensitivityDefault()) in M_SaveJoystickConfig() 144 numaxes = joy->GetNumAxes(); in M_SaveJoystickConfig() 149 if (!joy->IsAxisDeadZoneDefault(i)) in M_SaveJoystickConfig() 155 if (!joy->IsAxisScaleDefault(i)) in M_SaveJoystickConfig() [all …]
|
/dports/emulators/libretro-vice/vice-libretro-5725415/vice/src/arch/gtk3/ |
H A D | joy-osx-hid.h | 71 int joy_hid_map_device(struct joystick_descriptor *joy, joy_hid_device_t *device); 72 void joy_hid_unmap_device(struct joystick_descriptor *joy); 76 int joy_hid_assign_axis(struct joystick_descriptor *joy, int id, int usage, int logical); 77 int joy_hid_detect_axis(struct joystick_descriptor *joy, int id, int logical); 78 int joy_hid_read_axis(struct joystick_descriptor *joy,int id,int *value, int logical); 82 int joy_hid_assign_button(struct joystick_descriptor *joy, int id, int usage); 83 int joy_hid_detect_button(struct joystick_descriptor *joy); 84 int joy_hid_read_button(struct joystick_descriptor *joy, int id, int *value); 87 int joy_hid_assign_hat_switch(struct joystick_descriptor *joy, int serial); 88 int joy_hid_detect_hat_switch(struct joystick_descriptor *joy); [all …]
|
/dports/graphics/wdune/wdune-1.926/src/SDLjoystick/bsd/ |
H A D | SDL_sysjoystick.c | 207 joy->hwdata = hw; in SDL_SYS_JoystickOpen() 238 joy->naxes = 0; in SDL_SYS_JoystickOpen() 239 joy->nbuttons = 0; in SDL_SYS_JoystickOpen() 240 joy->nhats = 0; in SDL_SYS_JoystickOpen() 241 joy->nballs = 0; in SDL_SYS_JoystickOpen() 276 joy->naxes++; in SDL_SYS_JoystickOpen() 281 joy->nbuttons++; in SDL_SYS_JoystickOpen() 313 rep = &joy->hwdata->inreport; in SDL_SYS_JoystickUpdate() 389 close(joy->hwdata->fd); in SDL_SYS_JoystickClose() 390 free(joy->hwdata->path); in SDL_SYS_JoystickClose() [all …]
|
/dports/emulators/mess/mame-mame0226/3rdparty/SDL2/src/joystick/bsd/ |
H A D | SDL_sysjoystick.c | 305 joy->hwdata = hw; 310 joy->naxes = 2; 311 joy->nbuttons = 2; 312 joy->nhats = 0; 313 joy->nballs = 0; 389 joy->naxes = 0; 390 joy->nbuttons = 0; 391 joy->nhats = 0; 392 joy->nballs = 0; 444 if (joy->naxes == 0 && joy->nbuttons == 0 && joy->nhats == 0 && joy->nballs == 0) { [all …]
|
/dports/emulators/mame/mame-mame0226/3rdparty/SDL2/src/joystick/bsd/ |
H A D | SDL_sysjoystick.c | 305 joy->hwdata = hw; 310 joy->naxes = 2; 311 joy->nbuttons = 2; 312 joy->nhats = 0; 313 joy->nballs = 0; 389 joy->naxes = 0; 390 joy->nbuttons = 0; 391 joy->nhats = 0; 392 joy->nballs = 0; 444 if (joy->naxes == 0 && joy->nbuttons == 0 && joy->nhats == 0 && joy->nballs == 0) { [all …]
|
/dports/graphics/urho3d/Urho3D-1.7.1/Source/ThirdParty/SDL/src/joystick/bsd/ |
H A D | SDL_sysjoystick.c | 305 joy->hwdata = hw; 310 joy->naxes = 2; 311 joy->nbuttons = 2; 312 joy->nhats = 0; 313 joy->nballs = 0; 389 joy->naxes = 0; 390 joy->nbuttons = 0; 391 joy->nhats = 0; 392 joy->nballs = 0; 444 if (joy->naxes == 0 && joy->nbuttons == 0 && joy->nhats == 0 && joy->nballs == 0) { [all …]
|
/dports/devel/sdl20/SDL2-2.0.18/src/joystick/bsd/ |
H A D | SDL_bsdjoystick.c | 372 joy->hwdata = hw; 377 joy->naxes = 2; 378 joy->nbuttons = 2; 379 joy->nhats = 0; 380 joy->nballs = 0; 454 joy->naxes = 0; 455 joy->nbuttons = 0; 456 joy->nhats = 0; 457 joy->nballs = 0; 513 if (joy->naxes == 0 && joy->nbuttons == 0 && joy->nhats == 0 && joy->nballs == 0) { [all …]
|
/dports/x11/controllermap/SDL2-2.0.18/src/joystick/bsd/ |
H A D | SDL_bsdjoystick.c | 372 joy->hwdata = hw; 377 joy->naxes = 2; 378 joy->nbuttons = 2; 379 joy->nhats = 0; 380 joy->nballs = 0; 454 joy->naxes = 0; 455 joy->nbuttons = 0; 456 joy->nhats = 0; 457 joy->nballs = 0; 513 if (joy->naxes == 0 && joy->nbuttons == 0 && joy->nhats == 0 && joy->nballs == 0) { [all …]
|
/dports/graphics/glfw2/glfw-2.7.9/lib/win32/ |
H A D | win32_joystick.c | 42 static int _glfwJoystickPresent( int joy ) in _glfwJoystickPresent() argument 54 if( joy < GLFW_JOYSTICK_1 || joy > GLFW_JOYSTICK_16 ) in _glfwJoystickPresent() 91 int _glfwPlatformGetJoystickParam( int joy, int param ) in _glfwPlatformGetJoystickParam() argument 98 if( !_glfwJoystickPresent( joy ) ) in _glfwPlatformGetJoystickParam() 110 _glfw_joyGetDevCaps( joy - GLFW_JOYSTICK_1, &jc, sizeof(JOYCAPS) ); in _glfwPlatformGetJoystickParam() 134 int _glfwPlatformGetJoystickPos( int joy, float *pos, int numaxes ) in _glfwPlatformGetJoystickPos() argument 143 if( !_glfwJoystickPresent( joy ) ) in _glfwPlatformGetJoystickPos() 155 _glfw_joyGetPosEx( joy - GLFW_JOYSTICK_1, &ji ); in _glfwPlatformGetJoystickPos() 199 int _glfwPlatformGetJoystickButtons( int joy, unsigned char *buttons, in _glfwPlatformGetJoystickButtons() argument 209 if( !_glfwJoystickPresent( joy ) ) in _glfwPlatformGetJoystickButtons() [all …]
|
/dports/games/openomf/openomf-c36c421/src/controller/ |
H A D | joystick.c | 16 SDL_GameControllerClose(k->joy); in joystick_free() 33 SDL_Joystick *joy; in joystick_count() local 35 joy = SDL_JoystickOpen(i); in joystick_count() 36 if (joy) { in joystick_count() 39 if (SDL_JoystickGetAttached(joy)) { in joystick_count() 40 SDL_JoystickClose(joy); in joystick_count() 47 SDL_Joystick *joy; in joystick_nth_id() local 50 joy = SDL_JoystickOpen(i); in joystick_nth_id() 51 if (joy) { in joystick_nth_id() 54 SDL_JoystickClose(joy); in joystick_nth_id() [all …]
|
/dports/graphics/milton/milton-1.9.1/third_party/SDL2-2.0.8/src/joystick/bsd/ |
H A D | SDL_sysjoystick.c | 307 joy->hwdata = hw; 312 joy->naxes = 2; 313 joy->nbuttons = 2; 314 joy->nhats = 0; 315 joy->nballs = 0; 391 joy->naxes = 0; 392 joy->nbuttons = 0; 393 joy->nhats = 0; 394 joy->nballs = 0; 446 if (joy->naxes == 0 && joy->nbuttons == 0 && joy->nhats == 0 && joy->nballs == 0) { [all …]
|
/dports/games/rnd_jue/rocksndiamonds-3.3.1.0/src/libgame/ |
H A D | joystick.c | 237 if (setup.input[i].joy.xleft >= setup.input[i].joy.xmiddle) in CheckJoystickData() 238 setup.input[i].joy.xleft = setup.input[i].joy.xmiddle - distance; in CheckJoystickData() 239 if (setup.input[i].joy.xright <= setup.input[i].joy.xmiddle) in CheckJoystickData() 240 setup.input[i].joy.xright = setup.input[i].joy.xmiddle + distance; in CheckJoystickData() 242 if (setup.input[i].joy.yupper >= setup.input[i].joy.ymiddle) in CheckJoystickData() 243 setup.input[i].joy.yupper = setup.input[i].joy.ymiddle - distance; in CheckJoystickData() 244 if (setup.input[i].joy.ylower <= setup.input[i].joy.ymiddle) in CheckJoystickData() 245 setup.input[i].joy.ylower = setup.input[i].joy.ymiddle + distance; in CheckJoystickData() 266 setup.input[player_nr].joy.device_name); in Joystick() 273 setup.input[player_nr].joy.xleft, js_x); in Joystick() [all …]
|
/dports/games/rocksndiamonds/rnd_jue-3.3.0.0/src/libgame/ |
H A D | joystick.c | 237 if (setup.input[i].joy.xleft >= setup.input[i].joy.xmiddle) in CheckJoystickData() 238 setup.input[i].joy.xleft = setup.input[i].joy.xmiddle - distance; in CheckJoystickData() 239 if (setup.input[i].joy.xright <= setup.input[i].joy.xmiddle) in CheckJoystickData() 240 setup.input[i].joy.xright = setup.input[i].joy.xmiddle + distance; in CheckJoystickData() 242 if (setup.input[i].joy.yupper >= setup.input[i].joy.ymiddle) in CheckJoystickData() 243 setup.input[i].joy.yupper = setup.input[i].joy.ymiddle - distance; in CheckJoystickData() 244 if (setup.input[i].joy.ylower <= setup.input[i].joy.ymiddle) in CheckJoystickData() 245 setup.input[i].joy.ylower = setup.input[i].joy.ymiddle + distance; in CheckJoystickData() 266 setup.input[player_nr].joy.device_name); in Joystick() 273 setup.input[player_nr].joy.xleft, js_x); in Joystick() [all …]
|
/dports/games/rocksndiamonds/rocksndiamonds-3.3.1.2/src/libgame/ |
H A D | joystick.c | 237 if (setup.input[i].joy.xleft >= setup.input[i].joy.xmiddle) in CheckJoystickData() 238 setup.input[i].joy.xleft = setup.input[i].joy.xmiddle - distance; in CheckJoystickData() 239 if (setup.input[i].joy.xright <= setup.input[i].joy.xmiddle) in CheckJoystickData() 240 setup.input[i].joy.xright = setup.input[i].joy.xmiddle + distance; in CheckJoystickData() 242 if (setup.input[i].joy.yupper >= setup.input[i].joy.ymiddle) in CheckJoystickData() 243 setup.input[i].joy.yupper = setup.input[i].joy.ymiddle - distance; in CheckJoystickData() 244 if (setup.input[i].joy.ylower <= setup.input[i].joy.ymiddle) in CheckJoystickData() 245 setup.input[i].joy.ylower = setup.input[i].joy.ymiddle + distance; in CheckJoystickData() 266 setup.input[player_nr].joy.device_name); in Joystick() 273 setup.input[player_nr].joy.xleft, js_x); in Joystick() [all …]
|
/dports/games/rnd_jue/rnd_jue-3.3.0.0/src/libgame/ |
H A D | joystick.c | 237 if (setup.input[i].joy.xleft >= setup.input[i].joy.xmiddle) in CheckJoystickData() 238 setup.input[i].joy.xleft = setup.input[i].joy.xmiddle - distance; in CheckJoystickData() 239 if (setup.input[i].joy.xright <= setup.input[i].joy.xmiddle) in CheckJoystickData() 240 setup.input[i].joy.xright = setup.input[i].joy.xmiddle + distance; in CheckJoystickData() 242 if (setup.input[i].joy.yupper >= setup.input[i].joy.ymiddle) in CheckJoystickData() 243 setup.input[i].joy.yupper = setup.input[i].joy.ymiddle - distance; in CheckJoystickData() 244 if (setup.input[i].joy.ylower <= setup.input[i].joy.ymiddle) in CheckJoystickData() 245 setup.input[i].joy.ylower = setup.input[i].joy.ymiddle + distance; in CheckJoystickData() 266 setup.input[player_nr].joy.device_name); in Joystick() 273 setup.input[player_nr].joy.xleft, js_x); in Joystick() [all …]
|
/dports/devel/allegro5/allegro5-5.2.7.0/src/iphone/ |
H A D | iphone_joystick.m | 20 ALLEGRO_JOYSTICK *joy; 25 joy = (void *)ijoy; 28 joy->info.num_sticks = 1; 29 joy->info.num_buttons = 0; 31 joy->info.stick[0].num_axes = 3; 32 joy->info.stick[0].axis[0].name = "X"; 33 joy->info.stick[0].axis[1].name = "Y"; 34 joy->info.stick[0].axis[2].name = "Z"; 72 (void)joy; 114 (void)joy; [all …]
|
/dports/devel/allegro/allegro-4.4.3.1/src/psp/ |
H A D | pjoy.c | 85 joy[0].button[b].name = psp_controller_buttons[b].name; in psp_joy_init() 86 joy[0].num_buttons++; in psp_joy_init() 89 joy[0].num_sticks = 1; in psp_joy_init() 90 joy[0].stick[0].flags = JOYFLAG_DIGITAL; in psp_joy_init() 91 joy[0].stick[0].num_axis = 2; in psp_joy_init() 92 joy[0].stick[0].axis[0].name = "X axis"; in psp_joy_init() 93 joy[0].stick[0].axis[1].name = "Y axis"; in psp_joy_init() 94 joy[0].stick[0].name = "PSP digital pad"; in psp_joy_init() 128 joy[0].stick[0].axis[0].d1 = pad.Buttons & PSP_CTRL_LEFT; in psp_joy_poll() 130 joy[0].stick[0].axis[1].d1 = pad.Buttons & PSP_CTRL_UP; in psp_joy_poll() [all …]
|
/dports/emulators/frodo/Frodo-4.1b/Src/ |
H A D | C64_Be.i | 19 joy[0] = new BJoystick(); in c64_ctor1() 20 joy[1] = new BJoystick(); in c64_ctor1() 47 delete joy[0]; in c64_dtor() local 48 delete joy[1]; in c64_dtor() local 219 joy[0]->Open("joystick2"); in open_close_joysticks() 221 joy[0]->Close(); in open_close_joysticks() 228 joy[1]->Open("joystick1"); in open_close_joysticks() 230 joy[1]->Close(); in open_close_joysticks() 249 joy_maxy = joy[port]->vertical; in poll_joystick() 251 joy_miny = joy[port]->vertical; in poll_joystick() [all …]
|
/dports/emulators/anese/ANESE-0.9.1/src/ui/SDL2/movies/fm2/ |
H A D | replay.cc | 10 delete this->joy[0]._mem; in ~FM2_Replay() 11 delete this->joy[1]._mem; in ~FM2_Replay() 12 delete this->joy[2]._mem; in ~FM2_Replay() 18 memset(&this->joy, 0, sizeof this->joy); in FM2_Replay() 54 assert(this->joy[port].type == FM2_Controller::SI_NONE); in parse_fm2_header() 56 this->joy[port].type = FM2_Controller::Type(*s - '0'); in parse_fm2_header() 57 switch (this->joy[port].type) { in parse_fm2_header() 75 return this->joy[port]._mem; in get_joy() 104 if (this->joy[i].type == FM2_Controller::SI_NONE) { in step_frame() 110 if (this->joy[i].type == FM2_Controller::SI_GAMEPAD) { in step_frame() [all …]
|
/dports/games/d2x/d2x-0.2.5/arch/win32/ |
H A D | joyhh.c | 154 JOYINFOEX joy; in joy_handler32() local 156 memset(&joy, 0, sizeof(joy)); in joy_handler32() 157 joy.dwSize = sizeof(joy); in joy_handler32() 162 value = joy.dwButtons; in joy_handler32() 207 JOYINFOEX joy; in joy_read_raw_buttons() local 213 memset(&joy, 0, sizeof(joy)); in joy_read_raw_buttons() 214 joy.dwSize = sizeof(joy); in joy_read_raw_buttons() 233 joystick.buttons[19].state = (joy.dwPOV < JOY_POVRIGHT || joy.dwPOV > JOY_POVLEFT); in joy_read_raw_buttons() 247 JOYINFOEX joy; in joystick_read_raw_axis() local 258 memset(&joy, 0, sizeof(joy)); in joystick_read_raw_axis() [all …]
|
/dports/games/d2x/d2x-0.2.5/unused/win95/ |
H A D | joyc.c | 253 JOYINFOEX joy; in joy_read_raw_buttons() local 258 memset(&joy, 0, sizeof(joy)); in joy_read_raw_buttons() 259 joy.dwSize = sizeof(joy); in joy_read_raw_buttons() 275 JOYINFOEX joy; in joystick_read_raw_axis() local 314 memset(&joy, 0, sizeof(joy)); in joystick_read_raw_axis() 315 joy.dwSize = sizeof(joy); in joystick_read_raw_axis() 807 JOYINFOEX joy; in joy_handler_win() local 811 memset(&joy, 0, sizeof(joy)); in joy_handler_win() 812 joy.dwSize = sizeof(joy); in joy_handler_win() 817 if (joy.dwPOV == JOY_POVCENTERED && joy.dwButtons > 0) { in joy_handler_win() [all …]
|
/dports/emulators/mess/mame-mame0226/src/devices/bus/megadrive/ |
H A D | jcart.cpp | 164 uint8_t joy[2]; in read() local 168 joy[0] = m_jcart3.read_safe(0); in read() 169 joy[1] = m_jcart4.read_safe(0); in read() 170 return (m_jcart_io_data[0] & 0x40) | joy[0] | (joy[1] << 8); in read() 174 joy[0] = ((m_jcart3.read_safe(0) & 0xc0) >> 2) | (m_jcart3.read_safe(0) & 0x03); in read() 176 return (m_jcart_io_data[0] & 0x40) | joy[0] | (joy[1] << 8); in read() 207 uint8_t joy[2]; in read() local 211 joy[0] = m_jcart3.read_safe(0); in read() 212 joy[1] = m_jcart4.read_safe(0); in read() 213 return (m_jcart_io_data[0] & 0x40) | joy[0] | (joy[1] << 8); in read() [all …]
|
/dports/emulators/mame/mame-mame0226/src/devices/bus/megadrive/ |
H A D | jcart.cpp | 164 uint8_t joy[2]; in read() local 168 joy[0] = m_jcart3.read_safe(0); in read() 169 joy[1] = m_jcart4.read_safe(0); in read() 170 return (m_jcart_io_data[0] & 0x40) | joy[0] | (joy[1] << 8); in read() 174 joy[0] = ((m_jcart3.read_safe(0) & 0xc0) >> 2) | (m_jcart3.read_safe(0) & 0x03); in read() 176 return (m_jcart_io_data[0] & 0x40) | joy[0] | (joy[1] << 8); in read() 207 uint8_t joy[2]; in read() local 211 joy[0] = m_jcart3.read_safe(0); in read() 212 joy[1] = m_jcart4.read_safe(0); in read() 213 return (m_jcart_io_data[0] & 0x40) | joy[0] | (joy[1] << 8); in read() [all …]
|
/dports/emulators/uae/uae-0.8.29/src/ |
H A D | inputdevice.c | 689 v = (uae_u8)mouse_x[joy] | (mouse_y[joy] << 8); in getjoystate() 876 int joy; in inputdevice_hsync() local 878 for (joy = 0; joy < 2; joy++) { in inputdevice_hsync() 890 potdats[joy] = ((potdats[joy] + 1) & 0xFF) | (potdats[joy] & 0xFF00); in inputdevice_hsync() 1238 int joy; in handle_input_event() local 1317 int left = oleft[joy], right = oright[joy], top = otop[joy], bot = obot[joy]; in handle_input_event() 1562 int joy, i; in compatibility_mode() local 1598 used[joy] = 1; in compatibility_mode() 1611 used[joy] = 1; in compatibility_mode() 1620 for (joy = 0; used[joy]; joy++); in compatibility_mode() [all …]
|
/dports/games/craft/Craft-1.0fbsd/deps/glfw/src/ |
H A D | win32_joystick.c | 74 int _glfwPlatformJoystickPresent(int joy) in _glfwPlatformJoystickPresent() argument 78 if (_glfw_joyGetPos(joy, &ji) != JOYERR_NOERROR) in _glfwPlatformJoystickPresent() 84 const float* _glfwPlatformGetJoystickAxes(int joy, int* count) in _glfwPlatformGetJoystickAxes() argument 88 float* axes = _glfw.win32.joystick[joy].axes; in _glfwPlatformGetJoystickAxes() 90 if (_glfw_joyGetDevCaps(joy, &jc, sizeof(JOYCAPS)) != JOYERR_NOERROR) in _glfwPlatformGetJoystickAxes() 96 if (_glfw_joyGetPosEx(joy, &ji) != JOYERR_NOERROR) in _glfwPlatformGetJoystickAxes() 121 unsigned char* buttons = _glfw.win32.joystick[joy].buttons; in _glfwPlatformGetJoystickButtons() 128 if (_glfw_joyGetPosEx(joy, &ji) != JOYERR_NOERROR) in _glfwPlatformGetJoystickButtons() 165 const char* _glfwPlatformGetJoystickName(int joy) in _glfwPlatformGetJoystickName() argument 172 free(_glfw.win32.joystick[joy].name); in _glfwPlatformGetJoystickName() [all …]
|