/dports/devel/allegro/allegro-4.4.3.1/demos/skater/source/ |
H A D | gamepad.c | 55 joy[(private_data[i] >> 8) & 255].button[private_data[i] >> 16].b; in poll() 60 joy[(private_data[i] >> 8) & 255]. in poll() 63 d1 : joy[(private_data[i] >> 8) & 255]. in poll() 79 stickc = joy[joyc].num_sticks; in calibrate_button() 81 axisc = joy[joyc].stick[stickc].num_axis; in calibrate_button() 83 if (joy[joyc].stick[stickc].axis[axisc].d1) { in calibrate_button() 89 if (joy[joyc].stick[stickc].axis[axisc].d2) { in calibrate_button() 98 buttonc = joy[joyc].num_buttons; in calibrate_button() 100 if (joy[joyc].button[buttonc].b) { in calibrate_button()
|
/dports/devel/liblouis/liblouis-3.20.0/tests/yaml/ |
H A D | face-with-tears-of-joy.yaml | 9 - '"<face with tears of joy">' 11 - 'a "<face with tears of joy">' 13 - '"<face with tears of joy"> b' 15 - 'a "<face with tears of joy"> b' 17 - 'before "<face with tears of joy">' 19 - '"<face with tears of joy"> after' 21 - 'before "<face with tears of joy"> after'
|
/dports/games/brumbrumrally/brumbrumrally-0.7/src/ |
H A D | JoystickDriver.cpp | 26 JoystickDriver::JoystickDriver(const std::string& name, SDL_Joystick* joy) in JoystickDriver() argument 28 joy(joy) in JoystickDriver() 40 if (joy == 0) in drive() 52 Sint16 axis = SDL_JoystickGetAxis(joy, inputs[i].index); in drive() 70 if (SDL_JoystickGetHat(joy, inputs[i].index) & inputs[i].state) in drive() 76 if (SDL_JoystickGetButton(joy, inputs[i].index) != 0) in drive() 90 if (joy == 0) in setControl() 95 int joyIndex = SDL_JoystickIndex(joy); in setControl()
|
/dports/emulators/anese/ANESE-0.9.1/src/nes/wiring/ |
H A D | cpu_mmu.cc | 10 Memory& joy in CPU_MMU() argument 15 joy(joy) in CPU_MMU() 41 ADDR(0x4016 ) return this->joy.read(addr); in read() 42 ADDR(0x4017 ) return this->joy.read(addr); // not APU in read() 58 ADDR(0x4016 ) return this->joy.peek(addr); in peek() 59 ADDR(0x4017 ) return this->joy.peek(addr); // not APU in peek() 91 ADDR(0x4016 ) return this->joy.write(addr, val); in write()
|
/dports/games/libretro-fbneo/FBNeo-bbe3c05/src/burner/qt/ |
H A D | qinputinterface.cpp | 231 int QInputInterface::joystickHat(int joy, int hat) in joystickHat() argument 236 if (joy >= m_joysticks.size() || joy < 0) in joystickHat() 239 if (hat > SDL_JoystickNumHats(m_joysticks[joy])) in joystickHat() 242 return SDL_JoystickGetHat(m_joysticks[joy], hat); in joystickHat() 245 int QInputInterface::joystickAxis(int joy, int axis) in joystickAxis() argument 250 if (joy >= m_joysticks.size() || joy < 0) in joystickAxis() 253 if (axis > SDL_JoystickNumAxes(m_joysticks[joy])) in joystickAxis() 256 return SDL_JoystickGetAxis(m_joysticks[joy], axis); in joystickAxis() 259 int QInputInterface::joystickButton(int joy, int button) in joystickButton() argument 264 if (joy >= m_joysticks.size() || joy < 0) in joystickButton() [all …]
|
/dports/games/libretro-fbalpha/fbalpha-84eb9d9/src/burner/qt/ |
H A D | qinputinterface.cpp | 231 int QInputInterface::joystickHat(int joy, int hat) in joystickHat() argument 236 if (joy >= m_joysticks.size() || joy < 0) in joystickHat() 239 if (hat > SDL_JoystickNumHats(m_joysticks[joy])) in joystickHat() 242 return SDL_JoystickGetHat(m_joysticks[joy], hat); in joystickHat() 245 int QInputInterface::joystickAxis(int joy, int axis) in joystickAxis() argument 250 if (joy >= m_joysticks.size() || joy < 0) in joystickAxis() 253 if (axis > SDL_JoystickNumAxes(m_joysticks[joy])) in joystickAxis() 256 return SDL_JoystickGetAxis(m_joysticks[joy], axis); in joystickAxis() 259 int QInputInterface::joystickButton(int joy, int button) in joystickButton() argument 264 if (joy >= m_joysticks.size() || joy < 0) in joystickButton() [all …]
|
/dports/graphics/glx-utils/demos-5435fc7fbd332e171da9a71e33a9b190e9462cf0/src/demos/ |
H A D | tunnel2.c | 369 JOYINFO joy; in dojoy() local 376 if (max[0] < joy.wXpos) in dojoy() 377 max[0] = joy.wXpos; in dojoy() 378 if (min[0] > joy.wXpos) in dojoy() 379 min[0] = joy.wXpos; in dojoy() 382 if (max[1] < joy.wYpos) in dojoy() 383 max[1] = joy.wYpos; in dojoy() 384 if (min[1] > joy.wYpos) in dojoy() 385 min[1] = joy.wYpos; in dojoy() 395 if (joy.wButtons & JOY_BUTTON1) in dojoy() [all …]
|
/dports/graphics/mesa-demos/mesa-demos-8.4.0/src/demos/ |
H A D | tunnel2.c | 369 JOYINFO joy; in dojoy() local 376 if (max[0] < joy.wXpos) in dojoy() 377 max[0] = joy.wXpos; in dojoy() 378 if (min[0] > joy.wXpos) in dojoy() 379 min[0] = joy.wXpos; in dojoy() 382 if (max[1] < joy.wYpos) in dojoy() 383 max[1] = joy.wYpos; in dojoy() 384 if (min[1] > joy.wYpos) in dojoy() 385 min[1] = joy.wYpos; in dojoy() 395 if (joy.wButtons & JOY_BUTTON1) in dojoy() [all …]
|
/dports/games/bomberclone/bomberclone-0.11.9/src/ |
H A D | keyb.c | 14 SDL_Joystick *joy[2]; variable 214 n = SDL_JoystickGetButton ( joy[j], i ); in keyb_config_joypad() 309 if ( joy[0] != NULL ) { in joypad_config() 323 if ( joy[1] != NULL ) { in joypad_config() 405 joy[0] = joy[1] = NULL; in keyb_init() 407 joy[0] = SDL_JoystickOpen (0); in keyb_init() 408 if (joy[0]) in keyb_init() 409 joy[1] = SDL_JoystickOpen (1); in keyb_init() 421 if (joy[0]) { in keyb_loop() 431 if (joy[j]) { in keyb_loop() [all …]
|
/dports/games/flightgear/flightgear-2020.3.11/src/Input/ |
H A D | FGJoystickInput.cxx | 102 joystick* joy = &joysticks[i]; in _remove() local 104 if (all || (!joy->predefined)) in _remove() 107 joy->plibJS.reset(); in _remove() 108 joy->clearAxesAndButtons(); in _remove() 358 jsJoystick * js = joy->plibJS.get(); in updateJoystick() 389 for (j = 0; j < joy->naxes; j++) { in updateJoystick() 392 if (j < joy->naxes) { in updateJoystick() 413 for (int j = 0; j < joy->naxes; j++) { in updateJoystick() 414 axis &a = joy->axes[j]; in updateJoystick() 428 last_state = joy->axes[j].low.last_state || joy->axes[j].high.last_state; in updateJoystick() [all …]
|
/dports/games/dodgindiamond2/dd2-0.2.2/src/ |
H A D | menu.c | 30 extern SDL_Joystick *joy[2]; 93 if(joy[playern-1] && player[playern-1].joy) in getName() 108 if(joy[playern-1] && player[playern-1].joy) in getName() 357 if(joy[0]) in configure() 361 i=SDL_JoystickGetAxis(joy[0],1); in configure() 373 if(SDL_JoystickGetButton(joy[0], 0)) in configure() 379 if(SDL_JoystickGetButton(joy[0], 1)) in configure() 408 if(joy[0]) { in configure() 414 if(joy[1]) { in configure() 534 if(joy[0]) in menu() [all …]
|
/dports/games/penguin-command/penguin-command-1.6.11/src/ |
H A D | joystick.c | 4 static SDL_Joystick *joy=NULL; variable 12 joy = SDL_JoystickOpen(0); in JoystickInit() 23 if(!joy) return; in JoystickMove() 25 x = SDL_JoystickGetAxis(joy, 0); in JoystickMove() 26 y = SDL_JoystickGetAxis(joy, 1); in JoystickMove()
|
/dports/games/r1q2/r1q2-8012_5/linux/ |
H A D | gl_sdl.c | 125 static SDL_Joystick *joy; variable 192 if (joy) { in RW_IN_Shutdown() 193 SDL_JoystickClose(joy); in RW_IN_Shutdown() 194 joy = NULL; in RW_IN_Shutdown() 301 if (joystick_avail && joy) { in RW_IN_Move() 567 joy = NULL; in init_joystick() 581 if (joy) { in init_joystick() 589 if (!joy) { in init_joystick() 609 joy = NULL; in InitJoystick() 623 if (joy) { in InitJoystick() [all …]
|
/dports/games/libretro-uae/libretro-uae-8333daa/sources/src/ |
H A D | inputdevice.c | 1942 mouse_x[joy] = (mouse_x[joy] & 0xfc) | cntx; in joymousecounter() 1948 mouse_y[joy] = (mouse_y[joy] & 0xfc) | cnty; in joymousecounter() 1951 mouse_frame_x[joy] = mouse_x[joy]; in joymousecounter() 1952 mouse_frame_y[joy] = mouse_y[joy]; in joymousecounter() 2106 for (joy = 0; joy < 2; joy++) { in cap_check() 2135 …if ((is_joystick_pullup (joy) && digital_port[joy][i]) || (is_mouse_pullup (joy) && mouse_port[joy… in cap_check() 2156 if ((digital_port[joy][i] || mouse_port[joy]) && pot_dat_act[joy][i] == 2) { in cap_check() 3242 int left = oleft[joy], right = oright[joy], top = otop[joy], bot = obot[joy]; in handle_input_event() 3321 if (joy == 0 || joy == 1) in handle_input_event() 5001 for (joy = 0; used[joy]; joy++); in compatibility_copy() [all …]
|
/dports/games/libretro-uae/libretro-uae-8333daa/sources/src/jd-none/ |
H A D | joystick.c | 45 static const char *get_joystick_friendlyname (unsigned int joy) in get_joystick_friendlyname() argument 50 static const char *get_joystick_uniquename (unsigned int joy) in get_joystick_uniquename() argument 55 static unsigned int get_joystick_widget_num (unsigned int joy) in get_joystick_widget_num() argument 60 static int get_joystick_widget_type (unsigned int joy, unsigned int num, char *name, uae_u32 *code) in get_joystick_widget_type() argument 65 static int get_joystick_widget_first (unsigned int joy, int type) in get_joystick_widget_first() argument
|
/dports/games/hedgewars-server/hedgewars-src-1.0.0/hedgewars/ |
H A D | uInputHandler.pas | 58 procedure ControllerAxisEvent(joy, axis: Byte; value: Integer); 59 procedure ControllerHatEvent(joy, hat, value: Byte); 60 procedure ControllerButtonEvent(joy, button: Byte; pressed: Boolean); 612 procedure ControllerAxisEvent(joy, axis: Byte; value: Integer); 617 … k:= k + joy * (ControllerNumAxes[joy]*2 + ControllerNumHats[joy]*4 + ControllerNumButtons[joy]*2); 622 procedure ControllerHatEvent(joy, hat, value: Byte); 627 … k:= k + joy * (ControllerNumAxes[joy]*2 + ControllerNumHats[joy]*4 + ControllerNumButtons[joy]*2); 628 ProcessKey(k + ControllerNumAxes[joy]*2 + hat*4 + 0, (value and SDL_HAT_UP) <> 0); 634 procedure ControllerButtonEvent(joy, button: Byte; pressed: Boolean); 639 … k:= k + joy * (ControllerNumAxes[joy]*2 + ControllerNumHats[joy]*4 + ControllerNumButtons[joy]*2); [all …]
|
/dports/games/hedgewars/hedgewars-src-1.0.0/hedgewars/ |
H A D | uInputHandler.pas | 58 procedure ControllerAxisEvent(joy, axis: Byte; value: Integer); 59 procedure ControllerHatEvent(joy, hat, value: Byte); 60 procedure ControllerButtonEvent(joy, button: Byte; pressed: Boolean); 612 procedure ControllerAxisEvent(joy, axis: Byte; value: Integer); 617 … k:= k + joy * (ControllerNumAxes[joy]*2 + ControllerNumHats[joy]*4 + ControllerNumButtons[joy]*2); 622 procedure ControllerHatEvent(joy, hat, value: Byte); 627 … k:= k + joy * (ControllerNumAxes[joy]*2 + ControllerNumHats[joy]*4 + ControllerNumButtons[joy]*2); 628 ProcessKey(k + ControllerNumAxes[joy]*2 + hat*4 + 0, (value and SDL_HAT_UP) <> 0); 634 procedure ControllerButtonEvent(joy, button: Byte; pressed: Boolean); 639 … k:= k + joy * (ControllerNumAxes[joy]*2 + ControllerNumHats[joy]*4 + ControllerNumButtons[joy]*2); [all …]
|
/dports/emulators/vice/vice-3.5/src/arch/gtk3/ |
H A D | Makefile.in | 119 joy-osx-hidmgr.c joy-osx-hidutil.c joy-osx.c joy-unix-usb.c \ 120 joy-unix.c joy-win32-dinput-handle.c joy-win32.c kbd.c \ 140 joy-osx-hid.$(OBJEXT) joy-osx-hidmgr.$(OBJEXT) \ 141 joy-osx-hidutil.$(OBJEXT) joy-osx.$(OBJEXT) \ 142 joy-unix-usb.$(OBJEXT) joy-unix.$(OBJEXT) \ 143 joy-win32-dinput-handle.$(OBJEXT) joy-win32.$(OBJEXT) \ 188 ./$(DEPDIR)/joy-osx-hidutil.Po ./$(DEPDIR)/joy-osx.Po \ 189 ./$(DEPDIR)/joy-unix-usb.Po ./$(DEPDIR)/joy-unix.Po \ 609 joy-osx-hidutil.c joy-osx.c joy-unix-usb.c joy-unix.c \ 634 joy-osx.h \ [all …]
|
/dports/games/libretro-uae/libretro-uae-8333daa/sources/src/jd-amigaos/ |
H A D | joystick.c | 107 static const char *get_joystick_friendlyname (unsigned int joy) in get_joystick_friendlyname() argument 110 sprintf (name, "Joy port %d", joy); in get_joystick_friendlyname() 114 static const char *get_joystick_uniquename (unsigned int joy) in get_joystick_uniquename() argument 117 sprintf (name, "JOY%d", joy); in get_joystick_uniquename() 121 static unsigned int get_joystick_widget_num (unsigned int joy) in get_joystick_widget_num() argument 126 static int get_joystick_widget_type (unsigned int joy, unsigned int num, char *name, uae_u32 *code) in get_joystick_widget_type() argument 140 static int get_joystick_widget_first (unsigned int joy, int type) in get_joystick_widget_first() argument
|
/dports/games/blobby/blobby-1.0/src/input_device/ |
H A D | JoystickPool.cpp | 23 SDL_Joystick* joy = mJoyMap[id]; in getJoystick() local 25 if (!joy) in getJoystick() 29 return joy; in getJoystick() 62 joy = 0; in JoystickAction() 79 joy = JoystickPool::getSingleton().getJoystick(joyid); in JoystickAction() 90 joy = JoystickPool::getSingleton().getJoystick(action.joyid); in JoystickAction()
|
/dports/games/rottdc/rottdc-1.0-2/rott/ |
H A D | rt_in.h | 197 void IN_GetJoyAbs (word joy, word *xp, word *yp); 198 void INL_GetJoyDelta (word joy, int *dx, int *dy); 199 word INL_GetJoyButtons (word joy); 201 void INL_SetJoyScale (word joy); 202 void IN_SetupJoy (word joy, word minx, word maxx, word miny, word maxy); 203 boolean INL_StartJoy (word joy); 204 void INL_ShutJoy (word joy);
|
/dports/emulators/mednafen/mednafen/src/nes/ |
H A D | input.cpp | 441 static uint8 joy[4]={0,0,0,0}; variable 449 return(joy[0]|joy[1]|joy[2]|joy[3]); in MDFN_GetJoyJoy() 473 ret = ((joy[w]>>(joy_readbit[w]))&1); in ReadGPVS() 487 ret = ((joy[w]>>(joy_readbit[w]))&1); in ReadGP() 559 SFVAR(joy[w + 0]), in StateActionGP() 560 SFVAR(joy[w + 2]), in StateActionGP() 578 SFPTR8(joy, 4), in StateActionGPFC() 599 ret |= ((joy[2+w]>>(F4ReadBit[w]))&1)<<1; in ReadFami4() 608 joy[w] = *(uint8*)data; in UpdateGamepad() 645 MDFN_VSUniSwap(&joy[0], &joy[1]); in MDFN_UpdateInput() [all …]
|
/dports/games/openclaw/OpenClaw-0.0-51-gbac7730/Box2D/glfw/ |
H A D | input.c | 526 GLFWAPI int glfwJoystickPresent(int joy) in glfwJoystickPresent() argument 530 if (joy < 0 || joy > GLFW_JOYSTICK_LAST) in glfwJoystickPresent() 536 return _glfwPlatformJoystickPresent(joy); in glfwJoystickPresent() 539 GLFWAPI const float* glfwGetJoystickAxes(int joy, int* count) in glfwGetJoystickAxes() argument 545 if (joy < 0 || joy > GLFW_JOYSTICK_LAST) in glfwGetJoystickAxes() 551 return _glfwPlatformGetJoystickAxes(joy, count); in glfwGetJoystickAxes() 560 if (joy < 0 || joy > GLFW_JOYSTICK_LAST) in glfwGetJoystickButtons() 566 return _glfwPlatformGetJoystickButtons(joy, count); in glfwGetJoystickButtons() 569 GLFWAPI const char* glfwGetJoystickName(int joy) in glfwGetJoystickName() argument 573 if (joy < 0 || joy > GLFW_JOYSTICK_LAST) in glfwGetJoystickName() [all …]
|
/dports/games/triplane/triplane-classic-1.08.r20130224/src/io/ |
H A D | joystick.cpp | 196 Sint16 *allocate_axis_state(int joy) { in allocate_axis_state() argument 197 return (Sint16 *) walloc(SDL_JoystickNumAxes(joydev[joy]) * sizeof(Sint16)); in allocate_axis_state() 201 void save_axis_state(Sint16 * axes, int joy) { in save_axis_state() argument 204 num = SDL_JoystickNumAxes(joydev[joy]); in save_axis_state() 208 axes[i] = SDL_JoystickGetAxis(joydev[joy], i); in save_axis_state() 213 void find_changed_axis(struct joystick_action *act, Sint16 * idle, Sint16 * current, int joy) { in find_changed_axis() argument 216 num = SDL_JoystickNumAxes(joydev[joy]); in find_changed_axis() 241 int find_changed_button(struct joystick_action *act, int joy) { in find_changed_button() argument 244 num = SDL_JoystickNumButtons(joydev[joy]); in find_changed_button() 248 if (SDL_JoystickGetButton(joydev[joy], i)) { in find_changed_button()
|
/dports/games/libretro-uae/libretro-uae-8333daa/sources/src/jd-linuxold/ |
H A D | joystick.c | 192 static TCHAR *get_joystick_friendlyname (int joy) in get_joystick_friendlyname() argument 195 sprintf (name, "%d: %s%d", joy + 1, js_prefix, joy); in get_joystick_friendlyname() 199 static TCHAR *get_joystick_uniquename (int joy) in get_joystick_uniquename() argument 202 sprintf (name, "%d%s%d", joy + 1, js_prefix, joy); in get_joystick_uniquename() 206 static int get_joystick_widget_num (int joy) in get_joystick_widget_num() argument 211 static int get_joystick_widget_type (int joy, int num, TCHAR *name, uae_u32 *dummy) in get_joystick_widget_type() argument 225 static int get_joystick_widget_first (int joy, int type) in get_joystick_widget_first() argument
|