Home
last modified time | relevance | path

Searched refs:hat (Results 1 – 18 of 18) sorted by relevance

/AliOS-Things-master/components/SDL2/test/
A Dcontrollermap.c131 int hat; member
133 } hat; member
302 …og("Configuring hat binding for hat %d %d\n", pBinding->value.hat.hat, pBinding->value.hat.hat_mas… in ConfigureBinding()
505 SDL_Log("HAT %d %d\n", event.jhat.hat, event.jhat.value); in WatchJoystick()
509 binding.value.hat.hat = event.jhat.hat; in WatchJoystick()
510 binding.value.hat.hat_mask = event.jhat.value; in WatchJoystick()
680 …ntf(pszElement, sizeof(pszElement), "h%d.%d", pBinding->value.hat.hat, pBinding->value.hat.hat_mas… in WatchJoystick()
A Dtestjoystick.c139 event.jhat.which, event.jhat.hat); in loop()
/AliOS-Things-master/components/SDL2/src/joystick/
A DSDL_gamecontroller.c67 int hat; member
69 } hat; member
330 if (binding->inputType == SDL_CONTROLLER_BINDTYPE_HAT && hat == binding->input.hat.hat) { in HandleJoystickHat()
652 bind.input.hat.hat = hat; in SDL_PrivateGameControllerParseElement()
653 bind.input.hat.hat_mask = mask; in SDL_PrivateGameControllerParseElement()
1875 int hat_mask = SDL_JoystickGetHat(gamecontroller->joystick, binding->input.hat.hat); in SDL_GameControllerGetAxis()
1928 int hat_mask = SDL_JoystickGetHat(gamecontroller->joystick, binding->input.hat.hat); in SDL_GameControllerGetButton()
2070 bind.value.hat.hat = binding->input.hat.hat; in SDL_GameControllerGetBindForAxis()
2071 bind.value.hat.hat_mask = binding->input.hat.hat_mask; in SDL_GameControllerGetBindForAxis()
2101 bind.value.hat.hat = binding->input.hat.hat; in SDL_GameControllerGetBindForButton()
[all …]
A DSDL_joystick.c565 SDL_JoystickSetVirtualHat(SDL_Joystick * joystick, int hat, Uint8 value) in SDL_JoystickSetVirtualHat() argument
568 return SDL_JoystickSetVirtualHatInner(joystick, hat, value); in SDL_JoystickSetVirtualHat()
699 SDL_JoystickGetHat(SDL_Joystick * joystick, int hat) in SDL_JoystickGetHat() argument
706 if (hat < joystick->nhats) { in SDL_JoystickGetHat()
707 state = joystick->hats[hat]; in SDL_JoystickGetHat()
1225 SDL_PrivateJoystickHat(SDL_Joystick * joystick, Uint8 hat, Uint8 value) in SDL_PrivateJoystickHat() argument
1230 if (hat >= joystick->nhats) { in SDL_PrivateJoystickHat()
1233 if (value == joystick->hats[hat]) { in SDL_PrivateJoystickHat()
1247 joystick->hats[hat] = value; in SDL_PrivateJoystickHat()
1256 event.jhat.hat = hat; in SDL_PrivateJoystickHat()
A DSDL_joystick_c.h105 Uint8 hat, Uint8 value);
/AliOS-Things-master/components/SDL2/src/joystick/virtual/
A DSDL_virtualjoystick.c217 SDL_JoystickSetVirtualHatInner(SDL_Joystick * joystick, int hat, Uint8 value) in SDL_JoystickSetVirtualHatInner() argument
229 if (hat < 0 || hat >= hwdata->nbuttons) { in SDL_JoystickSetVirtualHatInner()
234 hwdata->hats[hat] = value; in SDL_JoystickSetVirtualHatInner()
A DSDL_virtualjoystick_c.h59 int SDL_JoystickSetVirtualHatInner(SDL_Joystick * joystick, int hat, Uint8 value);
/AliOS-Things-master/components/SDL2/src/joystick/linux/
A DSDL_sysjoystick.c902 the_hat = &stick->hwdata->hats[hat]; in HandleHat()
912 SDL_PrivateJoystickHat(stick, hat, in HandleHat()
1277 out->leftshoulder.target = hat | 0x4; in LINUX_JoystickGetGamepadMapping()
1278 out->rightshoulder.target = hat | 0x2; in LINUX_JoystickGetGamepadMapping()
1286 out->lefttrigger.target = hat | 0x4; in LINUX_JoystickGetGamepadMapping()
1287 out->righttrigger.target = hat | 0x2; in LINUX_JoystickGetGamepadMapping()
1324 int hat = joystick->hwdata->hats_indices[0] << 4; in LINUX_JoystickGetGamepadMapping() local
1329 out->dpleft.target = hat | 0x8; in LINUX_JoystickGetGamepadMapping()
1330 out->dpright.target = hat | 0x2; in LINUX_JoystickGetGamepadMapping()
1331 out->dpup.target = hat | 0x1; in LINUX_JoystickGetGamepadMapping()
[all …]
/AliOS-Things-master/components/SDL2/src/joystick/windows/
A DSDL_xinputjoystick.c452 Uint8 hat = SDL_HAT_CENTERED; in UpdateXInputJoystickState() local
466 hat |= SDL_HAT_UP; in UpdateXInputJoystickState()
469 hat |= SDL_HAT_DOWN; in UpdateXInputJoystickState()
472 hat |= SDL_HAT_LEFT; in UpdateXInputJoystickState()
475 hat |= SDL_HAT_RIGHT; in UpdateXInputJoystickState()
477 SDL_PrivateJoystickHat(joystick, 0, hat); in UpdateXInputJoystickState()
/AliOS-Things-master/components/SDL2/include/
A DSDL_gamecontroller.h90 int hat; member
92 } hat; member
A DSDL_joystick.h235 extern DECLSPEC int SDLCALL SDL_JoystickSetVirtualHat(SDL_Joystick * joystick, int hat, Uint8 value…
402 int hat);
A DSDL_events.h339 Uint8 hat; /**< The joystick hat index */ member
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/facebody/src/model/
A DPedestrianDetectAttributeResult.cc76 attributesItemObject.hat.name = hatNode["Name"].asString(); in parse()
78 attributesItemObject.hat.score = std::stof(hatNode["Score"].asString()); in parse()
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/facebody/include/alibabacloud/facebody/model/
A DPedestrianDetectAttributeResult.h107 Hat hat; member
/AliOS-Things-master/components/SDL2/src/joystick/iphoneos/
A DSDL_sysjoystick.m606 Uint8 hat = 0; field
609 hat |= SDL_HAT_UP;
611 hat |= SDL_HAT_DOWN;
615 hat |= SDL_HAT_LEFT;
617 hat |= SDL_HAT_RIGHT;
620 if (hat == 0) { category
624 return hat;
/AliOS-Things-master/components/SDL2/src/events/
A DSDL_events.c251 (uint) event->jhat.hat, (uint) event->jhat.value); in SDL_LogEvent()
/AliOS-Things-master/components/freetype/src/gxvalid/
A DREADME522 suzuki toshiya, Masatake YAMATO, Red hat K.K.,
/AliOS-Things-master/components/SDL2/src/test/
A DSDL_test_common.c1406 event->jhat.hat, position); in SDLTest_PrintEvent()

Completed in 34 milliseconds