/hardware/bsp/intel/peripheral/libupm/examples/python/ |
nunchuck.py | 52 def buttonStateStr(buttonState): 53 return "pressed" if buttonState else "not pressed"
|
/external/libgdx/extensions/gdx-controllers/gdx-controllers-lwjgl3/src/com/badlogic/gdx/controllers/lwjgl3/ |
Lwjgl3Controller.java | 19 final boolean[] buttonState; 27 this.buttonState = new boolean[GLFW.glfwGetJoystickButtons(index).limit()]; 59 if(buttonState[i] != (buttons.get(i) == GLFW.GLFW_PRESS)) { 69 buttonState[i] = buttons.get(i) == GLFW.GLFW_PRESS; 85 if(buttonCode < 0 || buttonCode >= buttonState.length) { 88 return buttonState[buttonCode];
|
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/ |
InputController.java | 73 public void joystickButtonSwitchStateChanged(boolean buttonState) { 74 mJoystickView.setPressed(buttonState); 93 public void onButton(Boolean buttonState) { 94 joystickButtonSwitchStateChanged(buttonState);
|
/frameworks/native/services/inputflinger/ |
PointerControllerInterface.h | 50 virtual void setButtonState(int32_t buttonState) = 0;
|
InputListener.cpp | 72 int32_t buttonState, int32_t edgeFlags, int32_t displayId, uint32_t pointerCount, 77 flags(flags), metaState(metaState), buttonState(buttonState), 90 metaState(other.metaState), buttonState(other.buttonState),
|
InputListener.h | 90 int32_t buttonState; 104 int32_t metaState, int32_t buttonState,
|
InputReader.cpp | 182 static bool isPointerDown(int32_t buttonState) { 183 return buttonState & 201 int32_t buttonState, int32_t keyCode) { 204 && !(lastButtonState & buttonState) 205 && (currentButtonState & buttonState)) 207 && (lastButtonState & buttonState) 208 && !(currentButtonState & buttonState))) { [all...] |
InputReader.h | [all...] |
InputDispatcher.cpp | [all...] |
InputDispatcher.h | 516 int32_t buttonState; 529 int32_t metaState, int32_t buttonState, int32_t edgeFlags, [all...] |
/frameworks/base/core/java/android/view/ |
InputEventConsistencyVerifier.java | 473 final int buttonState = event.getButtonState(); 509 (buttonState & MotionEvent.BUTTON_SECONDARY) != 0) { 512 (buttonState & MotionEvent.BUTTON_TERTIARY) != 0) { 516 if (mButtonsPressed != buttonState) { 520 buttonState, mButtonsPressed)); 537 (buttonState & MotionEvent.BUTTON_SECONDARY) == 0) { 540 (buttonState & MotionEvent.BUTTON_TERTIARY) == 0) { 544 if (mButtonsPressed != buttonState) { 548 buttonState, mButtonsPressed)); [all...] |
MotionEvent.java | [all...] |
/frameworks/base/libs/input/ |
PointerController.cpp | 92 mLocked.buttonState = 0; 160 void PointerController::setButtonState(int32_t buttonState) { 162 ALOGD("Set button state 0x%08x", buttonState); 166 if (mLocked.buttonState != buttonState) { 167 mLocked.buttonState = buttonState; 174 return mLocked.buttonState;
|
PointerController.h | 96 virtual void setButtonState(int32_t buttonState); 181 int32_t buttonState;
|
/frameworks/native/services/inputflinger/tests/ |
InputReader_test.cpp | 76 virtual void setButtonState(int32_t buttonState) { 77 mButtonState = buttonState; [all...] |
/frameworks/native/libs/input/tests/ |
InputPublisherAndConsumer_test.cpp | 140 const int32_t buttonState = AMOTION_EVENT_BUTTON_PRIMARY; 168 flags, edgeFlags, metaState, buttonState, xOffset, yOffset, xPrecision, yPrecision, 193 EXPECT_EQ(buttonState, motionEvent->getButtonState());
|
StructLayout_test.cpp | 57 CHECK_OFFSET(InputMessage::Body::Motion, buttonState, 40);
|
/frameworks/native/include/input/ |
InputTransport.h | 90 int32_t buttonState; 240 int32_t buttonState,
|
Input.h | 401 inline int32_t setButtonState(int32_t buttonState) { mButtonState = buttonState; } 564 int32_t buttonState,
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
TouchPaint.java | 379 final int buttonState = event.getButtonState(); 380 int pressedButtons = buttonState & ~mOldButtonState; 381 mOldButtonState = buttonState; 390 if ((buttonState & MotionEvent.BUTTON_TERTIARY) != 0) { 393 } else if (isTouch || (buttonState & MotionEvent.BUTTON_PRIMARY) != 0) {
|
/external/opencv3/samples/cpp/ |
select3dobj.cpp | 72 MouseEvent() { event = -1; buttonState = 0; } 75 int buttonState; 83 data->buttonState = flags; 217 bool dragging = (mouse.buttonState & EVENT_FLAG_LBUTTON) != 0; 278 //mouse.buttonState = 0;
|
/frameworks/native/libs/input/ |
InputTransport.cpp | 294 int32_t buttonState, 307 "metaState=0x%x, buttonState=0x%x, xOffset=%f, yOffset=%f, " 311 deviceId, source, action, actionButton, flags, edgeFlags, metaState, buttonState, 336 msg.body.motion.buttonState = buttonState; 931 msg->body.motion.buttonState, [all...] |
Input.cpp | 223 int32_t buttonState, 239 mButtonState = buttonState;
|
/frameworks/base/core/jni/ |
android_view_MotionEvent.cpp | 337 jint metaState, jint buttonState, 373 event->initialize(deviceId, source, action, 0, flags, edgeFlags, metaState, buttonState, 514 jlong nativePtr, jint buttonState) { 516 event->setButtonState(buttonState); [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
PointerLocationView.java | 444 final int buttonState = event.getButtonState(); 521 .append(" ButtonState=").append(MotionEvent.buttonStateToString(buttonState)) [all...] |