Home
last modified time | relevance | path

Searched refs:axisType (Results 1 - 8 of 8) sorted by relevance

/foundation/multimodalinput/input/frameworks/proxy/events/src/
H A Daxis_event.cpp56 void AxisEvent::SetAxisType(int32_t axisType) in SetAxisType() argument
58 axisType_ = axisType; in SetAxisType()
/foundation/multimodalinput/input/frameworks/napi/input_device/src/
H A Djs_util.cpp33 std::unordered_map<int32_t, std::string> axisType = { member
147 auto iter = axisType.find(item.GetAxisType()); in GetDeviceAxisInfo()
148 if (iter == axisType.end()) { in GetDeviceAxisInfo()
149 MMI_HILOGD("Find axisType failed"); in GetDeviceAxisInfo()
154 napi_value axisType = nullptr; in GetDeviceAxisInfo() local
156 NAPI_AUTO_LENGTH, &axisType), CREATE_STRING_UTF8); in GetDeviceAxisInfo()
157 CHKRF(napi_set_named_property(cb->env, axisRange, "axis", axisType), SET_NAMED_PROPERTY); in GetDeviceAxisInfo()
/foundation/multimodalinput/input/interfaces/native/innerkits/event/include/
H A Daxis_event.h101 * @param axisType Indicates the type of the axis input event.
105 void SetAxisType(int32_t axisType);
/foundation/multimodalinput/input/interfaces/kits/c/input/
H A Doh_input_manager.h645 * @param axisType Axis type, for example, X axis or Y axis.
649 void OH_Input_SetMouseEventAxisType(struct Input_MouseEvent* mouseEvent, int32_t axisType);
665 * @param axisType Axis value. A positive value means scrolling forward, and a negative number means scrolling backward.
944 * @param axisType Axis type. The values are defined in {@link InputEvent_AxisType}.
953 InputEvent_AxisType axisType, double axisValue);
959 * @param axisType Axis type. The values are defined in {@link InputEvent_AxisType}.
964 * or the axisType not found in the axisEvent.\n
969 InputEvent_AxisType axisType, double* axisValue);
/foundation/multimodalinput/input/test/unittest/interfaces/kits/
H A Dinput_native_test.cpp334 * @tc.desc: Verify the set and get of mouseEvent axisType
343 int32_t axisType = OH_Input_GetMouseEventAxisType(mouseEvent); in HWTEST_F() local
344 EXPECT_EQ(axisType, MOUSE_BUTTON_LEFT); in HWTEST_F()
841 InputEvent_AxisType axisType = AXIS_TYPE_SCROLL_VERTICAL; in HWTEST_F() local
843 result = OH_Input_SetAxisEventAxisValue(axisEvent, axisType, axisValue); in HWTEST_F()
846 result = OH_Input_GetAxisEventAxisValue(axisEvent, axisType, &axisValue); in HWTEST_F()
1060 InputEvent_AxisType axisType = AXIS_TYPE_SCROLL_VERTICAL; in HWTEST_F() local
1062 Input_Result result = OH_Input_SetAxisEventAxisValue(nullptr, axisType, axisValue); in HWTEST_F()
1076 InputEvent_AxisType axisType = AXIS_TYPE_SCROLL_VERTICAL; in HWTEST_F() local
1077 Input_Result result = OH_Input_GetAxisEventAxisValue(axisEvent, axisType, nullpt in HWTEST_F()
1091 InputEvent_AxisType axisType = AXIS_TYPE_SCROLL_VERTICAL; HWTEST_F() local
1105 InputEvent_AxisType axisType = AXIS_TYPE_SCROLL_VERTICAL; HWTEST_F() local
1120 InputEvent_AxisType axisType = AXIS_TYPE_SCROLL_VERTICAL; HWTEST_F() local
[all...]
/foundation/multimodalinput/input/frameworks/native/input/test/
H A Doh_input_manager_test.cpp44 int32_t axisType { -1 };
146 inputMouseEvent.axisType = MOUSE_AXIS_SCROLL_VERTICAL; in HWTEST_F()
152 inputMouseEvent.axisType = MOUSE_AXIS_SCROLL_HORIZONTAL; in HWTEST_F()
326 InputEvent_AxisType axisType = AXIS_TYPE_SCROLL_VERTICAL; in HWTEST_F() local
328 inputAxisEvent.axisValues.insert(std::make_pair(axisType, axisValue)); in HWTEST_F()
329 EXPECT_EQ(OH_Input_GetAxisEventAxisValue(&inputAxisEvent, axisType, &axisValue), INPUT_SUCCESS); in HWTEST_F()
330 axisType = AXIS_TYPE_SCROLL_HORIZONTAL; in HWTEST_F()
331 EXPECT_EQ(OH_Input_GetAxisEventAxisValue(&inputAxisEvent, axisType, &axisValue), INPUT_PARAMETER_ERROR); in HWTEST_F()
/foundation/multimodalinput/input/frameworks/native/input/
H A Doh_input_manager.cpp53 int32_t axisType { -1 };
438 if (mouseEvent->axisType == MOUSE_AXIS_SCROLL_VERTICAL) { in HandleMouseAction()
441 if (mouseEvent->axisType == MOUSE_AXIS_SCROLL_HORIZONTAL) { in HandleMouseAction()
562 void OH_Input_SetMouseEventAxisType(struct Input_MouseEvent* mouseEvent, int32_t axisType) in OH_Input_SetMouseEventAxisType() argument
566 mouseEvent->axisType = axisType; in OH_Input_SetMouseEventAxisType()
573 return mouseEvent->axisType; in OH_Input_GetMouseEventAxisType()
908 InputEvent_AxisType axisType, double axisValue) in OH_Input_SetAxisEventAxisValue()
911 axisEvent->axisValues.emplace(axisType, axisValue); in OH_Input_SetAxisEventAxisValue()
916 InputEvent_AxisType axisType, doubl in OH_Input_GetAxisEventAxisValue()
907 OH_Input_SetAxisEventAxisValue(Input_AxisEvent* axisEvent, InputEvent_AxisType axisType, double axisValue) OH_Input_SetAxisEventAxisValue() argument
915 OH_Input_GetAxisEventAxisValue(const Input_AxisEvent* axisEvent, InputEvent_AxisType axisType, double* axisValue) OH_Input_GetAxisEventAxisValue() argument
[all...]
/foundation/multimodalinput/input/service/device_manager/src/
H A Dinput_device_manager.cpp52 std::unordered_map<int32_t, std::string> axisType{
112 for (const auto &item : axisType) { in GetInputDevice()
625 auto iter = axisType.find(axis.GetAxisType()); in Dump()
626 if (iter == axisType.end()) { in Dump()
627 MMI_HILOGE("The axisType is not found"); in Dump()
630 mprintf(fd, "\t axisType:%s | minimum:%d | maximum:%d | fuzz:%d | flat:%d | resolution:%d\t", in Dump()

Completed in 11 milliseconds