Lines Matching refs:szJoystickButton

578 …Element(SDL_GameController *gamecontroller, const char *szGameButton, const char *szJoystickButton)  in SDL_PrivateGameControllerParseElement()  argument
619 if (*szJoystickButton == '+' || *szJoystickButton == '-') { in SDL_PrivateGameControllerParseElement()
620 half_axis_input = *szJoystickButton++; in SDL_PrivateGameControllerParseElement()
622 if (szJoystickButton[SDL_strlen(szJoystickButton) - 1] == '~') { in SDL_PrivateGameControllerParseElement()
626 if (szJoystickButton[0] == 'a' && SDL_isdigit(szJoystickButton[1])) { in SDL_PrivateGameControllerParseElement()
628 bind.input.axis.axis = SDL_atoi(&szJoystickButton[1]); in SDL_PrivateGameControllerParseElement()
644 } else if (szJoystickButton[0] == 'b' && SDL_isdigit(szJoystickButton[1])) { in SDL_PrivateGameControllerParseElement()
646 bind.input.button = SDL_atoi(&szJoystickButton[1]); in SDL_PrivateGameControllerParseElement()
647 } else if (szJoystickButton[0] == 'h' && SDL_isdigit(szJoystickButton[1]) && in SDL_PrivateGameControllerParseElement()
648 szJoystickButton[2] == '.' && SDL_isdigit(szJoystickButton[3])) { in SDL_PrivateGameControllerParseElement()
649 int hat = SDL_atoi(&szJoystickButton[1]); in SDL_PrivateGameControllerParseElement()
650 int mask = SDL_atoi(&szJoystickButton[3]); in SDL_PrivateGameControllerParseElement()
655 SDL_SetError("Unexpected joystick element: %s", szJoystickButton); in SDL_PrivateGameControllerParseElement()
677 char szJoystickButton[20]; in SDL_PrivateGameControllerParseControllerConfigString() local
683 SDL_zeroa(szJoystickButton); in SDL_PrivateGameControllerParseControllerConfigString()
694 SDL_PrivateGameControllerParseElement(gamecontroller, szGameButton, szJoystickButton); in SDL_PrivateGameControllerParseControllerConfigString()
696 SDL_zeroa(szJoystickButton); in SDL_PrivateGameControllerParseControllerConfigString()
706 if (i >= sizeof(szJoystickButton)) { in SDL_PrivateGameControllerParseControllerConfigString()
707 SDL_SetError("Joystick button name too large: %s", szJoystickButton); in SDL_PrivateGameControllerParseControllerConfigString()
710 szJoystickButton[i] = *pchPos; in SDL_PrivateGameControllerParseControllerConfigString()
717 if (szGameButton[0] != '\0' || szJoystickButton[0] != '\0') { in SDL_PrivateGameControllerParseControllerConfigString()
718 SDL_PrivateGameControllerParseElement(gamecontroller, szGameButton, szJoystickButton); in SDL_PrivateGameControllerParseControllerConfigString()