Searched refs:MouseDeviceState (Results 1 – 5 of 5) sorted by relevance
27 MouseDeviceState::MouseDeviceState() in MouseDeviceState() function in OHOS::MMI::MouseDeviceState32 MouseDeviceState::~MouseDeviceState() {} in ~MouseDeviceState()34 int32_t MouseDeviceState::GetMouseCoordsX() const in GetMouseCoordsX()39 int32_t MouseDeviceState::GetMouseCoordsY() const in GetMouseCoordsY()44 void MouseDeviceState::SetMouseCoords(int32_t x, int32_t y) in SetMouseCoords()50 bool MouseDeviceState::IsLeftBtnPressed() in IsLeftBtnPressed()59 void MouseDeviceState::GetPressedButtons(std::vector<int32_t>& pressedButtons) in GetPressedButtons()68 void MouseDeviceState::MouseBtnStateCounts(uint32_t btnCode, const BUTTON_STATE btnState) in MouseBtnStateCounts()81 int32_t MouseDeviceState::LibinputChangeToPointer(const uint32_t keyValue) in LibinputChangeToPointer()90 void MouseDeviceState::ChangeMouseState(const BUTTON_STATE btnState, int32_t &btnStateCount) in ChangeMouseState()
195 if (button == MouseDeviceState::LIBINPUT_BUTTON_CODE::LIBINPUT_MIDDLE_BUTTON_CODE && in HandleButtonInner()197 button = MouseDeviceState::LIBINPUT_BUTTON_CODE::LIBINPUT_LEFT_BUTTON_CODE; in HandleButtonInner()855 button = MouseDeviceState::LIBINPUT_BUTTON_CODE::LIBINPUT_LEFT_BUTTON_CODE; in HandleTouchpadRightButton()860 if (button == MouseDeviceState::LIBINPUT_BUTTON_CODE::LIBINPUT_RIGHT_BUTTON_CODE && in HandleTouchpadRightButton()867 if (button == MouseDeviceState::LIBINPUT_BUTTON_CODE::LIBINPUT_LEFT_BUTTON_CODE && in HandleTouchpadRightButton()878 button = MouseDeviceState::LIBINPUT_BUTTON_CODE::LIBINPUT_RIGHT_BUTTON_CODE; in HandleTouchpadLeftButton()885 button = MouseDeviceState::LIBINPUT_BUTTON_CODE::LIBINPUT_LEFT_BUTTON_CODE; in HandleTouchpadLeftButton()897 if (button == MouseDeviceState::LIBINPUT_BUTTON_CODE::LIBINPUT_LEFT_BUTTON_CODE && in HandleTouchpadLeftButton()909 button = MouseDeviceState::LIBINPUT_BUTTON_CODE::LIBINPUT_RIGHT_BUTTON_CODE; in HandleTouchpadTwoFingerButton()916 button = MouseDeviceState::LIBINPUT_BUTTON_CODE::LIBINPUT_LEFT_BUTTON_CODE; in HandleTouchpadTwoFingerButton()[all …]
30 class MouseDeviceState final {31 DECLARE_DELAYED_SINGLETON(MouseDeviceState);59 DISALLOW_COPY_AND_MOVE(MouseDeviceState);76 #define MouseState ::OHOS::DelayedSingleton<MouseDeviceState>::GetInstance()
74 …MouseState->MouseBtnStateCounts(MouseDeviceState::LIBINPUT_LEFT_BUTTON_CODE, BUTTON_STATE_PRESSED);87 …MouseState->MouseBtnStateCounts(MouseDeviceState::LIBINPUT_LEFT_BUTTON_CODE, BUTTON_STATE_PRESSED);102 const uint32_t keyValue = MouseDeviceState::LIBINPUT_LEFT_BUTTON_CODE;
899 uint32_t button = MouseDeviceState::LIBINPUT_RIGHT_BUTTON_CODE;1009 uint32_t button = MouseDeviceState::LIBINPUT_LEFT_BUTTON_CODE;1041 uint32_t button = MouseDeviceState::LIBINPUT_RIGHT_BUTTON_CODE;1057 uint32_t button = MouseDeviceState::LIBINPUT_RIGHT_BUTTON_CODE;1073 uint32_t button = MouseDeviceState::LIBINPUT_LEFT_BUTTON_CODE;1089 uint32_t button = MouseDeviceState::LIBINPUT_RIGHT_BUTTON_CODE;1106 uint32_t button = MouseDeviceState::LIBINPUT_LEFT_BUTTON_CODE;1185 uint32_t button = MouseDeviceState::LIBINPUT_LEFT_BUTTON_CODE;1209 uint32_t button = MouseDeviceState::LIBINPUT_RIGHT_BUTTON_CODE;1213 button = MouseDeviceState::LIBINPUT_MIDDLE_BUTTON_CODE;[all …]