Home
last modified time | relevance | path

Searched refs:buttons (Results 1 – 25 of 306) sorted by relevance

12345678910>>...13

/external/chromium_org/content/browser/gamepad/
Dgamepad_standard_mappings_mac.mm15 mapped->buttons[kButtonLeftTrigger] = AxisToButton(input.axes[2]);
16 mapped->buttons[kButtonRightTrigger] = AxisToButton(input.axes[5]);
17 mapped->buttons[kButtonBackSelect] = input.buttons[9];
18 mapped->buttons[kButtonStart] = input.buttons[8];
19 mapped->buttons[kButtonLeftThumbstick] = input.buttons[6];
20 mapped->buttons[kButtonRightThumbstick] = input.buttons[7];
21 mapped->buttons[kButtonDpadUp] = input.buttons[11];
22 mapped->buttons[kButtonDpadDown] = input.buttons[12];
23 mapped->buttons[kButtonDpadLeft] = input.buttons[13];
24 mapped->buttons[kButtonDpadRight] = input.buttons[14];
[all …]
Dgamepad_standard_mappings_linux.cc15 mapped->buttons[kButtonLeftTrigger] = AxisToButton(input.axes[2]); in MapperXInputStyleGamepad()
16 mapped->buttons[kButtonRightTrigger] = AxisToButton(input.axes[5]); in MapperXInputStyleGamepad()
17 mapped->buttons[kButtonBackSelect] = input.buttons[6]; in MapperXInputStyleGamepad()
18 mapped->buttons[kButtonStart] = input.buttons[7]; in MapperXInputStyleGamepad()
19 mapped->buttons[kButtonLeftThumbstick] = input.buttons[9]; in MapperXInputStyleGamepad()
20 mapped->buttons[kButtonRightThumbstick] = input.buttons[10]; in MapperXInputStyleGamepad()
21 mapped->buttons[kButtonDpadUp] = AxisNegativeAsButton(input.axes[7]); in MapperXInputStyleGamepad()
22 mapped->buttons[kButtonDpadDown] = AxisPositiveAsButton(input.axes[7]); in MapperXInputStyleGamepad()
23 mapped->buttons[kButtonDpadLeft] = AxisNegativeAsButton(input.axes[6]); in MapperXInputStyleGamepad()
24 mapped->buttons[kButtonDpadRight] = AxisPositiveAsButton(input.axes[6]); in MapperXInputStyleGamepad()
[all …]
Dgamepad_standard_mappings_win.cc15 mapped->buttons[kButtonPrimary] = input.buttons[1]; in MapperLogitechDualAction()
16 mapped->buttons[kButtonSecondary] = input.buttons[2]; in MapperLogitechDualAction()
17 mapped->buttons[kButtonTertiary] = input.buttons[0]; in MapperLogitechDualAction()
29 mapped->buttons[kButtonPrimary] = input.buttons[2]; in Mapper2Axes8Keys()
30 mapped->buttons[kButtonSecondary] = input.buttons[1]; in Mapper2Axes8Keys()
31 mapped->buttons[kButtonTertiary] = input.buttons[3]; in Mapper2Axes8Keys()
32 mapped->buttons[kButtonQuaternary] = input.buttons[0]; in Mapper2Axes8Keys()
33 mapped->buttons[kButtonDpadUp] = AxisNegativeAsButton(input.axes[1]); in Mapper2Axes8Keys()
34 mapped->buttons[kButtonDpadDown] = AxisPositiveAsButton(input.axes[1]); in Mapper2Axes8Keys()
35 mapped->buttons[kButtonDpadLeft] = AxisNegativeAsButton(input.axes[0]); in Mapper2Axes8Keys()
[all …]
Dgamepad_standard_mappings.cc54 mapped->buttons[kButtonDpadUp].pressed = up; in DpadFromAxis()
55 mapped->buttons[kButtonDpadUp].value = up ? 1.f : 0.f; in DpadFromAxis()
56 mapped->buttons[kButtonDpadRight].pressed = right; in DpadFromAxis()
57 mapped->buttons[kButtonDpadRight].value = right ? 1.f : 0.f; in DpadFromAxis()
58 mapped->buttons[kButtonDpadDown].pressed = down; in DpadFromAxis()
59 mapped->buttons[kButtonDpadDown].value = down ? 1.f : 0.f; in DpadFromAxis()
60 mapped->buttons[kButtonDpadLeft].pressed = left; in DpadFromAxis()
61 mapped->buttons[kButtonDpadLeft].value = left ? 1.f : 0.f; in DpadFromAxis()
Dxbox_data_fetcher_mac.cc174 normalized_data->buttons[0] = data.a; in NormalizeXbox360ButtonData()
175 normalized_data->buttons[1] = data.b; in NormalizeXbox360ButtonData()
176 normalized_data->buttons[2] = data.x; in NormalizeXbox360ButtonData()
177 normalized_data->buttons[3] = data.y; in NormalizeXbox360ButtonData()
178 normalized_data->buttons[4] = data.bumper_left; in NormalizeXbox360ButtonData()
179 normalized_data->buttons[5] = data.bumper_right; in NormalizeXbox360ButtonData()
180 normalized_data->buttons[6] = data.back; in NormalizeXbox360ButtonData()
181 normalized_data->buttons[7] = data.start; in NormalizeXbox360ButtonData()
182 normalized_data->buttons[8] = data.stick_left_click; in NormalizeXbox360ButtonData()
183 normalized_data->buttons[9] = data.stick_right_click; in NormalizeXbox360ButtonData()
[all …]
Dgamepad_provider_unittest.cc74 test_data.items[0].buttons[0].value = 1.f; in TEST_F()
75 test_data.items[0].buttons[0].pressed = true; in TEST_F()
106 EXPECT_EQ(1.f, output.items[0].buttons[0].value); in TEST_F()
107 EXPECT_EQ(true, output.items[0].buttons[0].pressed); in TEST_F()
121 no_button_data.items[0].buttons[0].value = 0.f; in TEST_F()
122 no_button_data.items[0].buttons[0].pressed = false; in TEST_F()
127 button_down_data.items[0].buttons[0].value = 1.f; in TEST_F()
128 button_down_data.items[0].buttons[0].pressed = true; in TEST_F()
Dgamepad_platform_data_fetcher_android.cc133 std::vector<float> buttons; in SetGamepadData() local
134 base::android::JavaFloatArrayToFloatVector(env, jbuttons, &buttons); in SetGamepadData()
139 pad.buttonsLength = std::min(static_cast<int>(buttons.size()), in SetGamepadData()
144 pad.buttons[j].pressed = buttons[j]; in SetGamepadData()
145 pad.buttons[j].value = buttons[j]; in SetGamepadData()
/external/chromium_org/chrome/common/extensions/docs/examples/apps/calculator/app/
Dstyle.css19 #calculator-buttons {
28 #calculator-buttons div {
35 #calculator-buttons button {
42 #calculator-buttons button {
49 #calculator-buttons button {
55 #calculator-buttons button.add {
60 #calculator-buttons button.add[data-active="touch"],
61 #calculator-buttons button.add[data-active="mouse"]:active {
65 #calculator-buttons button.clear {
69 #calculator-buttons button.clear[data-active="touch"],
[all …]
/external/qemu/distrib/sdl-1.2.15/src/joystick/dc/
DSDL_sysjoystick.c128 int buttons,prev_buttons,i,changed; in SDL_SYS_JoystickUpdate() local
133 buttons = cond.buttons; in SDL_SYS_JoystickUpdate()
135 changed = buttons^prev_buttons; in SDL_SYS_JoystickUpdate()
139 if (buttons&CONT_DPAD_UP) hat|=SDL_HAT_UP; in SDL_SYS_JoystickUpdate()
140 if (buttons&CONT_DPAD_DOWN) hat|=SDL_HAT_DOWN; in SDL_SYS_JoystickUpdate()
141 if (buttons&CONT_DPAD_LEFT) hat|=SDL_HAT_LEFT; in SDL_SYS_JoystickUpdate()
142 if (buttons&CONT_DPAD_RIGHT) hat|=SDL_HAT_RIGHT; in SDL_SYS_JoystickUpdate()
147 if (buttons&CONT_DPAD2_UP) hat|=SDL_HAT_UP; in SDL_SYS_JoystickUpdate()
148 if (buttons&CONT_DPAD2_DOWN) hat|=SDL_HAT_DOWN; in SDL_SYS_JoystickUpdate()
149 if (buttons&CONT_DPAD2_LEFT) hat|=SDL_HAT_LEFT; in SDL_SYS_JoystickUpdate()
[all …]
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/appmenu/
DAppMenuAdapter.java185 holder.buttons[0] = (ImageButton) convertView.findViewById(R.id.button_one);
186 holder.buttons[1] = (ImageButton) convertView.findViewById(R.id.button_two);
189 buildIconItemEnterAnimator(holder.buttons, hasMenuButton));
193 setupImageButton(holder.buttons[0], item.getSubMenu().getItem(0));
195 setupMenuButton(holder.buttons[1]);
197 setupImageButton(holder.buttons[1], item.getSubMenu().getItem(1));
209 holder.buttons[0] = (ImageButton) convertView.findViewById(R.id.button_one);
210 holder.buttons[1] = (ImageButton) convertView.findViewById(R.id.button_two);
211 holder.buttons[2] = (ImageButton) convertView.findViewById(R.id.button_three);
214 buildIconItemEnterAnimator(holder.buttons, hasMenuButton));
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/dc/
DSDL_dcevents.c71 int buttons,changed; in mouse_update() local
76 buttons = cond.buttons^0xff; in mouse_update()
77 if (cond.dz<0) buttons|=MOUSE_WHEELUP; in mouse_update()
78 if (cond.dz>0) buttons|=MOUSE_WHEELDOWN; in mouse_update()
82 changed = buttons^prev_buttons; in mouse_update()
85 SDL_PrivateMouseButton((buttons & sdl_mousebtn[i])?SDL_PRESSED:SDL_RELEASED,i,0,0); in mouse_update()
88 prev_buttons = buttons; in mouse_update()
/external/chromium_org/chrome/browser/resources/chromeos/login/
Doobe_screen_enable_kiosk.js25 get buttons() {
26 var buttons = [];
36 buttons.push(confirmButton);
46 buttons.push(cancelButton);
57 buttons.push(okButton);
58 return buttons;
Doobe_screen_reset.js46 get buttons() {
47 var buttons = [];
55 buttons.push(restartButton);
65 buttons.push(resetButton);
86 buttons.push(toConfirmButton);
95 buttons.push(cancelButton);
97 return buttons;
Doobe_screen_autolaunch.js24 get buttons() {
25 var buttons = [];
35 buttons.push(confirmButton);
45 buttons.push(cancelButton);
46 return buttons;
Dscreen_error_message.js202 get buttons() {
203 var buttons = [];
212 buttons.push(rebootButton);
221 buttons.push(diagnoseButton);
230 buttons.push(certsButton);
240 buttons.push(continueButton);
250 buttons.push(okButton);
255 buttons.push(spacer);
266 buttons.push(powerwashButton);
268 return buttons;
Doobe_screen_terms_of_service.js61 get buttons() {
62 var buttons = [];
76 buttons.push(backButton);
89 buttons.push(acceptButton);
91 return buttons;
Dscreen_password_changed.js51 get buttons() {
52 var buttons = [];
70 buttons.push(backButton);
79 buttons.push(okButton);
91 buttons.push(proceedAnywayButton);
93 return buttons;
Doobe_screen_eula.js76 get buttons() {
77 var buttons = [];
86 buttons.push(backButton);
98 buttons.push(acceptButton);
100 return buttons;
/external/chromium_org/chrome/renderer/resources/extensions/
Dnotifications_custom_bindings.gtestjs47 notificationDetails.buttons = [
56 expectFalse(notificationDetails.buttons[0].iconBitmap === "test");
57 expectFalse(notificationDetails.buttons[1].iconBitmap === "test");
71 notificationDetails.buttons[0].iconBitmap === "buttonOneIconUrl|2|2");
73 notificationDetails.buttons[1].iconBitmap === "buttonTwoIconUrl|2|2");
86 buttons: [
100 expectEquals(notificationDetails.buttons[0].iconBitmap,
102 expectEquals(notificationDetails.buttons[1].iconBitmap,
/external/chromium_org/chrome/browser/ui/cocoa/bookmarks/
Dbookmark_bar_controller_unittest.mm415 // Make sure no buttons fall off the bar, either now or when resized
420 // Confirm the buttons moved from the last check (which may be
426 // Confirm the buttons have a reasonable bounds. Recall that |-frame|
441 // buttons above.
632 NSArray* buttons = [bbfc buttons];
633 for (BookmarkButton* button in buttons) {
753 EXPECT_EQ(0U, [[bar_ buttons] count]);
758 EXPECT_EQ(0U, [[bar_ buttons] count]);
768 EXPECT_EQ(1U, [[bar_ buttons] count]);
774 EXPECT_EQ(2U, [[bar_ buttons] count]);
[all …]
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/test/
DModalDialogTest.java103 Button[] buttons = getAlertDialogButtons(jsDialog.getDialogForTest()); in testConfirmModalDialog() local
104 assertNotNull("No cancel button in confirm dialog.", buttons[0]); in testConfirmModalDialog()
105 assertEquals("Cancel button is not visible.", View.VISIBLE, buttons[0].getVisibility()); in testConfirmModalDialog()
106 if (buttons[1] != null) { in testConfirmModalDialog()
108 View.VISIBLE, buttons[1].getVisibility()); in testConfirmModalDialog()
110 assertNotNull("No OK button in confirm dialog.", buttons[2]); in testConfirmModalDialog()
111 assertEquals("OK button is not visible.", View.VISIBLE, buttons[2].getVisibility()); in testConfirmModalDialog()
330 final Button[] buttons = new Button[3]; in getAlertDialogButtons()
331 buttons[0] = dialog.getButton(DialogInterface.BUTTON_NEGATIVE); in getAlertDialogButtons()
332 buttons[1] = dialog.getButton(DialogInterface.BUTTON_NEUTRAL); in getAlertDialogButtons()
[all …]
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ui/
DStatusBarButton.js398 var buttons = this._longClickOptionsData.buttonsProvider();
402 buttons.push(mainButtonClone);
412 …var topNotBottom = hostButtonPosition.top + buttonHeight * buttons.length < document.documentEleme…
415 buttons = buttons.reverse();
417 optionsBarElement.style.height = (buttonHeight * buttons.length) + "px";
421 …optionsBarElement.style.top = (hostButtonPosition.top - (buttonHeight * (buttons.length - 1))) + "…
424 for (var i = 0; i < buttons.length; ++i) {
425 buttons[i].element.addEventListener("mousemove", mouseOver, false);
426 buttons[i].element.addEventListener("mouseout", mouseOut, false);
427 optionsBarElement.appendChild(buttons[i].element);
[all …]
/external/chromium_org/ui/file_manager/file_manager/foreground/js/ui/
Dconflict_dialog.js64 var buttons = this.okButton_.parentNode;
65 buttons.insertBefore(this.applyAllCheckbox_, this.okButton_);
66 buttons.insertBefore(applyAllLabel, this.okButton_);
67 buttons.replaceChild(this.keepBothButton_, this.okButton_);
68 buttons.appendChild(this.replaceButton_);
/external/qemu/distrib/sdl-1.2.15/src/video/bwindow/
DSDL_sysevents.cc251 int32 buttons; in DispatchMessage() local
253 if (msg->FindInt32("buttons", &buttons) == B_OK) { in DispatchMessage()
255 if (buttons & B_PRIMARY_MOUSE_BUTTON) { in DispatchMessage()
258 if (buttons & B_SECONDARY_MOUSE_BUTTON) { in DispatchMessage()
261 if (buttons & B_TERTIARY_MOUSE_BUTTON) { in DispatchMessage()
266 last_buttons = buttons; in DispatchMessage()
282 int32 buttons; in DispatchMessage() local
284 if (msg->FindInt32("buttons", &buttons) == B_OK) { in DispatchMessage()
286 if ((buttons ^ B_PRIMARY_MOUSE_BUTTON) & last_buttons) { in DispatchMessage()
289 if ((buttons ^ B_SECONDARY_MOUSE_BUTTON) & last_buttons) { in DispatchMessage()
[all …]
/external/chromium_org/ui/events/ozone/evdev/libgestures_glue/
Dgesture_interpreter_libevdev_cros.cc174 OnGestureButtonsChange(gesture, &gesture->details.buttons); in OnGestureReady()
249 const GestureButtonsChange* buttons) { in OnGestureButtonsChange() argument
251 buttons->down, in OnGestureButtonsChange()
252 buttons->up); in OnGestureButtonsChange()
260 if (buttons->down == GESTURES_BUTTON_LEFT && in OnGestureButtonsChange()
261 buttons->up == GESTURES_BUTTON_LEFT && in OnGestureButtonsChange()
266 if (buttons->down & GESTURES_BUTTON_LEFT) in OnGestureButtonsChange()
268 if (buttons->down & GESTURES_BUTTON_MIDDLE) in OnGestureButtonsChange()
270 if (buttons->down & GESTURES_BUTTON_RIGHT) in OnGestureButtonsChange()
272 if (buttons->up & GESTURES_BUTTON_LEFT) in OnGestureButtonsChange()
[all …]

12345678910>>...13