Home
last modified time | relevance | path

Searched refs:joy (Results 26 – 50 of 2543) sorted by relevance

12345678910>>...102

/dports/devel/allegro/allegro-4.4.3.1/src/dos/
H A Djoystd.c385 joy[0].stick[joy[0].num_sticks].num_axis = 2; in joy_init()
386 joy[0].stick[joy[0].num_sticks].axis[0].name = get_config_text("X"); in joy_init()
388 joy[0].stick[joy[0].num_sticks].name = get_config_text("Hat"); in joy_init()
394 joy[0].stick[joy[0].num_sticks].flags = JOYFLAG_UNSIGNED; in joy_init()
395 joy[0].stick[joy[0].num_sticks].num_axis = 1; in joy_init()
397 joy[0].stick[joy[0].num_sticks].name = get_config_text("Throttle"); in joy_init()
403 joy[1] = joy[0]; in joy_init()
769 joy[0].stick[1].axis[0].d1 = joy[0].stick[1].axis[0].d2 = 0; in joy_poll()
770 joy[0].stick[1].axis[1].d1 = joy[0].stick[1].axis[1].d2 = 0; in joy_poll()
811 joy[0].stick[1].axis[0].d1 = joy[0].stick[1].axis[0].d2 = 0; in joy_poll()
[all …]
H A Dsnespad.c105 joy[i].flags = JOYFLAG_DIGITAL; in sp_init()
107 joy[i].num_sticks = 1; in sp_init()
109 joy[i].stick[0].num_axis = 2; in sp_init()
114 joy[i].num_buttons = 8; in sp_init()
116 joy[i].button[0].name = get_config_text("B"); in sp_init()
117 joy[i].button[1].name = get_config_text("Y"); in sp_init()
184 if (joy[i].stick[0].axis[b].d1) in sp_poll()
185 joy[i].stick[0].axis[b].pos = -128; in sp_poll()
186 else if (joy[i].stick[0].axis[b].d2) in sp_poll()
187 joy[i].stick[0].axis[b].pos = 128; in sp_poll()
[all …]
H A Dgpro.c154 joy[i].flags = JOYFLAG_DIGITAL; in gpro_init()
156 joy[i].num_sticks = 1; in gpro_init()
158 joy[i].stick[0].num_axis = 2; in gpro_init()
161 joy[i].stick[0].name = get_config_text("Pad"); in gpro_init()
163 joy[i].num_buttons = 10; in gpro_init()
210 if (joy[i].stick[0].axis[b].d1) in gpro_poll()
211 joy[i].stick[0].axis[b].pos = -128; in gpro_poll()
212 else if (joy[i].stick[0].axis[b].d2) in gpro_poll()
213 joy[i].stick[0].axis[b].pos = 128; in gpro_poll()
215 joy[i].stick[0].axis[b].pos = 0; in gpro_poll()
[all …]
/dports/devel/py-game/pygame-2.1.0/src_c/
H A Djoystick.c167 if (joy->joy) { in joy_quit()
168 SDL_JoystickClose(joy->joy); in joy_quit()
169 joy->joy = NULL; in joy_quit()
195 if (!joy) { in joy_get_instance_id()
211 if (joy) { in joy_get_guid()
251 if (!joy) { in joy_get_power_level()
266 SDL_Joystick *joy = self->joy; in joy_rumble() local
285 if (!joy) { in joy_rumble()
320 SDL_Joystick *joy = self->joy; in joy_stop_rumble() local
597 if (cur->joy == joy) { in pgJoystick_New()
[all …]
/dports/games/libretro-yabause/yabause-ea5b118/yabause/src/
H A Dpermacjoy.c113 joydata_t *joy; in PERMacJoyHandleEvents() local
117 joy = joys[i]; in PERMacJoyHandleEvents()
119 if(!joy) { in PERMacJoyHandleEvents()
125 int midpoint = MIDDLE(joy->axes[j].min, joy->axes[j].max); in PERMacJoyHandleEvents()
159 data = joy_read_element(joy, joy->hats + j); in PERMacJoyHandleEvents()
161 for(k = joy->hats[j].min; k < joy->hats[j].max; ++k) { in PERMacJoyHandleEvents()
181 joydata_t *joy; in PERMacJoyScan() local
187 if(!joy) { in PERMacJoyScan()
193 int midpoint = MIDDLE(joy->axes[j].min, joy->axes[j].max); in PERMacJoyScan()
218 data = joy_read_element(joy, joy->hats + j); in PERMacJoyScan()
[all …]
/dports/graphics/mupdf/mupdf-1.18.0-source/thirdparty/freeglut/src/
H A Dfg_joystick.c324 if( joy->error ) in fghJoystickRawRead()
337 float xx = ( value - joy->center[ axis ] ) / ( joy->center[ axis ] - in fghJoystickFudgeAxis()
346 xx = ( xx + joy->dead_band[ axis ] ) / ( joy->saturate[ axis ] - in fghJoystickFudgeAxis()
353 float xx = ( value - joy->center [ axis ] ) / ( joy->max[ axis ] - in fghJoystickFudgeAxis()
362 xx = ( xx - joy->dead_band[ axis ] ) / ( joy->saturate[ axis ] - in fghJoystickFudgeAxis()
377 if( joy->error ) in fghJoystickRead()
684 joy->num_buttons = joy->num_axes = 0;
716 …(*(joy->pJoystick.hidDev))->getElementValue ( joy->pJoystick.hidDev, joy->pJoystick.buttonCookies[…
727 …(*(joy->pJoystick.hidDev))->getElementValue ( joy->pJoystick.hidDev, joy->pJoystick.axisCookies[i]…
777 rv = ( *( joy->pJoystick.hidDev ) )->open( joy->pJoystick.hidDev, 0 );
[all …]
/dports/devel/allegro5/allegro5-5.2.7.0/src/win/
H A Dwjoydxnu.cpp888 if (joy) { in joystick_enum_callback()
946 if (!joy) { in joystick_enum_callback()
1014 if (joy) { in joystick_enum_callback()
1043 memset(&joy->parent.info, 0, sizeof(joy->parent.info)); in joydx_inactivate_joy()
1046 memset(&joy->joystate, 0, sizeof(joy->joystate)); in joydx_inactivate_joy()
1048 memset(&joy->guid, 0, sizeof(joy->guid)); in joydx_inactivate_joy()
1358 (void)joy; in joydx_release_joystick()
1495 handle_axis_event(joy, &joy->x_mapping, dwData); in update_joystick()
1497 handle_axis_event(joy, &joy->y_mapping, dwData); in update_joystick()
1499 handle_axis_event(joy, &joy->z_mapping, dwData); in update_joystick()
[all …]
/dports/devel/allegro/allegro-4.4.3.1/src/macosx/
H A Dhidjoy.m70 memset(&joy[i], 0, sizeof(joy[i]));
85 joy[element->app].num_buttons++;
97 joy[element->app].stick[element->col].num_axis++;
98 if (joy[element->app].num_sticks<(element->col+1))
99 joy[element->app].num_sticks=element->col+1;
114 joy[element->app].stick[element->col].name = name_stick;
115 joy[element->app].stick[element->col].num_axis++;
116 if (joy[element->app].num_sticks<(element->col+1))
117 joy[element->app].num_sticks=element->col+1;
131 if (joy[element->app].num_sticks<(element->col+1))
[all …]
/dports/x11-wm/afterstep-stable/afterstep-devel-2.2.12/afterstep/start/1_Desktop/Pictures/Web/
H A DVladstudio_com3 Preview "http://files.vladstudio.com/joy/worldinversed/wall/vladstudio_worldinversed_480x320.jpg"
7 Preview "http://files.vladstudio.com/joy/dawn/wall/vladstudio_dawn_480x320.jpg"
9 Preview "http://files.vladstudio.com/joy/motion/wall/vladstudio_motion_480x320.jpg"
11 Preview "http://files.vladstudio.com/joy/inthisworld/wall/vladstudio_inthisworld_480x320.jpg"
15 Preview "http://files.vladstudio.com/joy/skiing/wall/vladstudio_skiing_480x320.jpg"
17 Preview "http://files.vladstudio.com/joy/rainbows/wall/vladstudio_rainbows_480x320.jpg"
21 Preview "http://files.vladstudio.com/joy/cantsleep/wall/vladstudio_cantsleep_480x320.jpg"
27 Preview "http://files.vladstudio.com/joy/frog/wall/vladstudio_frog_480x320.jpg"
31 Preview "http://files.vladstudio.com/joy/diving/wall/vladstudio_diving_480x320.jpg"
41 Preview "http://files.vladstudio.com/joy/village/wall/vladstudio_village_480x320.jpg"
[all …]
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/input/joystick/
H A Dadc-joystick.c74 input_report_abs(joy->input, joy->axes[i].code, val); in adc_joystick_handle()
77 input_sync(joy->input); in adc_joystick_handle()
165 joy->axes = axes; in adc_joystick_set_axes()
177 struct adc_joystick *joy; in adc_joystick_probe() local
183 joy = devm_kzalloc(dev, sizeof(*joy), GFP_KERNEL); in adc_joystick_probe()
184 if (!joy) in adc_joystick_probe()
188 if (IS_ERR(joy->chans)) { in adc_joystick_probe()
207 joy->num_chans = i; in adc_joystick_probe()
215 joy->input = input; in adc_joystick_probe()
232 joy->buffer = iio_channel_get_all_cb(dev, adc_joystick_handle, joy); in adc_joystick_probe()
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/input/joystick/
H A Dadc-joystick.c74 input_report_abs(joy->input, joy->axes[i].code, val); in adc_joystick_handle()
77 input_sync(joy->input); in adc_joystick_handle()
165 joy->axes = axes; in adc_joystick_set_axes()
177 struct adc_joystick *joy; in adc_joystick_probe() local
183 joy = devm_kzalloc(dev, sizeof(*joy), GFP_KERNEL); in adc_joystick_probe()
184 if (!joy) in adc_joystick_probe()
188 if (IS_ERR(joy->chans)) { in adc_joystick_probe()
207 joy->num_chans = i; in adc_joystick_probe()
215 joy->input = input; in adc_joystick_probe()
232 joy->buffer = iio_channel_get_all_cb(dev, adc_joystick_handle, joy); in adc_joystick_probe()
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/input/joystick/
H A Dadc-joystick.c74 input_report_abs(joy->input, joy->axes[i].code, val); in adc_joystick_handle()
77 input_sync(joy->input); in adc_joystick_handle()
165 joy->axes = axes; in adc_joystick_set_axes()
177 struct adc_joystick *joy; in adc_joystick_probe() local
183 joy = devm_kzalloc(dev, sizeof(*joy), GFP_KERNEL); in adc_joystick_probe()
184 if (!joy) in adc_joystick_probe()
188 if (IS_ERR(joy->chans)) { in adc_joystick_probe()
207 joy->num_chans = i; in adc_joystick_probe()
215 joy->input = input; in adc_joystick_probe()
232 joy->buffer = iio_channel_get_all_cb(dev, adc_joystick_handle, joy); in adc_joystick_probe()
[all …]
/dports/devel/allegro5/allegro5-5.2.7.0/src/gp2xwiz/
H A Dwiz_joystick.c35 static ALLEGRO_JOYSTICK joy; variable
155 joy.info.num_sticks = 1; in joywiz_fill_joy()
156 joy.info.num_buttons = 10; in joywiz_fill_joy()
164 joy.info.button[0].name = "A"; in joywiz_fill_joy()
165 joy.info.button[1].name = "B"; in joywiz_fill_joy()
166 joy.info.button[2].name = "X"; in joywiz_fill_joy()
167 joy.info.button[3].name = "Y"; in joywiz_fill_joy()
168 joy.info.button[4].name = "L"; in joywiz_fill_joy()
175 joy.num = 0; in joywiz_fill_joy()
213 return &joy; in joywiz_get_joystick()
[all …]
/dports/devel/allegro5/allegro5-5.2.7.0/src/android/
H A Dandroid_joystick.c25 ALLEGRO_JOYSTICK *joy; in android_init_joysticks() local
27 joy = (void *)stick; in android_init_joysticks()
57 ALLEGRO_JOYSTICK *joy; in andjoy_init_joystick() local
62 joy = (void *)accel; in andjoy_init_joystick()
65 joy->info.num_sticks = 1; in andjoy_init_joystick()
123 ALLEGRO_JOYSTICK *joy; in andjoy_get_joystick() local
129 joy = &andjoy->parent; in andjoy_get_joystick()
131 return joy; in andjoy_get_joystick()
138 (void)joy; in andjoy_release_joystick()
299 (void)joy; in andjoy_get_name()
[all …]
/dports/games/libretro-uae/libretro-uae-8333daa/sources/src/jd-sdl/
H A Djoystick.c29 SDL_Joystick *joy; member
40 SDL_Joystick *joy; in read_joy() local
46 joy = joys[nr].joy; in read_joy()
47 axes = SDL_JoystickNumAxes (joy); in read_joy()
67 return joys[joy].axles + joys[joy].buttons; in get_joystick_widget_num()
72 if (num >= joys[joy].axles && num < joys[joy].axles + joys[joy].buttons) { in get_joystick_widget_type()
88 return joys[joy].axles; in get_joystick_widget_first()
146 SDL_JoystickClose (joys[i].joy); in close_joystick()
147 joys[i].joy = 0; in close_joystick()
194 SDL_Joystick *joy; in input_get_default_joystick() local
[all …]
/dports/games/OpenLara/OpenLara-b4b19f2/src/platform/nix/
H A Dmain.cpp157 ioctl(joy.fd, JSIOCGAXMAP, joy.axismap); in joyInit()
199 joy.vL = joy.oL = joy.vR = joy.oR = 0.0f; in joyInit()
234 if (joy.oL == 0.0f && joy.vL == 0.0f && joy.oR == 0.0f && joy.vR == 0.0f) in joyRumble()
243 if (joy.vL != 0.0f || joy.vR != 0.0f) { in joyRumble()
245 joy.fx.u.rumble.strong_magnitude = int(joy.vL * 65535); in joyRumble()
246 joy.fx.u.rumble.weak_magnitude = int(joy.vR * 65535); in joyRumble()
249 if (ioctl(joy.fe, EVIOCSFF, &joy.fx) == -1) { in joyRumble()
259 if (joy.oL != 0.0f || joy.oR != 0.0f) { in joyRumble()
267 joy.oL = joy.vL; in joyRumble()
268 joy.oR = joy.vR; in joyRumble()
[all …]
/dports/emulators/uae/uae-0.8.29/src/
H A Dsdl-joystick.c22 SDL_Joystick *joy; member
33 SDL_Joystick *joy; in read_joy() local
39 joy = joys[nr].joy; in read_joy()
40 axes = SDL_JoystickNumAxes (joy); in read_joy()
42 axis = SDL_JoystickGetAxis (joy, i); in read_joy()
60 return joys[joy].axles + joys[joy].buttons; in get_joystick_widget_num()
65 if (num >= joys[joy].axles && num < joys[joy].axles + joys[joy].buttons) { in get_joystick_widget_type()
81 return joys[joy].axles; in get_joystick_widget_first()
90 return SDL_JoystickName (joy); in get_joystick_name()
134 SDL_JoystickClose (joys[i].joy); in close_joysticks()
[all …]
/dports/games/doomsday/doomsday-2.3.1/doomsday/apps/client/net.dengine.client.pack/modules/
H A Dcontrollers.ds75 x = 'joy-button15'
76 o = 'joy-button14'
83 up = 'joy-button5'
87 L1 = 'joy-button11'
88 L2 = 'joy-button9'
89 R1 = 'joy-button12'
90 R2 = 'joy-button10'
91 leftHoriz = 'joy-x'
92 leftVert = 'joy-y'
94 rightVert = 'joy-w'
[all …]
/dports/devel/godot-tools/godot-3.2.3-stable/platform/windows/
H A Djoypad_windows.cpp187 joy->joy_axis.sort(); in setup_dinput_joypad()
191 joy->attached = true; in setup_dinput_joypad()
192 joy->id = num; in setup_dinput_joypad()
194 joy->confirmed = true; in setup_dinput_joypad()
348 if (!joy.attached) { in process_joypads()
354 if (joy.state.dwPacketNumber != joy.last_packet) { in process_joypads()
369 joy.last_packet = joy.state.dwPacketNumber; in process_joypads()
380 } else if (joy.vibrating && joy.ff_end_timestamp != 0) { in process_joypads()
391 if (!joy->attached) in process_joypads()
524 if (joy.attached) { in joypad_vibration_start_xinput()
[all …]
/dports/devel/godot2-tools/godot-2.1.6-stable/platform/windows/
H A Djoystick.cpp176 joy->joy_axis.sort(); in setup_dinput_joystick()
180 joy->attached = true; in setup_dinput_joystick()
181 joy->id = num; in setup_dinput_joystick()
183 joy->confirmed = true; in setup_dinput_joystick()
331 if (!joy.attached) { in process_joysticks()
337 if (joy.state.dwPacketNumber != joy.last_packet) { in process_joysticks()
352 joy.last_packet = joy.state.dwPacketNumber; in process_joysticks()
363 } else if (joy.vibrating && joy.ff_end_timestamp != 0) { in process_joysticks()
374 if (!joy->attached) in process_joysticks()
503 if (joy.attached) { in joystick_vibration_start_xinput()
[all …]
/dports/devel/godot2/godot-2.1.6-stable/platform/windows/
H A Djoystick.cpp176 joy->joy_axis.sort(); in setup_dinput_joystick()
180 joy->attached = true; in setup_dinput_joystick()
181 joy->id = num; in setup_dinput_joystick()
183 joy->confirmed = true; in setup_dinput_joystick()
331 if (!joy.attached) { in process_joysticks()
337 if (joy.state.dwPacketNumber != joy.last_packet) { in process_joysticks()
352 joy.last_packet = joy.state.dwPacketNumber; in process_joysticks()
363 } else if (joy.vibrating && joy.ff_end_timestamp != 0) { in process_joysticks()
374 if (!joy->attached) in process_joysticks()
503 if (joy.attached) { in joystick_vibration_start_xinput()
[all …]
/dports/devel/godot/godot-3.2.3-stable/platform/windows/
H A Djoypad_windows.cpp187 joy->joy_axis.sort(); in setup_dinput_joypad()
191 joy->attached = true; in setup_dinput_joypad()
192 joy->id = num; in setup_dinput_joypad()
194 joy->confirmed = true; in setup_dinput_joypad()
348 if (!joy.attached) { in process_joypads()
354 if (joy.state.dwPacketNumber != joy.last_packet) { in process_joypads()
369 joy.last_packet = joy.state.dwPacketNumber; in process_joypads()
380 } else if (joy.vibrating && joy.ff_end_timestamp != 0) { in process_joypads()
391 if (!joy->attached) in process_joypads()
524 if (joy.attached) { in joypad_vibration_start_xinput()
[all …]
/dports/games/craft/Craft-1.0fbsd/deps/glfw/src/
H A Djoystick.c35 GLFWAPI int glfwJoystickPresent(int joy) in glfwJoystickPresent() argument
39 if (joy < 0 || joy > GLFW_JOYSTICK_LAST) in glfwJoystickPresent()
45 return _glfwPlatformJoystickPresent(joy); in glfwJoystickPresent()
48 GLFWAPI const float* glfwGetJoystickAxes(int joy, int* count) in glfwGetJoystickAxes() argument
54 if (joy < 0 || joy > GLFW_JOYSTICK_LAST) in glfwGetJoystickAxes()
60 return _glfwPlatformGetJoystickAxes(joy, count); in glfwGetJoystickAxes()
69 if (joy < 0 || joy > GLFW_JOYSTICK_LAST) in glfwGetJoystickButtons()
75 return _glfwPlatformGetJoystickButtons(joy, count); in glfwGetJoystickButtons()
78 GLFWAPI const char* glfwGetJoystickName(int joy) in glfwGetJoystickName() argument
82 if (joy < 0 || joy > GLFW_JOYSTICK_LAST) in glfwGetJoystickName()
[all …]
/dports/devel/godot-tools/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/godot2/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 …]

12345678910>>...102