Home
last modified time | relevance | path

Searched refs:pressedButtons (Results 1 - 19 of 19) sorted by relevance

/foundation/multimodalinput/input/service/touch_event_normalize/src/
H A Dgesture_transform_processor.cpp52 std::vector<int32_t> pressedButtons; in OnEventTouchPadPinchBegin() local
53 MouseState->GetPressedButtons(pressedButtons); in OnEventTouchPadPinchBegin()
54 for (const auto &item : pressedButtons) { in OnEventTouchPadPinchBegin()
81 std::vector<int32_t> pressedButtons; in OnEventTouchPadPinchUpdate() local
82 MouseState->GetPressedButtons(pressedButtons); in OnEventTouchPadPinchUpdate()
83 for (const auto &item : pressedButtons) { in OnEventTouchPadPinchUpdate()
106 std::vector<int32_t> pressedButtons; in OnEventTouchPadPinchEnd() local
107 MouseState->GetPressedButtons(pressedButtons); in OnEventTouchPadPinchEnd()
108 for (const auto &item : pressedButtons) { in OnEventTouchPadPinchEnd()
H A Dtouchpad_transform_processor.cpp422 std::vector<int32_t> pressedButtons; in ProcessTouchPadPinchDataEvent() local
423 MouseState->GetPressedButtons(pressedButtons); in ProcessTouchPadPinchDataEvent()
424 for (const auto &item : pressedButtons) { in ProcessTouchPadPinchDataEvent()
/foundation/multimodalinput/input/service/mouse_event_normalize/test/src/
H A Dmouse_device_state_test.cpp88 std::vector<int32_t> pressedButtons; in HWTEST_F() local
89 MouseState->GetPressedButtons(pressedButtons); in HWTEST_F()
91 ASSERT_EQ(pressedButtons, idNames); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/event/
H A Dmouse_event.h105 int32_t pressedButtons = 0; // combined by MouseButtons member
131 if (pressedButtons > 0) { in GetId()
132 return pressedButtons + MOUSE_BASE_ID; in GetId()
140 if (pressedButtons > 0) { in GetPointerId()
141 return pressedButtons + MOUSE_BASE_ID + pointerId; in GetPointerId()
163 .pressedButtons = pressedButtons, in CloneWith()
251 .pressedButtons = pressedButtons, in operator -()
H A Devent_convertor.cpp148 events.pressedButtons = static_cast<int32_t>(mouseActionData->pressedButtons); in ConvertMouseEvent()
H A Devent_convertor.h86 int64_t pressedButtons; variable
/foundation/multimodalinput/input/service/mouse_event_normalize/src/
H A Dmouse_device_state.cpp59 void MouseDeviceState::GetPressedButtons(std::vector<int32_t>& pressedButtons) in GetPressedButtons() argument
63 pressedButtons.push_back(LibinputChangeToPointer(item.first)); in GetPressedButtons()
/foundation/multimodalinput/input/intention/cooperate/plugin/src/input_event_transmission/
H A Dinput_event_builder.cpp221 if (auto pressedButtons = pointerEvent_->GetPressedButtons(); !pressedButtons.empty()) { in ResetPressedEvents()
223 for (auto buttonId : pressedButtons) { in ResetPressedEvents()
/foundation/multimodalinput/input/service/mouse_event_normalize/include/
H A Dmouse_device_state.h64 void GetPressedButtons(std::vector<int32_t>& pressedButtons);
/foundation/multimodalinput/input/frameworks/napi/input_monitor/include/
H A Djs_input_monitor.h147 bool GetJoystickPressedButtons(const std::set<int32_t>& pressedButtons, napi_value result);
148 bool GetPressedButtons(const std::set<int32_t>& pressedButtons, napi_value result);
/foundation/arkui/ace_engine/adapter/ohos/entrance/
H A Dmmi_event_convertor.cpp335 uint32_t pressedButtons = 0; in ConvertMouseEvent() local
337 pressedButtons &= static_cast<uint32_t>(MouseButton::LEFT_BUTTON); in ConvertMouseEvent()
340 pressedButtons &= static_cast<uint32_t>(MouseButton::RIGHT_BUTTON); in ConvertMouseEvent()
343 pressedButtons &= static_cast<uint32_t>(MouseButton::MIDDLE_BUTTON); in ConvertMouseEvent()
345 events.pressedButtons = static_cast<int32_t>(pressedButtons); in ConvertMouseEvent()
/foundation/multimodalinput/input/frameworks/napi/input_monitor/src/
H A Djs_input_monitor.cpp980 bool JsInputMonitor::GetJoystickPressedButtons(const std::set<int32_t>& pressedButtons, napi_value result) in GetJoystickPressedButtons() argument
990 for (const auto &item : pressedButtons) { in GetJoystickPressedButtons()
1004 if (SetNameProperty(jsEnv_, result, "pressedButtons", value) != napi_ok) { in GetJoystickPressedButtons()
1005 THROWERR_CUSTOM(jsEnv_, COMMON_PARAMETER_ERROR, "Set property of pressedButtons failed"); in GetJoystickPressedButtons()
1119 bool JsInputMonitor::GetPressedButtons(const std::set<int32_t>& pressedButtons, napi_value result) in GetPressedButtons() argument
1129 for (const auto &item : pressedButtons) { in GetPressedButtons()
1148 if (SetNameProperty(jsEnv_, result, "pressedButtons", value) != napi_ok) { in GetPressedButtons()
1149 THROWERR(jsEnv_, "Set property of pressedButtons failed"); in GetPressedButtons()
1274 MMI_HILOGE("Get pressedButtons failed"); in TransformMousePointerEvent()
1285 std::set<int32_t> pressedButtons in TransformMousePointerEvent() local
1341 std::set<int32_t> pressedButtons = pointerEvent->GetPressedButtons(); TransformJoystickPointerEvent() local
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/frontend/
H A Dcj_frontend.cpp158 .append(",\"pressedButtons\":") in MouseInfoToString()
159 .append(std::to_string(globalMouse.pressedButtons)); in MouseInfoToString()
/foundation/arkui/ace_engine/test/unittest/core/pipeline/
H A Dpipeline_context_test_ng.cpp1125 * and pressedButtons = MOUSE_PRESS_LEFT. in HWTEST_F()
1130 event.pressedButtons = MOUSE_PRESS_LEFT; in HWTEST_F()
1137 * and pressedButtons = MOUSE_PRESS_LEFT. in HWTEST_F()
1141 event.pressedButtons = MOUSE_PRESS_LEFT; in HWTEST_F()
1148 * and pressedButtons = MOUSE_PRESS_LEFT. in HWTEST_F()
1152 event.pressedButtons = MOUSE_PRESS_LEFT; in HWTEST_F()
1159 * and pressedButtons = MOUSE_PRESS_LEFT. in HWTEST_F()
1169 * and pressedButtons = MOUSE_PRESS_LEFT. in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/bridge/plugin_frontend/
H A Dplugin_frontend.cpp140 .append(",\"pressedButtons\":") in MouseInfoToString()
141 .append(std::to_string(globalMouse.pressedButtons)); in MouseInfoToString()
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/
H A Djs_frontend.cpp213 .append(",\"pressedButtons\":") in MouseInfoToString()
214 .append(std::to_string(globalMouse.pressedButtons)) in MouseInfoToString()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/
H A Ddeclarative_frontend.cpp144 .append(",\"pressedButtons\":") in MouseInfoToString()
145 .append(std::to_string(globalMouse.pressedButtons)); in MouseInfoToString()
/foundation/arkui/ace_engine/frameworks/core/pipeline/
H A Dpipeline_context.cpp1748 (event.button == MouseButton::LEFT_BUTTON || event.pressedButtons == MOUSE_PRESS_LEFT)) { in OnMouseEvent()
/foundation/arkui/ace_engine/frameworks/core/pipeline_ng/
H A Dpipeline_context.cpp3496 (event.button == MouseButton::LEFT_BUTTON || event.pressedButtons == MOUSE_PRESS_LEFT)) || in DispatchMouseEvent()

Completed in 29 milliseconds