Home
last modified time | relevance | path

Searched refs:button (Results 1 – 25 of 73) sorted by relevance

123

/AliOS-Things-master/components/SDL2/src/joystick/android/
A DSDL_sysjoystick.c103 int button = 0; in keycode_to_SDL() local
107 button = SDL_CONTROLLER_BUTTON_A; in keycode_to_SDL()
110 button = SDL_CONTROLLER_BUTTON_B; in keycode_to_SDL()
113 button = SDL_CONTROLLER_BUTTON_X; in keycode_to_SDL()
201 return button; in keycode_to_SDL()
205 button_to_scancode(int button) in button_to_scancode() argument
207 switch (button) { in button_to_scancode()
232 int button = keycode_to_SDL(keycode); in Android_OnPadDown() local
233 if (button >= 0) { in Android_OnPadDown()
250 int button = keycode_to_SDL(keycode); in Android_OnPadUp() local
[all …]
/AliOS-Things-master/solutions/miniapp_agent_demo/miniapp/pages/netCfg/
A DnetCfg.axml22 …<button class="form-button" size="default" type="primary" disabled="{{netCfgState.scanning}}" onTa…
46button size="default" type="primary" disabled="{{net_config_devices.length<=0 || netCfgState.confi…
64 <view class="pick-button-row">
65 …<button class="picker-button" hover-class="picker-button-hover" size="default" type="primary" onTa…
66 …<button class="picker-button" hover-class="picker-button-hover" size="default" type="primary" onTa…
A DnetCfg.acss25 .pick-button-row {
31 .picker-button {
40 .picker-button-hover {
/AliOS-Things-master/solutions/miniapp_agent_demo/miniapp/pages/linkLP/
A DlinkLP.axml24 <button class="form-button" size="default" type="primary" onTap="scanTriadQr">扫码获取三元组</button>
41 …<button class="form-button" size="default" type="primary" disabled="{{LinkLpState.scanning}}" onTa…
45button size="default" type="primary" disabled="{{link_lp_devices.length<=0 || LinkLpState.linking}…
/AliOS-Things-master/components/SDL2/src/joystick/alios/
A DSDL_sysjoystick.c37 Uint8 button; in game_key_irq_fun() local
46 button = SDL_SCANCODE_LSHIFT; in game_key_irq_fun()
48 button = SDL_SCANCODE_SPACE; in game_key_irq_fun()
50 button = SDL_SCANCODE_RETURN; in game_key_irq_fun()
52 button = SDL_SCANCODE_ESCAPE; in game_key_irq_fun()
55 SDL_PrivateJoystickButton(joystick, button, SDL_PRESSED); in game_key_irq_fun()
/AliOS-Things-master/components/SDL2/test/
A Dtestmessage.c53 int button = -1; in button_messagebox() local
60 success = SDL_ShowMessageBox(&data, &button); in button_messagebox()
72 …SDL_Log("Pressed button: %d, %s\n", button, button == -1 ? "[closed]" : button == 1 ? "Cancel" : "… in button_messagebox()
A Dtestintersections.c212 mouse_begin_x = event.button.x; in loop()
213 mouse_begin_y = event.button.y; in loop()
216 if (event.button.button == 3) in loop()
217 add_line(mouse_begin_x, mouse_begin_y, event.button.x, in loop()
218 event.button.y); in loop()
219 if (event.button.button == 1) in loop()
220 add_rect(mouse_begin_x, mouse_begin_y, event.button.x, in loop()
221 event.button.y); in loop()
A Dtestgamecontroller.c68 SDL_Texture *background, *button, *axis; variable
158 …GameControllerGetStringForButton((SDL_GameControllerButton)event.cbutton.button), event.cbutton.st… in loop()
178 SDL_RenderCopyEx(screen, button, NULL, &dst, 0, NULL, SDL_FLIP_NONE); in loop()
312 button = LoadTexture(screen, "button.bmp", SDL_TRUE); in main()
315 if (!background || !button || !axis) { in main()
320 SDL_SetTextureColorMod(button, 10, 255, 21); in main()
338 button = NULL; in main()
A Dtestaudiocapture.c40 if (e.button.button == 1) { in loop()
45 if (e.button.button == 1) { in loop()
A Dtesthotplug.c132 SDL_Log("Button Press: %d\n", event.jbutton.button); in main()
137 if (event.jbutton.button == 0) { in main()
143 SDL_Log("Button Release: %d\n", event.jbutton.button); in main()
A Dcontrollermap.c122 int button; member
296 SDL_Log("Configuring button binding for button %d\n", pBinding->value.button); in ConfigureBinding()
364 SDL_Texture *background, *button, *axis, *marker; in WatchJoystick() local
379 button = LoadTexture(screen, "button.bmp", SDL_TRUE); in WatchJoystick()
422 marker = button; in WatchJoystick()
523 SDL_Log("BUTTON %d\n", event.jbutton.button); in WatchJoystick()
527 binding.value.button = event.jbutton.button; in WatchJoystick()
662 SDL_snprintf(pszElement, sizeof(pszElement), "b%d", pBinding->value.button); in WatchJoystick()
/AliOS-Things-master/components/SDL2/src/events/
A DSDL_mouse.c466 if (button >= mouse->num_clickstates) {
467 int i, count = button + 1;
479 return &mouse->clickstate[button];
517 buttonstate |= SDL_BUTTON(button);
521 buttonstate &= ~SDL_BUTTON(button);
569 event.button.which = mouseID;
570 event.button.state = state;
571 event.button.button = button;
572 event.button.clicks = (Uint8) SDL_min(clicks, 255);
573 event.button.x = mouse->x;
[all …]
/AliOS-Things-master/components/SDL2/src/joystick/
A DSDL_gamecontroller.c58 int button; member
76 SDL_GameControllerButton button; member
238 return (a->output.button == b->output.button); in HasSameOutput()
310 button == binding->input.button) { in HandleJoystickButton()
356 SDL_GameControllerButton button; in RecenterGameController() local
359 for (button = (SDL_GameControllerButton) 0; button < SDL_CONTROLLER_BUTTON_MAX; button++) { in RecenterGameController()
581 SDL_GameControllerButton button; in SDL_PrivateGameControllerParseElement() local
613 bind.output.button = button; in SDL_PrivateGameControllerParseElement()
2068 bind.value.button = binding->input.button; in SDL_GameControllerGetBindForAxis()
2099 bind.value.button = binding->input.button; in SDL_GameControllerGetBindForButton()
[all …]
/AliOS-Things-master/components/SDL2/src/video/android/
A DSDL_androidmouse.c226 Uint8 button; in Android_OnMouse() local
235 button = TranslateButton(changes); in Android_OnMouse()
238 SDL_SendMouseButton(window, 0, SDL_PRESSED, button); in Android_OnMouse()
243 button = TranslateButton(changes); in Android_OnMouse()
246 SDL_SendMouseButton(window, 0, SDL_RELEASED, button); in Android_OnMouse()
/AliOS-Things-master/components/SDL2/src/joystick/windows/
A DSDL_xinputjoystick.c425 Uint8 button; in UpdateXInputJoystickState_OLD() local
434 for (button = 0; button < SDL_arraysize(s_XInputButtons); ++button) { in UpdateXInputJoystickState_OLD()
435 …SDL_PrivateJoystickButton(joystick, button, (wButtons & s_XInputButtons[button]) ? SDL_PRESSED : S… in UpdateXInputJoystickState_OLD()
451 Uint8 button; in UpdateXInputJoystickState() local
461 for (button = 0; button < SDL_arraysize(s_XInputButtons); ++button) { in UpdateXInputJoystickState()
462 …SDL_PrivateJoystickButton(joystick, button, (wButtons & s_XInputButtons[button]) ? SDL_PRESSED : S… in UpdateXInputJoystickState()
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/
A DInputManager.asset189 positiveButton: joystick button 0
205 positiveButton: joystick button 1
221 positiveButton: joystick button 2
237 positiveButton: joystick button 3
255 altPositiveButton: joystick button 0
287 altPositiveButton: joystick button 1
/AliOS-Things-master/solutions/miniapp_agent_demo/miniapp/pages/linkIot/
A DlinkIot.axml2 <button size="default" class="link-iot-btn" onTap="scan" type="primary">
4 </button>
/AliOS-Things-master/components/SDL2/src/video/cocoa/
A DSDL_cocoamessagebox.m116 NSButton *button;
124 button = [alert addButtonWithTitle:[NSString stringWithUTF8String:sdlButton->text]];
126 [button setKeyEquivalent:@"\r"];
128 [button setKeyEquivalent:@"\033"];
130 [button setKeyEquivalent:@""];
149 returnValue = SDL_SetError("Did not get a valid `clicked button' id: %ld", (long)clicked);
/AliOS-Things-master/components/SDL2/src/video/winrt/
A DSDL_winrtmessagebox.cpp84 UICommand ^ button = ref new UICommand(WINRT_UTF8ToPlatformString(sdlButton->text)); in WINRT_ShowMessageBox()
85 button->Id = safe_cast<IntPtr>((int)(sdlButton - messageboxdata->buttons)); in WINRT_ShowMessageBox()
86 dialog->Commands->Append(button); in WINRT_ShowMessageBox()
A DSDL_winrtpointerinput.cpp225 Uint8 button = WINRT_GetSDLButtonForPointerPoint(pointerPoint); variable
228 SDL_SendMouseButton(window, 0, SDL_PRESSED, button);
273 Uint8 button = WINRT_GetSDLButtonForPointerPoint(pointerPoint); variable
276 SDL_SendMouseButton(window, 0, SDL_RELEASED, button);
/AliOS-Things-master/components/SDL2/include/
A DSDL_haptic.h488 Uint16 button; /**< Button that triggers the effect. */ member
571 Uint16 button; /**< Button that triggers the effect. */ member
623 Uint16 button; /**< Button that triggers the effect. */ member
659 Uint16 button; /**< Button that triggers the effect. */ member
724 Uint16 button; /**< Button that triggers the effect. */ member
A DSDL_gamecontroller.h87 int button; member
376 …DECLSPEC const char* SDLCALL SDL_GameControllerGetStringForButton(SDL_GameControllerButton button);
383 SDL_GameControllerButton button);
392 SDL_GameControllerButton button);
/AliOS-Things-master/components/SDL2/src/video/uikit/
A DSDL_uikitview.m243 Uint8 button;
247 button = SDL_BUTTON_LEFT;
250 button = SDL_BUTTON_RIGHT;
253 button = SDL_BUTTON_MIDDLE;
256 button = (Uint8)i;
296 Uint8 button;
300 button = SDL_BUTTON_LEFT;
303 button = SDL_BUTTON_RIGHT;
306 button = SDL_BUTTON_MIDDLE;
309 button = (Uint8)i;
[all …]
/AliOS-Things-master/components/SDL2/src/haptic/linux/
A DSDL_syshaptic.c653 SDL_SYS_ToButton(Uint16 button) in SDL_SYS_ToButton() argument
663 if (button != 0) { in SDL_SYS_ToButton()
664 ff_button = BTN_GAMEPAD + button - 1; in SDL_SYS_ToButton()
775 dest->trigger.button = SDL_SYS_ToButton(constant->button); in SDL_SYS_ToFFEffect()
810 dest->trigger.button = SDL_SYS_ToButton(periodic->button); in SDL_SYS_ToFFEffect()
864 dest->trigger.button = SDL_SYS_ToButton(condition->button); in SDL_SYS_ToFFEffect()
903 dest->trigger.button = SDL_SYS_ToButton(ramp->button); in SDL_SYS_ToFFEffect()
930 dest->trigger.button = 0; in SDL_SYS_ToFFEffect()
/AliOS-Things-master/components/SDL2/src/joystick/virtual/
A DSDL_virtualjoystick.c192 SDL_JoystickSetVirtualButtonInner(SDL_Joystick * joystick, int button, Uint8 value) in SDL_JoystickSetVirtualButtonInner() argument
204 if (button < 0 || button >= hwdata->nbuttons) { in SDL_JoystickSetVirtualButtonInner()
209 hwdata->buttons[button] = value; in SDL_JoystickSetVirtualButtonInner()

Completed in 59 milliseconds

123