Home
last modified time | relevance | path

Searched refs:balls (Results 1 – 5 of 5) sorted by relevance

/AliOS-Things-master/components/SDL2/src/joystick/linux/
A DSDL_sysjoystick_c.h51 } *balls; member
A DSDL_sysjoystick.c653 joystick->hwdata->balls = in allocate_balldata()
656 if (joystick->hwdata->balls == NULL) { in allocate_balldata()
660 joystick->hwdata->balls[i].axis[0] = 0; in allocate_balldata()
661 joystick->hwdata->balls[i].axis[1] = 0; in allocate_balldata()
920 stick->hwdata->balls[ball].axis[axis] += value; in HandleBall()
1123 xrel = joystick->hwdata->balls[i].axis[0]; in LINUX_JoystickUpdate()
1124 yrel = joystick->hwdata->balls[i].axis[1]; in LINUX_JoystickUpdate()
1126 joystick->hwdata->balls[i].axis[0] = 0; in LINUX_JoystickUpdate()
1127 joystick->hwdata->balls[i].axis[1] = 0; in LINUX_JoystickUpdate()
1149 SDL_free(joystick->hwdata->balls); in LINUX_JoystickClose()
/AliOS-Things-master/components/SDL2/src/joystick/
A DSDL_joystick.c438 … joystick->balls = (struct balldelta *) SDL_calloc(joystick->nballs, sizeof(*joystick->balls)); in SDL_JoystickOpen()
445 || ((joystick->nballs > 0) && !joystick->balls) in SDL_JoystickOpen()
730 *dx = joystick->balls[ball].dx; in SDL_JoystickGetBall()
733 *dy = joystick->balls[ball].dy; in SDL_JoystickGetBall()
735 joystick->balls[ball].dx = 0; in SDL_JoystickGetBall()
736 joystick->balls[ball].dy = 0; in SDL_JoystickGetBall()
964 SDL_free(joystick->balls); in SDL_JoystickClose()
1281 joystick->balls[ball].dx += xrel; in SDL_PrivateJoystickBall()
1282 joystick->balls[ball].dy += yrel; in SDL_PrivateJoystickBall()
A DSDL_sysjoystick.h58 } *balls; /* Current ball motion deltas */ member
/AliOS-Things-master/components/SDL2/src/joystick/alios/
A DSDL_sysjoystick.c153 if (!joystick || !joystick->balls) in AliOS_JoystickUpdate()

Completed in 10 milliseconds