Home
last modified time | relevance | path

Searched refs:nballs (Results 1 – 11 of 11) sorted by relevance

/AliOS-Things-master/components/SDL2/src/joystick/android/
A DSDL_sysjoystick_c.h35 …_id, int product_id, SDL_bool is_accelerometer, int button_mask, int naxes, int nhats, int nballs);
47 int nbuttons, naxes, nhats, nballs; member
A DSDL_sysjoystick.c325 …r_id, int product_id, SDL_bool is_accelerometer, int button_mask, int naxes, int nhats, int nballs) in Android_AddJoystick() argument
430 item->nballs = nballs; in Android_AddJoystick()
623 joystick->nballs = item->nballs; in ANDROID_JoystickOpen()
/AliOS-Things-master/components/SDL2/src/joystick/alios/
A DSDL_sysjoystick.c133 joystick->nballs = 1; in AliOS_JoystickOpen()
164 for (i = 0; i < joystick->nballs; ++i) { in AliOS_JoystickUpdate()
/AliOS-Things-master/components/SDL2/src/joystick/
A DSDL_sysjoystick.h54 int nballs; /* Number of trackballs on the joystick */ member
A DSDL_joystick.c437 if (joystick->nballs > 0) { in SDL_JoystickOpen()
438 … joystick->balls = (struct balldelta *) SDL_calloc(joystick->nballs, sizeof(*joystick->balls)); in SDL_JoystickOpen()
445 || ((joystick->nballs > 0) && !joystick->balls) in SDL_JoystickOpen()
641 return joystick->nballs; in SDL_JoystickNumBalls()
728 if (ball < joystick->nballs) { in SDL_JoystickGetBall()
738 return SDL_SetError("Joystick only has %d balls", joystick->nballs); in SDL_JoystickGetBall()
1271 if (ball >= joystick->nballs) { in SDL_PrivateJoystickBall()
/AliOS-Things-master/components/SDL2/src/joystick/linux/
A DSDL_sysjoystick.c654 (struct hwdata_ball *) SDL_malloc(joystick->nballs * in allocate_balldata()
659 for (i = 0; i < joystick->nballs; ++i) { in allocate_balldata()
759 ++joystick->nballs; in ConfigJoystick()
768 if (joystick->nballs > 0) { in ConfigJoystick()
770 joystick->nballs = 0; in ConfigJoystick()
1120 for (i = 0; i < joystick->nballs; ++i) { in LINUX_JoystickUpdate()
/AliOS-Things-master/components/SDL2/src/joystick/bsd/
A DSDL_sysjoystick.c377 joy->nballs = 0;
454 joy->nballs = 0;
510 if (joy->naxes == 0 && joy->nbuttons == 0 && joy->nhats == 0 && joy->nballs == 0) {
/AliOS-Things-master/components/SDL2/src/joystick/emscripten/
A DSDL_sysjoystick.c325 joystick->nballs = 0; in EMSCRIPTEN_JoystickOpen()
/AliOS-Things-master/components/SDL2/src/joystick/darwin/
A DSDL_sysjoystick.c787 joystick->nballs = 0; in DARWIN_JoystickOpen()
/AliOS-Things-master/components/SDL2/src/core/android/
A DSDL_android.c249 jboolean is_accelerometer, jint button_mask, jint naxes, jint nhats, jint nballs);
942 jint button_mask, jint naxes, jint nhats, jint nballs) in SDL_JAVA_CONTROLLER_INTERFACE()
948 …vendor_id, product_id, is_accelerometer ? SDL_TRUE : SDL_FALSE, button_mask, naxes, nhats, nballs); in SDL_JAVA_CONTROLLER_INTERFACE()
/AliOS-Things-master/components/SDL2/src/joystick/iphoneos/
A DSDL_sysjoystick.m523 joystick->nballs = 0; method in SDL_Joystick

Completed in 24 milliseconds