/dports/games/retroarch/RetroArch-1.9.7/input/drivers_joypad/ |
H A D | sdl_dingux_joypad.c | 279 if (joypad->device) in sdl_dingux_joypad_connect() 280 joypad->num_axes = SDL_JoystickNumAxes(joypad->device); in sdl_dingux_joypad_connect() 298 joypad->connected = true; in sdl_dingux_joypad_connect() 306 if (joypad->device) in sdl_dingux_joypad_disconnect() 310 if (joypad->connected) in sdl_dingux_joypad_disconnect() 317 Shake_Stop(joypad->rumble.device, joypad->rumble.weak.id); in sdl_dingux_joypad_disconnect() 320 Shake_Stop(joypad->rumble.device, joypad->rumble.strong.id); in sdl_dingux_joypad_disconnect() 322 Shake_EraseEffect(joypad->rumble.device, joypad->rumble.weak.id); in sdl_dingux_joypad_disconnect() 323 Shake_EraseEffect(joypad->rumble.device, joypad->rumble.strong.id); in sdl_dingux_joypad_disconnect() 524 if (joypad->menu_toggle) in sdl_dingux_joypad_poll() [all …]
|
H A D | sdl_joypad.c | 31 SDL_Joystick *joypad; member 123 if (pad->joypad) in sdl_pad_connect() 126 pad->joypad = NULL; in sdl_pad_connect() 227 if (sdl_pads[id].joypad) in sdl_pad_disconnect() 296 if (sdl_pads[i].joypad) in sdl_joypad_init() 352 if (!pad || !pad->joypad) in sdl_joypad_button() 385 if (!pad || !pad->joypad) in sdl_joypad_axis() 400 if (!pad || !pad->joypad) in sdl_joypad_state() 461 if (!joypad->joypad || !joypad->haptic) in sdl_joypad_set_rumble() 492 SDL_HapticUpdateEffect(joypad->haptic, joypad->rumble_effect, &efx); in sdl_joypad_set_rumble() [all …]
|
H A D | dinput_joypad_inl.h | 70 if (IDirectInputDevice8_CreateEffect(pad->joypad, GUID_ConstantForce, in dinput_create_rumble_effects() 74 if (IDirectInputDevice8_CreateEffect(pad->joypad, GUID_ConstantForce, in dinput_create_rumble_effects() 92 LPDIRECTINPUTDEVICE8 joypad = (LPDIRECTINPUTDEVICE8)p; in enum_axes_cb() local 101 IDirectInputDevice8_SetProperty(joypad, DIPROP_RANGE, &range.diph); in enum_axes_cb() 235 if (!pad || !pad->joypad) in dinput_joypad_button() 243 if (!pad || !pad->joypad) in dinput_joypad_axis() 258 if (!pad || !pad->joypad) in dinput_joypad_state() 286 return port < MAX_USERS && g_pads[port].joypad; in dinput_joypad_query_pad() 320 if (g_pads[i].joypad) in dinput_joypad_destroy() 333 IDirectInputDevice8_Unacquire(g_pads[i].joypad); in dinput_joypad_destroy() [all …]
|
H A D | dinput_joypad_excl.h | 36 if (!pad || !pad->joypad) in dinput_joypad_poll() 79 if (FAILED(IDirectInputDevice8_Poll(pad->joypad))) in dinput_joypad_poll() 81 FAILED(IDirectInputDevice8_Acquire(pad->joypad)) in dinput_joypad_poll() 82 || FAILED(IDirectInputDevice8_Poll(pad->joypad)) in dinput_joypad_poll() 86 ret = IDirectInputDevice8_GetDeviceState(pad->joypad, in dinput_joypad_poll() 100 pad = &g_pads[g_joypad_cnt].joypad; in enum_joypad_cb()
|
/dports/games/libretro-emux/emux-640d4ba/controllers/input/ |
H A D | gb_joypad.c | 28 struct joypad { struct 39 static uint8_t joypad_readb(struct joypad *joypad, address_t address); argument 42 static void update_reg(struct joypad *joypad); 71 void update_reg(struct joypad *joypad) in update_reg() argument 79 joypad->reg.input_right_or_a = !joypad->keys[offset]; in update_reg() 80 joypad->reg.input_left_or_b = !joypad->keys[offset + 1]; in update_reg() 81 joypad->reg.input_up_or_select = !joypad->keys[offset + 2]; in update_reg() 82 joypad->reg.input_down_or_start = !joypad->keys[offset + 3]; in update_reg() 117 struct joypad *joypad; in joypad_init() local 141 joypad->region.data = joypad; in joypad_init() [all …]
|
/dports/games/libretro-freeintv/FreeIntv-5fc8d85/src/ |
H A D | controller.c | 85 int getControllerState(int joypad[], int player) in getControllerState() argument 97 if(joypad[0]!=0) { state |= D_N; } // 0xFB - Up in getControllerState() 102 if(joypad[0]!=0 && joypad[2]!=0) { state |= D_NW; } // 0xE3 - Up+Left in getControllerState() 103 if(joypad[0]!=0 && joypad[3]!=0) { state |= D_NE; } // 0xE9 - Up+Right in getControllerState() 104 if(joypad[1]!=0 && joypad[2]!=0) { state |= D_SW; } // 0x36 - Down+Left in getControllerState() 105 if(joypad[1]!=0 && joypad[3]!=0) { state |= D_SE; } // 0x3C - Down+Right in getControllerState() 115 Lx = joypad[14] / 8192; in getControllerState() 116 Ly = joypad[15] / 8192; in getControllerState() 130 Rx = joypad[16] / 8192; in getControllerState() 131 Ry = joypad[17] / 8192; in getControllerState() [all …]
|
/dports/emulators/vba/VisualBoyAdvance-1.7.2/src/win32/ |
H A D | Joypad.cpp | 33 extern USHORT joypad[4][13]; 217 joypad[which][KEY_LEFT] = key; in assignKey() 220 joypad[which][KEY_RIGHT] = key; in assignKey() 223 joypad[which][KEY_UP] = key; in assignKey() 226 joypad[which][KEY_BUTTON_SPEED] = key; in assignKey() 232 joypad[which][KEY_DOWN] = key; in assignKey() 235 joypad[which][KEY_BUTTON_A] = key; in assignKey() 238 joypad[which][KEY_BUTTON_B] = key; in assignKey() 241 joypad[which][KEY_BUTTON_L] = key; in assignKey() 244 joypad[which][KEY_BUTTON_R] = key; in assignKey() [all …]
|
H A D | DirectInput.cpp | 87 USHORT joypad[4][13] = { variable 122 joypad[i][KEY_LEFT] = key; in winReadKeys() 125 joypad[i][KEY_RIGHT] = key; in winReadKeys() 128 joypad[i][KEY_UP] = key; in winReadKeys() 131 joypad[i][KEY_DOWN] = key; in winReadKeys() 134 joypad[i][KEY_BUTTON_A] = key; in winReadKeys() 137 joypad[i][KEY_BUTTON_B] = key; in winReadKeys() 140 joypad[i][KEY_BUTTON_L] = key; in winReadKeys() 354 dev = joypad[i][KEY_UP] >> 8; in checkKeys() 358 joypad[i][KEY_UP] = DIK_UP; in checkKeys() [all …]
|
/dports/devel/allegro5/allegro5-5.2.7.0/demos/cosmic_protector/src/ |
H A D | joypad_handler.m | 7 static joypad_handler *joypad; 180 joypad = [[joypad_handler alloc] init]; 181 [joypad performSelectorOnMainThread: @selector(start) withObject:nil waitUntilDone:YES]; 196 if (!joypad || !joypad->connected) { 201 *u = joypad->up; 202 *d = joypad->down; 203 *l = joypad->left; 204 *r = joypad->right; 205 *b = joypad->bb; 206 *esc = joypad->bx; [all …]
|
/dports/emulators/snes9x-gtk/snes9x-1.54.1/ |
H A D | controls.cpp | 1306 if (cmd.button.joypad.toggle && !(cmd.button.joypad.sticky || cmd.button.joypad.turbo)) in S9xGetCommandT() 2050 if (cmd.button.joypad.turbo) joypad[cmd.button.joypad.idx].toggleturbo ^= r; in S9xApplyCommand() 2051 if (cmd.button.joypad.sticky) joypad[cmd.button.joypad.idx].togglestick ^= r; in S9xApplyCommand() 2058 st = r & joypad[cmd.button.joypad.idx].togglestick & joypad[cmd.button.joypad.idx].toggleturbo; in S9xApplyCommand() 2105 joypad[cmd.button.joypad.idx].buttons |= r; in S9xApplyCommand() 2106 joypad[cmd.button.joypad.idx].turbos |= t; in S9xApplyCommand() 2107 joypad[cmd.button.joypad.idx].buttons ^= s; in S9xApplyCommand() 2108 joypad[cmd.button.joypad.idx].buttons &= ~(joypad[cmd.button.joypad.idx].turbos & st); in S9xApplyCommand() 2114 joypad[cmd.button.joypad.idx].buttons &= ~(joypad[cmd.button.joypad.idx].turbos & t); in S9xApplyCommand() 2643 joypad[cmd.axis.joypad.idx].buttons |= p; in S9xApplyCommand() [all …]
|
/dports/games/libretro-snes9x/snes9x-73aa348/ |
H A D | controls.cpp | 105 } joypad[8]; variable 1990 if (cmd.button.joypad.turbo) joypad[cmd.button.joypad.idx].toggleturbo ^= r; in S9xApplyCommand() 1991 if (cmd.button.joypad.sticky) joypad[cmd.button.joypad.idx].togglestick ^= r; in S9xApplyCommand() 1998 st = r & joypad[cmd.button.joypad.idx].togglestick & joypad[cmd.button.joypad.idx].toggleturbo; in S9xApplyCommand() 2045 joypad[cmd.button.joypad.idx].buttons |= r; in S9xApplyCommand() 2046 joypad[cmd.button.joypad.idx].turbos |= t; in S9xApplyCommand() 2047 joypad[cmd.button.joypad.idx].buttons ^= s; in S9xApplyCommand() 2048 joypad[cmd.button.joypad.idx].buttons &= ~(joypad[cmd.button.joypad.idx].turbos & st); in S9xApplyCommand() 2054 joypad[cmd.button.joypad.idx].buttons &= ~(joypad[cmd.button.joypad.idx].turbos & t); in S9xApplyCommand() 2611 joypad[cmd.axis.joypad.idx].buttons |= p; in S9xApplyCommand() [all …]
|
/dports/emulators/visualboyadvance-m/visualboyadvance-m-VBA-M_Beta_2/src/sdl/ |
H A D | inputSDL.cpp | 146 return joypad[pad][key]; in inputGetKeymap() 151 joypad[pad][key] = code; in inputSetKeymap() 224 if(key == joypad[j][i]) in sdlUpdateKey() 244 int dev = (joypad[j][i] >> 16); in sdlUpdateJoyButton() 245 int b = joypad[j][i] & 0xffff; in sdlUpdateJoyButton() 276 int a = joypad[j][i] & 0xffff; in sdlUpdateJoyHat() 339 int a = joypad[j][i] & 0xffff; in sdlUpdateJoyAxis() 394 if (!joypad[PAD_MAIN][i]) in inputInitJoysticks() 395 joypad[PAD_MAIN][i] = joypad[PAD_DEFAULT][i]; in inputInitJoysticks() 407 int dev = joypad[j][i] >> 16; in inputInitJoysticks() [all …]
|
/dports/games/libretro-quicknes/QuickNES_Core-901248a/nes_emu/ |
H A D | Nes_Core.cpp | 40 memset( &joypad, 0, sizeof joypad ); in Nes_Core() 101 *out->joypad = joypad; in save_state() 147 joypad = *in.joypad; in load_state() 254 if ( joypad.w4016 & 1 & ~data ) in write_io() 257 joypad.joypad_latches [0] = current_joypad [0]; in write_io() 258 joypad.joypad_latches [1] = current_joypad [1]; in write_io() 260 joypad.w4016 = data; in write_io() 291 unsigned long result = joypad.joypad_latches [addr & 1]; in read_io() 292 if ( !(joypad.w4016 & 1) ) in read_io() 339 joypad.joypad_latches [0] = 0; in reset() [all …]
|
/dports/emulators/hugo/hugo-2.12/doc/ |
H A D | joypad.lyx | 51 This document briefly describes how to use your joypad with Hu-Go!. 89 joypad, two players with joypads, one player on keyboard and one on joypad, 94 In each tab, you can change the key, joypad axis or joypad button assigned 96 key, joypad axis or joypad button you want to assign. 113 For the joypad itself, if you do not want to use one for the current player, 130 , else change it to fit the number of the joypad you want to use.
|
/dports/x11/plasma5-plasma-desktop/plasma-desktop-5.23.5/kcms/joystick/ |
H A D | joystick.desktop | 93 X-KDE-Keywords=joystick,gamepad,controller,hardware,games,gaming,pad,devices,joypad,analog sticks,c… 97 X-KDE-Keywords[en_GB]=joystick,gamepad,controller,hardware,games,gaming,pad,devices,joypad,analogue… 99 …gamepad,kontrola,hardwarea,burdindegia,jokoak,joko,kuxina,pad,gailuak,joypad,joypad,makila analogi… 102 X-KDE-Keywords[hu]=botkormány,gombkormány,kontroller,hardver,játékok,játék,tábla,eszközök,joypad,an… 103 X-KDE-Keywords[ia]=joystick,gamepad,controllator,hardware,jocos,gìjocar,pad,dispositivos,joypad,bas… 104 X-KDE-Keywords[it]=joystick,gamepad,controller,hardware,giochi,gioco,pad,dispositivi,joypad,stick a… 106 X-KDE-Keywords[nl]=joystick,gamepad,controller,hardware,spellen,games,gaming,pad,apparaten, joypad,… 108 X-KDE-Keywords[pl]=joystick,pad do gier,kontroler,sprzęt,gry,granie,pad,urządzenia,joypad,drążki an… 109 X-KDE-Keywords[pt_BR]=joystick,gamepad,controlador,hardware,jogos,jogar,pad,dispositivos,joypad,con… 111 X-KDE-Keywords[sk]=joystick,gamepad,ovládač,hardvér,hry,hranie,podložka,zariadenia,joypad,analógové… [all …]
|
/dports/emulators/gbe/gbe/ |
H A D | Makefile | 3 OBJS = main.o rom.o mem.o cpu.o vram.o debug.o joypad.o jlib.o x11.o svga.o 29 joypad.o: joypad.c joypad.c jlib.h 30 $(CC) $(CFLAGS) -o joypad.o -c joypad.c
|
/dports/emulators/vba/VisualBoyAdvance-1.7.2/src/sdl/ |
H A D | SDL.cpp | 274 u16 joypad[4][12] = { variable 1420 if((joypad[j][i] & 0xf000) == 0) { in sdlUpdateKey() 1421 if(key == joypad[j][i]) in sdlUpdateKey() 1441 int dev = (joypad[j][i] >> 12); in sdlUpdateJoyButton() 1442 int b = joypad[j][i] & 0xfff; in sdlUpdateJoyButton() 1472 int dev = (joypad[j][i] >> 12); in sdlUpdateJoyHat() 1473 int a = joypad[j][i] & 0xfff; in sdlUpdateJoyHat() 1535 int dev = (joypad[j][i] >> 12); in sdlUpdateJoyAxis() 1536 int a = joypad[j][i] & 0xfff; in sdlUpdateJoyAxis() 1600 int dev = joypad[j][i] >> 12; in sdlCheckKeys() [all …]
|
/dports/games/libretro-beetle_bsnes/beetle-bsnes-libretro-b65ded5bde278c18af538c687db9b72c995b220a/mednafen/snes/src/lib/nall/ |
H A D | input.hpp | 242 Joypad& joypad(unsigned = 0); 265 if(joypad(i).belongsTo(scancode)) return i; in numberDecode() 272 if(joypad(i).isHat(scancode)) return scancode - joypad(i).hat(0); in hatDecode() 279 if(joypad(i).isAxis(scancode)) return scancode - joypad(i).axis(0); in axisDecode() 286 if(joypad(i).isButton(scancode)) return scancode - joypad(i).button(0); in buttonDecode() 293 if(joypad(i).isHat(scancode)) return true; in isAnyHat() 300 if(joypad(i).isAxis(scancode)) return true; in isAnyAxis() 307 if(joypad(i).isButton(scancode)) return true; in isAnyButton() 348 inline Joypad& joypad(unsigned id) { in joypad() function 378 if(joypad(i).belongsTo(code)) return joypad(i).encode(code); in encode()
|
/dports/games/libretro-mame2003_plus/mame2003-plus-libretro-17e9889/src/machine/ |
H A D | snes_machine.c | 44 } joypad[4]; variable 463 …value = ((joypad[0].low | (joypad[0].high << 8) | 0x10000) >> (15 - (joypad[0].oldrol++ % 16))) & … in READ_HANDLER() 474 …value = ((joypad[1].low | (joypad[1].high << 8) | 0x10000) >> (15 - (joypad[1].oldrol++ % 16))) & … in READ_HANDLER() 508 return joypad[0].low; in READ_HANDLER() 510 return joypad[0].high; in READ_HANDLER() 512 return joypad[1].low; in READ_HANDLER() 514 return joypad[1].high; in READ_HANDLER() 516 return joypad[2].low; in READ_HANDLER() 518 return joypad[2].high; in READ_HANDLER() 520 return joypad[3].low; in READ_HANDLER() [all …]
|
/dports/devel/godot-tools/godot-3.2.3-stable/platform/osx/ |
H A D | joypad_osx.cpp | 39 joypad::joypad() { in joypad() function in joypad 62 void joypad::free() { in free() 101 void joypad::add_hid_element(IOHIDElementRef p_element) { in add_hid_element() 202 joypad *joy = (joypad *)p_parameter; in hid_element_added() 206 void joypad::add_hid_elements(CFArrayRef p_array) { in add_hid_elements() 248 joypad new_joypad; in _device_added() 355 bool joypad::config_force_feedback(io_service_t p_service) { in config_force_feedback() 377 bool joypad::check_ff_features() { in check_ff_features() 468 joypad &joy = device_list.write[i]; in process_joypads() 503 joypad *joy = &device_list.write[get_joy_index(p_id)]; in joypad_vibration_start() [all …]
|
H A D | joypad_osx.h | 59 struct joypad { struct 87 joypad(); argument 100 Vector<joypad> device_list; 103 bool configure_joypad(IOHIDDeviceRef p_device_ref, joypad *p_joy);
|
/dports/devel/godot/godot-3.2.3-stable/platform/osx/ |
H A D | joypad_osx.cpp | 39 joypad::joypad() { in joypad() function in joypad 62 void joypad::free() { in free() 101 void joypad::add_hid_element(IOHIDElementRef p_element) { in add_hid_element() 202 joypad *joy = (joypad *)p_parameter; in hid_element_added() 206 void joypad::add_hid_elements(CFArrayRef p_array) { in add_hid_elements() 248 joypad new_joypad; in _device_added() 355 bool joypad::config_force_feedback(io_service_t p_service) { in config_force_feedback() 377 bool joypad::check_ff_features() { in check_ff_features() 468 joypad &joy = device_list.write[i]; in process_joypads() 503 joypad *joy = &device_list.write[get_joy_index(p_id)]; in joypad_vibration_start() [all …]
|
H A D | joypad_osx.h | 59 struct joypad { struct 87 joypad(); argument 100 Vector<joypad> device_list; 103 bool configure_joypad(IOHIDDeviceRef p_device_ref, joypad *p_joy);
|
/dports/games/libretro-mame2003/mame2003-libretro-4358db4/src/machine/ |
H A D | snes_machine.c | 47 } joypad[4]; variable 537 …value = ((joypad[0].low | (joypad[0].high << 8) | 0x10000) >> (15 - (joypad[0].oldrol++ % 16))) & … in READ_HANDLER() 548 …value = ((joypad[1].low | (joypad[1].high << 8) | 0x10000) >> (15 - (joypad[1].oldrol++ % 16))) & … in READ_HANDLER() 582 return joypad[0].low; in READ_HANDLER() 584 return joypad[0].high; in READ_HANDLER() 586 return joypad[1].low; in READ_HANDLER() 588 return joypad[1].high; in READ_HANDLER() 590 return joypad[2].low; in READ_HANDLER() 592 return joypad[2].high; in READ_HANDLER() 594 return joypad[3].low; in READ_HANDLER() [all …]
|
/dports/devel/z88dk/z88dk/libsrc/target/gb/gbdk/ |
H A D | joypad.asm | 4 MODULE joypad 6 PUBLIC joypad 15 joypad: label
|