Home
last modified time | relevance | path

Searched refs:joy (Results 51 – 75 of 2543) sorted by relevance

12345678910>>...102

/dports/devel/godot2-tools/godot-2.1.6-stable/platform/x11/
H A Djoystick_linux.cpp103 joy->run_joystick_thread(); in joy_thread_func()
246 if (joy.fd != -1) { in close_joystick()
248 close(joy.fd); in close_joystick()
249 joy.fd = -1; in close_joystick()
305 if (ioctl(joy->fd, EVIOCGABS(i), joy->abs_info[i]) < 0) { in setup_joystick_properties()
369 joy.fd = fd; in open_joystick()
427 if (!joy.force_feedback || joy.fd == -1 || joy.ff_effect_id == -1) { in joystick_vibration_stop()
431 if (ioctl(joy.fd, EVIOCRMFF, joy.ff_effect_id) < 0) { in joystick_vibration_stop()
435 joy.ff_effect_id = -1; in joystick_vibration_stop()
517 if (joy->abs_map[ev.code] != -1 && joy->abs_info[ev.code]) { in process_joysticks()
[all …]
/dports/devel/godot/godot-3.2.3-stable/platform/x11/
H A Djoypad_linux.cpp102 joy->run_joypad_thread(); in joy_thread_func()
243 if (joy.fd != -1) { in close_joypad()
245 close(joy.fd); in close_joypad()
246 joy.fd = -1; in close_joypad()
302 if (ioctl(joy->fd, EVIOCGABS(i), joy->abs_info[i]) < 0) { in setup_joypad_properties()
369 joy.fd = fd; in open_joypad()
429 if (!joy.force_feedback || joy.fd == -1 || joy.ff_effect_id == -1) { in joypad_vibration_stop()
433 if (ioctl(joy.fd, EVIOCRMFF, joy.ff_effect_id) < 0) { in joypad_vibration_stop()
437 joy.ff_effect_id = -1; in joypad_vibration_stop()
521 if (joy->abs_map[ev.code] != -1 && joy->abs_info[ev.code]) { in process_joypads()
[all …]
/dports/devel/godot-tools/godot-3.2.3-stable/platform/uwp/
H A Djoypad_uwp.cpp49 ControllerDevice &joy = controllers[i]; in process_controllers() local
51 if (!joy.connected) break; in process_controllers()
53 switch (joy.type) { in process_controllers()
74 if (timestamp > joy.ff_timestamp) { in process_controllers()
82 } else if (joy.vibrating && joy.ff_end_timestamp != 0) { in process_controllers()
160 if (joy.connected) { in joypad_vibration_start()
166 joy.ff_timestamp = p_timestamp; in joypad_vibration_start()
168 joy.vibrating = true; in joypad_vibration_start()
174 if (joy.connected) { in joypad_vibration_stop()
180 joy.ff_timestamp = p_timestamp; in joypad_vibration_stop()
[all …]
/dports/devel/godot/godot-3.2.3-stable/platform/uwp/
H A Djoypad_uwp.cpp49 ControllerDevice &joy = controllers[i]; in process_controllers() local
51 if (!joy.connected) break; in process_controllers()
53 switch (joy.type) { in process_controllers()
74 if (timestamp > joy.ff_timestamp) { in process_controllers()
82 } else if (joy.vibrating && joy.ff_end_timestamp != 0) { in process_controllers()
160 if (joy.connected) { in joypad_vibration_start()
166 joy.ff_timestamp = p_timestamp; in joypad_vibration_start()
168 joy.vibrating = true; in joypad_vibration_start()
174 if (joy.connected) { in joypad_vibration_stop()
180 joy.ff_timestamp = p_timestamp; in joypad_vibration_stop()
[all …]
/dports/devel/allegro5/allegro5-5.2.7.0/src/macosx/
H A Dhidjoy.m139 return joy;
192 joy_null(joy);
314 if (joy == NULL) {
316 joy->ident = ref;
318 *back = joy;
338 joy->parent.info.num_buttons, joy->parent.info.num_sticks);
437 if (!joy) return;
459 …osx_joy_generate_axis_event(joy, joy->dpad_stick, joy->dpad_axis_vert, (float)hat_mapping[int_val…
460 …osx_joy_generate_axis_event(joy, joy->dpad_stick, joy->dpad_axis_horiz, (float)hat_mapping[int_val…
718 joy_null(joy);
[all …]
H A Dhidjoy-10.4.m150 … *joy->axis_link[i].pvalue = (joy->axis_link[i].offset + newvalue) * joy->axis_link[i].multiplier;
186 memset(joy, 0, sizeof(*joy));
235 joy->axis_link[0].pvalue = &joy->state.stick[0].axis[0];
258 joy->axis_link[1].pvalue = &joy->state.stick[0].axis[1];
354 (*joy->queue)->start(joy->queue);
373 (*joy->queue)->stop(joy->queue);
382 (*joy->queue)->dispose(joy->queue);
383 (*joy->queue)->Release(joy->queue);
386 (*joy->interface)->close(joy->interface);
387 (*joy->interface)->Release(joy->interface);
[all …]
/dports/emulators/anese/ANESE-0.9.1/src/nes/joy/
H A Djoy.cc13 if (addr == 0x4016) return this->joy[0] ? this->joy[0]->read(addr) | 0x40 : 0; in read()
14 if (addr == 0x4017) return this->joy[1] ? this->joy[1]->read(addr) | 0x40 : 0; in read()
25 if (addr == 0x4016) return this->joy[0] ? this->joy[0]->peek(addr) | 0x40 : 0; in peek()
26 if (addr == 0x4017) return this->joy[1] ? this->joy[1]->peek(addr) | 0x40 : 0; in peek()
38 if (this->joy[0]) return this->joy[0]->write(addr, val); in write()
39 if (this->joy[1]) return this->joy[1]->write(addr, val); in write()
48 void JOY::attach_joy(uint port, Memory* joy) { in attach_joy() argument
50 this->joy[port] = joy; in attach_joy()
55 this->joy[port] = nullptr; in detach_joy()
/dports/devel/godot2-tools/godot-2.1.6-stable/platform/winrt/
H A Djoystick_winrt.cpp48 ControllerDevice &joy = controllers[i]; in process_controllers() local
50 if (!joy.connected) break; in process_controllers()
52 switch (joy.type) { in process_controllers()
73 if (timestamp > joy.ff_timestamp) { in process_controllers()
81 } else if (joy.vibrating && joy.ff_end_timestamp != 0) { in process_controllers()
161 if (joy.connected) { in joypad_vibration_start()
167 joy.ff_timestamp = p_timestamp; in joypad_vibration_start()
169 joy.vibrating = true; in joypad_vibration_start()
175 if (joy.connected) { in joypad_vibration_stop()
181 joy.ff_timestamp = p_timestamp; in joypad_vibration_stop()
[all …]
/dports/devel/godot2/godot-2.1.6-stable/platform/winrt/
H A Djoystick_winrt.cpp48 ControllerDevice &joy = controllers[i]; in process_controllers() local
50 if (!joy.connected) break; in process_controllers()
52 switch (joy.type) { in process_controllers()
73 if (timestamp > joy.ff_timestamp) { in process_controllers()
81 } else if (joy.vibrating && joy.ff_end_timestamp != 0) { in process_controllers()
161 if (joy.connected) { in joypad_vibration_start()
167 joy.ff_timestamp = p_timestamp; in joypad_vibration_start()
169 joy.vibrating = true; in joypad_vibration_start()
175 if (joy.connected) { in joypad_vibration_stop()
181 joy.ff_timestamp = p_timestamp; in joypad_vibration_stop()
[all …]
/dports/games/libretro-yabause/yabause-ea5b118/yabause/src/
H A Dpersdljoy.c108 SDL_Joystick* joy = SDL_JoystickOpen( i ); in PERSDLJoyInit() local
112 SDL_PERCORE_JOYSTICKS[ i ].mJoystick = joy; in PERSDLJoyInit()
113 …SDL_PERCORE_JOYSTICKS[ i ].mScanStatus = joy ? malloc(sizeof(s16) * SDL_JoystickNumAxes( joy )) : … in PERSDLJoyInit()
114 …SDL_PERCORE_JOYSTICKS[ i ].mHatStatus = joy ? malloc(sizeof(Uint8) * SDL_JoystickNumHats( joy )) :… in PERSDLJoyInit()
116 if ( joy ) in PERSDLJoyInit()
171 SDL_Joystick* joy; in PERSDLJoyHandleEvents() local
186 if ( !joy ) in PERSDLJoyHandleEvents()
194 cur = SDL_JoystickGetAxis( joy, i ); in PERSDLJoyHandleEvents()
273 SDL_Joystick* joy; in PERSDLJoyScan() local
285 if ( !joy ) in PERSDLJoyScan()
[all …]
/dports/devel/emscripten/emscripten-2.0.3/tests/
H A Dglfw_joystick.c27 int joy = GLFW_JOYSTICK_1 + j; in render() local
28 if (!glfwJoystickPresent(joy)) continue; in render()
37 const char *name = glfwGetJoystickName(joy); in render()
45 last_gamepad_state[joy].axes_count = axes_count; in render()
47 if (last_gamepad_state[joy].axes[i] != axes[i]) { in render()
51 last_gamepad_state[joy].axes[i] = axes[i]; in render()
54 last_gamepad_state[joy].button_count = button_count; in render()
60 last_gamepad_state[joy].buttons[i] = buttons[i]; in render()
65 void joystick_callback(int joy, int event) in joystick_callback() argument
68 printf("Joystick %d was connected: %s\n", joy, glfwGetJoystickName(joy)); in joystick_callback()
[all …]
/dports/games/tremulous/tremulous/tremulous-1.1.0-src/src/win32/
H A Dwin_input.c819 for (joy.id=0 ; joy.id<numdevs ; joy.id++) in IN_StartupJoystick()
821 Com_Memset (&joy.ji, 0, sizeof(joy.ji)); in IN_StartupJoystick()
822 joy.ji.dwSize = sizeof(joy.ji); in IN_StartupJoystick()
838 Com_Memset (&joy.jc, 0, sizeof(joy.jc)); in IN_StartupJoystick()
839 if ((mmr = joyGetDevCaps (joy.id, &joy.jc, sizeof(joy.jc))) != JOYERR_NOERROR) in IN_StartupJoystick()
926 Com_Memset (&joy.ji, 0, sizeof(joy.ji)); in IN_JoyMove()
927 joy.ji.dwSize = sizeof(joy.ji); in IN_JoyMove()
930 if ( joyGetPosEx (joy.id, &joy.ji) != JOYERR_NOERROR ) { in IN_JoyMove()
943 JoyToF( joy.ji.dwXpos ), JoyToF( joy.ji.dwYpos ), in IN_JoyMove()
944 JoyToF( joy.ji.dwZpos ), JoyToF( joy.ji.dwRpos ), in IN_JoyMove()
[all …]
/dports/games/openclaw/OpenClaw-0.0-51-gbac7730/Box2D/glfw/
H A Dlinux_joystick.c53 int joy, fd, version; in openJoystickDevice() local
55 for (joy = GLFW_JOYSTICK_1; joy <= GLFW_JOYSTICK_LAST; joy++) in openJoystickDevice()
57 if (!_glfw.linux_js.js[joy].present) in openJoystickDevice()
64 for (joy = GLFW_JOYSTICK_1; joy <= GLFW_JOYSTICK_LAST; joy++) in openJoystickDevice()
66 if (!_glfw.linux_js.js[joy].present) in openJoystickDevice()
70 if (joy > GLFW_JOYSTICK_LAST) in openJoystickDevice()
77 _glfw.linux_js.js[joy].fd = fd; in openJoystickDevice()
295 int _glfwPlatformJoystickPresent(int joy) in _glfwPlatformJoystickPresent() argument
299 return _glfw.linux_js.js[joy].present; in _glfwPlatformJoystickPresent()
307 return _glfw.linux_js.js[joy].axes; in _glfwPlatformGetJoystickAxes()
[all …]
/dports/devel/allegro/allegro-4.4.3.1/src/dos/
H A Difsega2f.c81 joy[num].button[7].b = !(i & 0x08); in sg_pci_poll_sub_fast()
82 joy[num].button[3].b = !(i & 0x04); in sg_pci_poll_sub_fast()
83 joy[num].button[4].b = !(i & 0x02); in sg_pci_poll_sub_fast()
84 joy[num].button[5].b = !(i & 0x01); in sg_pci_poll_sub_fast()
89 joy[num].button[8].b = !(i & 0x08); in sg_pci_poll_sub_fast()
90 joy[num].button[0].b = !(i & 0x04); in sg_pci_poll_sub_fast()
91 joy[num].button[2].b = !(i & 0x02); in sg_pci_poll_sub_fast()
92 joy[num].button[1].b = !(i & 0x01); in sg_pci_poll_sub_fast()
103 if (joy[num].stick[0].axis[i].d1) in sg_pci_poll_sub_fast()
104 joy[num].stick[0].axis[i].pos = -128; in sg_pci_poll_sub_fast()
[all …]
H A Dswpp.c503 joy[0].num_sticks = 4; in swpp_init()
504 joy[0].num_buttons = 9; in swpp_init()
507 joy[0].stick[0].num_axis = 2; in swpp_init()
513 joy[0].stick[1].num_axis = 1; in swpp_init()
518 joy[0].stick[2].num_axis = 1; in swpp_init()
523 joy[0].stick[3].num_axis = 2; in swpp_init()
648 joy[0].stick[0].axis[0].pos = d; in swpp_poll()
653 joy[0].stick[0].axis[1].pos = d; in swpp_poll()
658 joy[0].stick[1].axis[0].pos = d; in swpp_poll()
663 joy[0].stick[2].axis[0].pos = d; in swpp_poll()
[all …]
/dports/games/heroes/heroes-0.21/src/media/allegro/
H A Djoystick.c59 joystick_b[0] = (joystick_b[0] & ~1) | (joy[0].button[0].b ? 1 : 0); in get_joystick_state()
60 joystick_b[0] = (joystick_b[0] & ~2) | (joy[0].button[1].b ? 2 : 0); in get_joystick_state()
61 if (num_joysticks == 1 && joy[0].num_buttons >= 4) { in get_joystick_state()
66 if (joy[0].stick[0].axis[0].d1) in get_joystick_state()
68 else if (joy[0].stick[0].axis[0].d2) in get_joystick_state()
73 if (joy[0].stick[0].axis[1].d1) in get_joystick_state()
75 else if (joy[0].stick[0].axis[1].d2) in get_joystick_state()
85 if (joy[1].stick[0].axis[0].d1) in get_joystick_state()
87 else if (joy[1].stick[0].axis[0].d2) in get_joystick_state()
92 if (joy[1].stick[0].axis[1].d1) in get_joystick_state()
[all …]
/dports/games/craft/Craft-1.0fbsd/deps/glfw/src/
H A Dx11_joystick.c58 _glfw.x11.joystick[joy].fd = fd; in openJoystickDevice()
83 _glfw.x11.joystick[joy].present = GL_TRUE; in openJoystickDevice()
162 int joy = 0; in _glfwInitJoysticks() local
196 joy++; in _glfwInitJoysticks()
233 int _glfwPlatformJoystickPresent(int joy) in _glfwPlatformJoystickPresent() argument
237 return _glfw.x11.joystick[joy].present; in _glfwPlatformJoystickPresent()
244 if (!_glfw.x11.joystick[joy].present) in _glfwPlatformGetJoystickAxes()
248 return _glfw.x11.joystick[joy].axes; in _glfwPlatformGetJoystickAxes()
255 if (!_glfw.x11.joystick[joy].present) in _glfwPlatformGetJoystickButtons()
259 return _glfw.x11.joystick[joy].buttons; in _glfwPlatformGetJoystickButtons()
[all …]
/dports/games/d2x/d2x-0.2.5/unused/win95/
H A Diforce.c107 JOYINFOEX joy; in IForce_ReadRawValues() local
111 memset(&joy, 0, sizeof(joy)); in IForce_ReadRawValues()
112 joy.dwSize = sizeof(joy); in IForce_ReadRawValues()
114 joyGetPosEx(JOYSTICKID1, &joy); in IForce_ReadRawValues()
116 axis[0] = joy.dwXpos; in IForce_ReadRawValues()
117 axis[1] = joy.dwYpos; in IForce_ReadRawValues()
118 axis[2] = joy.dwZpos; in IForce_ReadRawValues()
119 axis[4] = joy.dwRpos; in IForce_ReadRawValues()
120 axis[5] = joy.dwUpos; in IForce_ReadRawValues()
121 axis[6] = joy.dwVpos; in IForce_ReadRawValues()
[all …]
/dports/games/doomsday/doomsday-2.3.1/doomsday/apps/client/src/unix/
H A Djoystick.cpp43 static SDL_Joystick *joy; variable
80 joy = SDL_JoystickOpen(0); in initialize()
86 if (joy) in initialize()
95 << SDL_JoystickNumAxes(joy) in initialize()
97 << SDL_JoystickNumHats(joy) in initialize()
98 << SDL_JoystickNumBalls(joy); in initialize()
128 if (joy) in Joystick_Shutdown()
130 SDL_JoystickClose(joy); in Joystick_Shutdown()
131 joy = 0; in Joystick_Shutdown()
189 pov = SDL_JoystickGetHat(joy, i); in Joystick_GetState()
[all …]
/dports/emulators/libretro-vice/vice-libretro-5725415/vice/src/arch/gtk3/
H A Djoy-osx.c727 setup_axis_mapping(joy); in joy_reset_axis_range()
742 if (joy->button_mapping && strlen(joy->button_mapping) > 0) { in setup_button_mapping()
751 joy->buttons[i].press = 0; in setup_button_mapping()
779 if (joy->auto_button_mapping && strlen(joy->auto_button_mapping) > 0) { in setup_auto_button_mapping()
806 int id = joy->hat_switch.id; in setup_hat_switch_mapping()
815 joy->hat_switch.mapped = 0; in setup_hat_switch_mapping()
824 if (joy->device_name && strlen(joy->device_name) > 0) { in match_joystick()
839 desc, joy->num_hid_buttons, joy->num_hid_axis, joy->num_hid_hat_switches); in setup_joystick()
840 setup_axis_mapping(joy); in setup_joystick()
841 setup_button_mapping(joy); in setup_joystick()
[all …]
/dports/emulators/vice/vice-3.5/src/arch/gtk3/
H A Djoy-osx.c715 setup_axis_mapping(joy); in joy_reset_axis_range()
730 if (joy->button_mapping && strlen(joy->button_mapping) > 0) { in setup_button_mapping()
739 joy->buttons[i].press = 0; in setup_button_mapping()
767 if (joy->auto_button_mapping && strlen(joy->auto_button_mapping) > 0) { in setup_auto_button_mapping()
794 int id = joy->hat_switch.id; in setup_hat_switch_mapping()
803 joy->hat_switch.mapped = 0; in setup_hat_switch_mapping()
812 if (joy->device_name && strlen(joy->device_name) > 0) { in match_joystick()
827 setup_desc, joy->num_hid_buttons, joy->num_hid_axis, joy->num_hid_hat_switches); in setup_joystick()
828 setup_axis_mapping(joy); in setup_joystick()
829 setup_button_mapping(joy); in setup_joystick()
[all …]
H A Djoy-osx-hid.h69 int joy_hid_map_device(struct joystick_descriptor *joy, joy_hid_device_t *device);
70 void joy_hid_unmap_device(struct joystick_descriptor *joy);
73 joy_hid_element_t *joy_hid_element_by_usage(struct joystick_descriptor *joy, int usage);
76 int joy_hid_detect_axis(struct joystick_descriptor *joy, int id, int logical);
77 int joy_hid_read_axis(struct joystick_descriptor *joy,int id,int *value, int logical);
81 int joy_hid_assign_button(struct joystick_descriptor *joy, int id, int usage);
82 int joy_hid_detect_button(struct joystick_descriptor *joy);
83 int joy_hid_read_button(struct joystick_descriptor *joy, int id, int *value);
86 int joy_hid_assign_hat_switch(struct joystick_descriptor *joy, int serial);
87 int joy_hid_detect_hat_switch(struct joystick_descriptor *joy);
[all …]
/dports/devel/allegro/allegro-4.4.3.1/include/allegro/
H A Dalcompat.h58 #define joy_left (joy[0].stick[0].axis[0].d1)
62 #define joy_b1 (joy[0].button[0].b)
63 #define joy_b2 (joy[0].button[1].b)
64 #define joy_b3 (joy[0].button[2].b)
65 #define joy_b4 (joy[0].button[3].b)
66 #define joy_b5 (joy[0].button[4].b)
67 #define joy_b6 (joy[0].button[5].b)
68 #define joy_b7 (joy[0].button[6].b)
69 #define joy_b8 (joy[0].button[7].b)
77 #define joy2_b1 (joy[1].button[0].b)
[all …]
/dports/devel/allegro/allegro-4.4.3.1/src/
H A Djoystick.c49 JOYSTICK_INFO joy[MAX_JOYSTICKS]; variable
66 for (i=0; i<ARRAY_SIZE(joy); i++) { in clear_joystick_vars()
67 joy[i].flags = 0; in clear_joystick_vars()
68 joy[i].num_sticks = 0; in clear_joystick_vars()
69 joy[i].num_buttons = 0; in clear_joystick_vars()
72 joy[i].stick[j].flags = 0; in clear_joystick_vars()
73 joy[i].stick[j].num_axis = 0; in clear_joystick_vars()
74 joy[i].stick[j].name = unused; in clear_joystick_vars()
77 joy[i].stick[j].axis[k].pos = 0; in clear_joystick_vars()
85 joy[i].button[j].b = FALSE; in clear_joystick_vars()
[all …]
/dports/devel/allegro5/allegro5-5.2.7.0/src/win/
H A Dwjoyall.c82 static void joyall_release_joystick(ALLEGRO_JOYSTICK *joy);
84 static const char *joyall_get_name(ALLEGRO_JOYSTICK *joy);
85 static bool joyall_get_active(ALLEGRO_JOYSTICK *joy);
203 static void joyall_release_joystick(ALLEGRO_JOYSTICK *joy) in joyall_release_joystick() argument
209 if (joy) { in joyall_release_joystick()
210 joy->driver->release_joystick(joy); in joyall_release_joystick()
216 joy->driver->get_joystick_state(joy, ret_state); in joyall_get_joystick_state()
219 static const char *joyall_get_name(ALLEGRO_JOYSTICK *joy) in joyall_get_name() argument
221 return joy->driver->get_name(joy); in joyall_get_name()
224 static bool joyall_get_active(ALLEGRO_JOYSTICK *joy) in joyall_get_active() argument
[all …]

12345678910>>...102