/dports/games/openclaw/OpenClaw-0.0-51-gbac7730/Box2D/glfw/ |
H A D | winmm_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.winmm_js[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.winmm_js[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.winmm_js[joy].name); in _glfwPlatformGetJoystickName() [all …]
|
H A D | iokit_joystick.m | 198 int joy; 200 for (joy = 0; joy <= GLFW_JOYSTICK_LAST; joy++) 265 int joy; 267 for (joy = GLFW_JOYSTICK_1; joy <= GLFW_JOYSTICK_LAST; joy++) 278 for (joy = GLFW_JOYSTICK_1; joy <= GLFW_JOYSTICK_LAST; joy++) 286 if (joy > GLFW_JOYSTICK_LAST) 327 int joy; 329 for (joy = GLFW_JOYSTICK_1; joy <= GLFW_JOYSTICK_LAST; joy++) 450 int joy; 452 for (joy = 0; joy <= GLFW_JOYSTICK_LAST; joy++) [all …]
|
/dports/emulators/jzintv/jzintv-20200712-src/src/joy/ |
H A D | joy_sdl.c | 28 LOCAL joy_t *joy = NULL; variable 116 CONDFREE(joy); in joy_dtor() 230 joy[jn].num_axes, joy[jn].num_balls, in joy_init() 231 joy[jn].num_hats, joy[jn].num_buttons); in joy_init() 385 if (joy[i].stick[j].x_axis == v) joy[i].stick[j].x_axis = -1; in joy_config() 386 if (joy[i].stick[j].y_axis == v) joy[i].stick[j].y_axis = -1; in joy_config() 425 if (joy[i].stick[j].push_thresh < joy[i].stick[j].rels_thresh) in joy_config() 427 joy[i].stick[j].push_thresh = joy[i].stick[j].rels_thresh; in joy_config() 439 if (joy[i].axis[j].min > joy[i].axis[j].max) in joy_config() 446 joy[i].axis[j].min = joy[i].axis[j].max; in joy_config() [all …]
|
/dports/devel/allegro/allegro-4.4.3.1/src/win/ |
H A D | wjoydx.c | 270 joy->num_axes++; in object_enum_callback() 274 joy->num_axes++; in object_enum_callback() 278 joy->caps |= JOYCAPS_HASZ; in object_enum_callback() 279 joy->num_axes++; in object_enum_callback() 282 joy->axis_name[joy->num_axes] = _al_ustrdup(uconvert_ascii(lpddoi->tszName, tmp)); in object_enum_callback() 283 joy->caps |= JOYCAPS_HASR; in object_enum_callback() 284 joy->num_axes++; in object_enum_callback() 297 joy->axis_name[joy->num_axes] = _al_ustrdup(uconvert_ascii(lpddoi->tszName, tmp)); in object_enum_callback() 298 joy->num_axes++; in object_enum_callback() 316 joy->button_name[joy->num_buttons] = _al_ustrdup(uconvert_ascii(lpddoi->tszName, tmp)); in object_enum_callback() [all …]
|
/dports/devel/allegro/allegro-4.4.3.1/examples/ |
H A D | exjoy.c | 137 if (joy[0].button[c].b) in main() 145 if (joy[0].stick[0].axis[0].d1) { in main() 150 if (joy[0].stick[0].axis[0].d2) { in main() 155 if (joy[0].stick[0].axis[1].d1) { in main() 160 if (joy[0].stick[0].axis[1].d2) { in main() 170 x += joy[0].stick[0].axis[0].pos/40; in main() 171 y += joy[0].stick[0].axis[1].pos/40; in main() 180 if (joy[0].stick[0].axis[0].pos/40 < 0) in main() 183 if (joy[0].stick[0].axis[0].pos/40 > 0) in main() 186 if (joy[0].stick[0].axis[1].pos/40 < 0) in main() [all …]
|
/dports/emulators/libretro-vice/vice-libretro-5725415/vice/src/arch/gtk3/ |
H A D | joy-win32.c | 107 JoyInfo *joy; in EnumJoyAxes() local 135 JoyInfo *joy; in EnumJoyButtons() local 162 JoyInfo *joy; in EnumJoyPOVs() local 288 joy = joy->next; in joystick_di_open() 291 if (joy) { in joystick_di_open() 724 JoyInfo *joy; in joystick_di5_update() local 767 joy = joy->next; in joystick_di5_update() 770 if (joy && joy->numPOVs > 0) { in joystick_di5_update() 1082 JoyInfo *joy; 1090 joy = joy->next; [all …]
|
/dports/emulators/vice/vice-3.5/src/arch/gtk3/ |
H A D | joy-win32.c | 106 JoyInfo *joy; in EnumJoyAxes() local 134 JoyInfo *joy; in EnumJoyButtons() local 161 JoyInfo *joy; in EnumJoyPOVs() local 287 joy = joy->next; in joystick_di_open() 290 if (joy) { in joystick_di_open() 667 JoyInfo *joy; in joystick_di5_update() local 710 joy = joy->next; in joystick_di5_update() 713 if (joy && joy->numPOVs > 0) { in joystick_di5_update() 1025 JoyInfo *joy; 1033 joy = joy->next; [all …]
|
/dports/devel/allegro5/allegro5-5.2.7.0/examples/ |
H A D | ex_joystick_events.c | 37 if (joy == NULL) { in setup_joystick_values() 43 al_get_joystick_state(joy, &jst); in setup_joystick_values() 45 num_sticks = al_get_joystick_num_sticks(joy); in setup_joystick_values() 49 num_axes[i] = al_get_joystick_num_axes(joy, i); in setup_joystick_values() 54 num_buttons = al_get_joystick_num_buttons(joy); in setup_joystick_values() 86 if (joy) { in draw_joystick_axes() 88 al_get_joystick_stick_name(joy, stick)); in draw_joystick_axes() 116 if (joy) { in draw_joystick_button() 126 static void draw_all(ALLEGRO_JOYSTICK *joy) in draw_all() argument 135 if (joy) { in draw_all() [all …]
|
/dports/devel/allegro/allegro-4.4.3.1/src/dos/ |
H A D | sw.c | 192 joy[i].flags = JOYFLAG_DIGITAL; in sw_init() 194 joy[i].num_sticks = 1; in sw_init() 196 joy[i].stick[0].num_axis = 2; in sw_init() 201 joy[i].num_buttons = 10; in sw_init() 203 joy[i].button[0].name = get_config_text("A"); in sw_init() 204 joy[i].button[1].name = get_config_text("B"); in sw_init() 246 if (joy[i].stick[0].axis[b].d1) in sw_poll() 247 joy[i].stick[0].axis[b].pos = -128; in sw_poll() 248 else if (joy[i].stick[0].axis[b].d2) in sw_poll() 249 joy[i].stick[0].axis[b].pos = 128; in sw_poll() [all …]
|
/dports/emulators/visualboyadvance-m/visualboyadvance-m-VBA-M_Beta_2/src/wx/widgets/ |
H A D | sdljoy.cpp | 62 if (joy >= njoy || !njoy) in Add() 65 if (joy < 0) in Add() 73 if (!joystate[joy].dev) in Add() 74 joystate[joy].dev = SDL_JoystickOpen(joy); in Add() 85 if (joy >= njoy || !njoy) in Remove() 88 if (joy < 0) in Remove() 102 if (!joystate[joy].dev) in Remove() 106 joystate[joy].dev = NULL; in Remove() 152 ev.joy = i; in Notify() 170 ev.joy = i; in Notify() [all …]
|
H A D | joyedit.cpp | 73 wxString nv = ToString(mod, key, joy); in OnJoy() 94 if (!joy) in ToString() 100 s.Printf(_("Joy%d-"), joy); in ToString() 209 mod = key = joy = 0; in ParseJoy() 223 joy = simple_atoi(s + b, l); in ParseJoy() 258 joy = 0; in ParseJoy() 267 if (ParseJoy(s, len, mod, key, joy)) in ParseString() 281 int mod, key, joy; in FromString() local 303 wxJoyKeyBinding jb = { key, mod, joy }; in FromString() 308 if (!ParseString(s.c_str(), len, mod, key, joy)) in FromString() [all …]
|
/dports/games/OpenLara/OpenLara-b4b19f2/src/platform/xbox/ |
H A D | main.cpp | 70 JoyDevice &joy = joyDevice[i]; in joyUpdate() local 73 memset(&joy, 0, sizeof(joy)); in joyUpdate() 79 XInputClose(joy.handle); in joyUpdate() 80 joy.handle = NULL; in joyUpdate() 84 if (joy.handle) { in joyUpdate() 108 if ((joy.vL != joy.oL || joy.vR != joy.oR) && Core::getTime() >= joy.time) { in joyUpdate() 110 joy.feedback.Rumble.wLeftMotorSpeed = WORD(joy.vL * 65535.0f); in joyUpdate() 111 joy.feedback.Rumble.wRightMotorSpeed = WORD(joy.vR * 65535.0f); in joyUpdate() 112 joy.oL = joy.vL; in joyUpdate() 113 joy.oR = joy.vR; in joyUpdate() [all …]
|
/dports/emulators/fs-uae/fs-uae-3.1.35/src/od-fs/ |
H A D | joystick.cpp | 39 static TCHAR *get_joystick_friendlyname (int joy) in get_joystick_friendlyname() argument 41 UAE_LOG_STUB ("joy=%d", joy); in get_joystick_friendlyname() 45 static TCHAR *get_joystick_uniquename (int joy) in get_joystick_uniquename() argument 47 UAE_LOG_STUB ("joy=%d", joy); in get_joystick_uniquename() 51 static int get_joystick_widget_num (int joy) in get_joystick_widget_num() argument 53 UAE_LOG_STUB ("joy=%d return 0", joy); in get_joystick_widget_num() 57 static int get_joystick_widget_type (int joy, int num, char *name, uae_u32 *code) in get_joystick_widget_type() argument 63 static int get_joystick_widget_first (int joy, int type) in get_joystick_widget_first() argument 65 UAE_LOG_STUB ("joy=%d type=%d return 0", joy, type); in get_joystick_widget_first()
|
/dports/x11/antimicro/antimicro-2.23/src/ |
H A D | inputdaemon.cpp | 722 if (joy) in firstInputPass() 754 if (joy) in firstInputPass() 785 if (joy) in firstInputPass() 814 if (joy) in firstInputPass() 843 if (joy) in firstInputPass() 927 if (joy) in modifyUnplugEvents() 1043 if (joy) in secondInputPass() 1077 if (joy) in secondInputPass() 1112 if (joy) in secondInputPass() 1142 if (joy) in secondInputPass() [all …]
|
/dports/graphics/glfw2/glfw-2.7.9/lib/x11/ |
H A D | x11_joystick.c | 278 if( !_glfwJoy[ joy ].Present ) in _glfwPlatformGetJoystickParam() 289 return _glfwJoy[ joy ].NumAxes; in _glfwPlatformGetJoystickParam() 292 return _glfwJoy[ joy ].NumButtons; in _glfwPlatformGetJoystickParam() 311 if( !_glfwJoy[ joy ].Present ) in _glfwPlatformGetJoystickPos() 320 if( _glfwJoy[ joy ].NumAxes < numaxes ) in _glfwPlatformGetJoystickPos() 322 numaxes = _glfwJoy[ joy ].NumAxes; in _glfwPlatformGetJoystickPos() 328 pos[ i ] = _glfwJoy[ joy ].Axis[ i ]; in _glfwPlatformGetJoystickPos() 345 if( !_glfwJoy[ joy ].Present ) in _glfwPlatformGetJoystickButtons() 354 if( _glfwJoy[ joy ].NumButtons < numbuttons ) in _glfwPlatformGetJoystickButtons() 356 numbuttons = _glfwJoy[ joy ].NumButtons; in _glfwPlatformGetJoystickButtons() [all …]
|
/dports/astro/openuniverse/openuniverse-1.0beta3/src/ |
H A D | joystick.cpp | 46 JOYINFO joy; in joystick() local 50 res = joyGetPos(JOYSTICKID1, &joy); in joystick() 54 x = (joy.wXpos >> 12) - 8; in joystick() 55 y = (joy.wYpos >> 12) - 8; in joystick() 61 if (joy.wButtons & JOY_BUTTON4) { in joystick() 75 if (joy.wButtons & JOY_BUTTON1) { in joystick() 79 if (joy.wButtons & JOY_BUTTON2) { in joystick() 83 if ((joy.wButtons & JOY_BUTTON1) & (joy.wButtons & JOY_BUTTON2) in joystick() 84 || (joy.wButtons & JOY_BUTTON3)) in joystick() 147 JOYINFO joy; in joydetect() local [all …]
|
/dports/emulators/quasi88/quasi88-0.6.4/src/X11/ |
H A D | joy-sdl.c | 131 T_JOY_INFO *joy = &joy_info[0]; in joystick_update() local 139 for (i=0; i<JOY_MAX; i++, joy++) { in joystick_update() 141 if (joy->dev) { in joystick_update() 142 int offset = (joy->num) * KEY88_PAD_OFFSET; in joystick_update() 148 x = SDL_JoystickGetAxis(joy->dev, 0); in joystick_update() 149 y = SDL_JoystickGetAxis(joy->dev, 1); in joystick_update() 157 chg = joy->axis ^ now; in joystick_update() 172 joy->axis = now; in joystick_update() 174 for (j=0; j<joy->nr_button; j++) { in joystick_update() 178 if (joy->button[j] != button) { in joystick_update() [all …]
|
/dports/games/flightgear/flightgear-2020.3.11/3rdparty/joystick/ |
H A D | jsMacOSX.cxx | 61 void enumerateElements(jsJoystick* joy, CFTypeRef element); 65 void addAxisElement(jsJoystick* joy, CFDictionaryRef axis); 67 void addHatElement(jsJoystick* joy, CFDictionaryRef hat); 309 &elementEnumerator, joy); in enumerateElements() 386 /*joy->os->*/enumerateElements(joy, in parseElement() 403 int index = joy->num_axes++; in addAxisElement() 415 joy->min[index] = lmin; in addAxisElement() 416 joy->max[index] = lmax; in addAxisElement() 417 joy->dead_band[index] = 0.0; in addAxisElement() 418 joy->saturate[index] = 1.0; in addAxisElement() [all …]
|
/dports/devel/godot-tools/godot-3.2.3-stable/platform/osx/ |
H A D | joypad_osx.cpp | 202 joypad *joy = (joypad *)p_parameter; in hid_element_added() local 468 joypad &joy = device_list.write[i]; in process_joypads() local 476 int value = joy.get_hid_element_state(&joy.button_elements.write[j]); in process_joypads() 483 input->joy_hat(joy.id, hat_value); in process_joypads() 486 if (joy.ffservice) { in process_joypads() 488 if (timestamp > joy.ff_timestamp) { in process_joypads() 504 joy->ff_timestamp = p_timestamp; in joypad_vibration_start() 507 FFEffectSetParameters(joy->ff_object, &joy->ff_effect, FFEP_DURATION | FFEP_GAIN); in joypad_vibration_start() 508 FFEffectStart(joy->ff_object, 1, 0); in joypad_vibration_start() 513 joy->ff_timestamp = p_timestamp; in joypad_vibration_stop() [all …]
|
/dports/devel/godot2/godot-2.1.6-stable/platform/osx/ |
H A D | joystick_osx.cpp | 200 joystick *joy = (joystick *)p_parameter; in hid_element_added() local 465 joystick &joy = device_list[i]; in process_joysticks() local 473 int value = joy.get_hid_element_state(&joy.button_elements[j]); in process_joysticks() 477 rec_element &elem = joy.hat_elements[j]; in process_joysticks() 483 if (joy.ffservice) { in process_joysticks() 485 if (timestamp > joy.ff_timestamp) { in process_joysticks() 502 joy->ff_timestamp = p_timestamp; in joystick_vibration_start() 505 FFEffectSetParameters(joy->ff_object, &joy->ff_effect, FFEP_DURATION | FFEP_GAIN); in joystick_vibration_start() 506 FFEffectStart(joy->ff_object, 1, 0); in joystick_vibration_start() 511 joy->ff_timestamp = p_timestamp; in joystick_vibration_stop() [all …]
|
/dports/devel/godot2-tools/godot-2.1.6-stable/platform/osx/ |
H A D | joystick_osx.cpp | 200 joystick *joy = (joystick *)p_parameter; in hid_element_added() local 465 joystick &joy = device_list[i]; in process_joysticks() local 473 int value = joy.get_hid_element_state(&joy.button_elements[j]); in process_joysticks() 477 rec_element &elem = joy.hat_elements[j]; in process_joysticks() 483 if (joy.ffservice) { in process_joysticks() 485 if (timestamp > joy.ff_timestamp) { in process_joysticks() 502 joy->ff_timestamp = p_timestamp; in joystick_vibration_start() 505 FFEffectSetParameters(joy->ff_object, &joy->ff_effect, FFEP_DURATION | FFEP_GAIN); in joystick_vibration_start() 506 FFEffectStart(joy->ff_object, 1, 0); in joystick_vibration_start() 511 joy->ff_timestamp = p_timestamp; in joystick_vibration_stop() [all …]
|
/dports/devel/godot/godot-3.2.3-stable/platform/osx/ |
H A D | joypad_osx.cpp | 202 joypad *joy = (joypad *)p_parameter; in hid_element_added() local 468 joypad &joy = device_list.write[i]; in process_joypads() local 476 int value = joy.get_hid_element_state(&joy.button_elements.write[j]); in process_joypads() 483 input->joy_hat(joy.id, hat_value); in process_joypads() 486 if (joy.ffservice) { in process_joypads() 488 if (timestamp > joy.ff_timestamp) { in process_joypads() 504 joy->ff_timestamp = p_timestamp; in joypad_vibration_start() 507 FFEffectSetParameters(joy->ff_object, &joy->ff_effect, FFEP_DURATION | FFEP_GAIN); in joypad_vibration_start() 508 FFEffectStart(joy->ff_object, 1, 0); in joypad_vibration_start() 513 joy->ff_timestamp = p_timestamp; in joypad_vibration_stop() [all …]
|
/dports/devel/sdl20/SDL2-2.0.18/test/ |
H A D | testjoystick.c | 41 PrintJoystick(SDL_Joystick *joy) in PrintJoystick() argument 46 SDL_assert(SDL_JoystickFromInstanceID(SDL_JoystickInstanceID(joy)) == joy); in PrintJoystick() 47 SDL_JoystickGetGUIDString(SDL_JoystickGetGUID(joy), guid, sizeof (guid)); in PrintJoystick() 48 switch (SDL_JoystickGetType(joy)) { in PrintJoystick() 81 SDL_Log(" name: %s\n", SDL_JoystickName(joy)); in PrintJoystick() 86 SDL_Log(" axes: %d\n", SDL_JoystickNumAxes(joy)); in PrintJoystick() 87 SDL_Log(" balls: %d\n", SDL_JoystickNumBalls(joy)); in PrintJoystick() 88 SDL_Log(" hats: %d\n", SDL_JoystickNumHats(joy)); in PrintJoystick() 89 SDL_Log(" buttons: %d\n", SDL_JoystickNumButtons(joy)); in PrintJoystick() 90 SDL_Log(" instance id: %d\n", SDL_JoystickInstanceID(joy)); in PrintJoystick() [all …]
|
/dports/x11/controllermap/SDL2-2.0.18/test/ |
H A D | testjoystick.c | 41 PrintJoystick(SDL_Joystick *joy) in PrintJoystick() argument 46 SDL_assert(SDL_JoystickFromInstanceID(SDL_JoystickInstanceID(joy)) == joy); in PrintJoystick() 47 SDL_JoystickGetGUIDString(SDL_JoystickGetGUID(joy), guid, sizeof (guid)); in PrintJoystick() 48 switch (SDL_JoystickGetType(joy)) { in PrintJoystick() 81 SDL_Log(" name: %s\n", SDL_JoystickName(joy)); in PrintJoystick() 86 SDL_Log(" axes: %d\n", SDL_JoystickNumAxes(joy)); in PrintJoystick() 87 SDL_Log(" balls: %d\n", SDL_JoystickNumBalls(joy)); in PrintJoystick() 88 SDL_Log(" hats: %d\n", SDL_JoystickNumHats(joy)); in PrintJoystick() 89 SDL_Log(" buttons: %d\n", SDL_JoystickNumButtons(joy)); in PrintJoystick() 90 SDL_Log(" instance id: %d\n", SDL_JoystickInstanceID(joy)); in PrintJoystick() [all …]
|
/dports/x11-toolkits/plib/plib-1.8.5/src/js/ |
H A D | jsMacOSX.cxx | 59 void enumerateElements(jsJoystick* joy, CFTypeRef element); 63 void addAxisElement(jsJoystick* joy, CFDictionaryRef axis); 65 void addHatElement(jsJoystick* joy, CFDictionaryRef hat); 275 &elementEnumerator, joy); in enumerateElements() 340 /*joy->os->*/enumerateElements(joy, in parseElement() 357 int index = joy->num_axes++; in addAxisElement() 369 joy->min[index] = lmin; in addAxisElement() 370 joy->max[index] = lmax; in addAxisElement() 371 joy->dead_band[index] = 0.0; in addAxisElement() 372 joy->saturate[index] = 1.0; in addAxisElement() [all …]
|