/foundation/multimodalinput/input/interfaces/kits/c/input/ |
H A D | oh_input_manager.h | 352 * @param keyState Key state. 358 Input_Result OH_Input_GetKeyState(struct Input_KeyState* keyState); 373 * @param keyState Key status enumeration object. 377 void OH_Input_DestroyKeyState(struct Input_KeyState** keyState); 382 * @param keyState Key status enumeration object. 387 void OH_Input_SetKeyCode(struct Input_KeyState* keyState, int32_t keyCode); 392 * @param keyState Key status enumeration object. 397 int32_t OH_Input_GetKeyCode(const struct Input_KeyState* keyState); 402 * @param keyState Key status enumeration object. 407 void OH_Input_SetKeyPressed(struct Input_KeyState* keyState, int32_ [all...] |
/foundation/multimodalinput/input/frameworks/native/input/ |
H A D | oh_input_manager.cpp | 38 int32_t keyState; member 162 Input_Result OH_Input_GetKeyState(struct Input_KeyState* keyState) in OH_Input_GetKeyState() argument 165 CHKPR(keyState, INPUT_PARAMETER_ERROR); in OH_Input_GetKeyState() 166 if (keyState->keyCode < 0 || keyState->keyCode > KEYCODE_NUMPAD_RIGHT_PAREN) { in OH_Input_GetKeyState() 167 MMI_HILOGE("The keyCode is invalid, keyCode:%{private}d", keyState->keyCode); in OH_Input_GetKeyState() 170 if (g_keyCodeValueSet.find(keyState->keyCode) == g_keyCodeValueSet.end()) { in OH_Input_GetKeyState() 171 MMI_HILOGE("The keyCode is not within the query range, keyCode:%{private}d", keyState->keyCode); in OH_Input_GetKeyState() 177 auto iter = std::find(pressedKeys.begin(), pressedKeys.end(), keyState->keyCode); in OH_Input_GetKeyState() 179 keyState in OH_Input_GetKeyState() 198 Input_KeyState* keyState = new (std::nothrow) Input_KeyState(); OH_Input_CreateKeyState() local 203 OH_Input_DestroyKeyState(struct Input_KeyState** keyState) OH_Input_DestroyKeyState() argument 212 OH_Input_SetKeyCode(struct Input_KeyState* keyState, int32_t keyCode) OH_Input_SetKeyCode() argument 222 OH_Input_GetKeyCode(const struct Input_KeyState* keyState) OH_Input_GetKeyCode() argument 228 OH_Input_SetKeyPressed(struct Input_KeyState* keyState, int32_t keyAction) OH_Input_SetKeyPressed() argument 234 OH_Input_GetKeyPressed(const struct Input_KeyState* keyState) OH_Input_GetKeyPressed() argument 240 OH_Input_SetKeySwitch(struct Input_KeyState* keyState, int32_t keySwitch) OH_Input_SetKeySwitch() argument 246 OH_Input_GetKeySwitch(const struct Input_KeyState* keyState) OH_Input_GetKeySwitch() argument [all...] |
/foundation/multimodalinput/input/test/unittest/interfaces/kits/ |
H A D | input_native_test.cpp | 59 struct Input_KeyState* keyState = OH_Input_CreateKeyState(); in HWTEST_F() local 60 if (keyState == nullptr) { in HWTEST_F() 61 ASSERT_EQ(keyState, nullptr); in HWTEST_F() 63 ASSERT_NE(keyState, nullptr); in HWTEST_F() 64 OH_Input_DestroyKeyState(&keyState); in HWTEST_F() 76 struct Input_KeyState* keyState = OH_Input_CreateKeyState(); in HWTEST_F() local 77 ASSERT_NE(keyState, nullptr); in HWTEST_F() 78 OH_Input_SetKeyCode(keyState, 2000); in HWTEST_F() 79 int32_t keyCode = OH_Input_GetKeyCode(keyState); in HWTEST_F() 81 OH_Input_DestroyKeyState(&keyState); in HWTEST_F() 92 struct Input_KeyState* keyState = OH_Input_CreateKeyState(); HWTEST_F() local 108 struct Input_KeyState* keyState = OH_Input_CreateKeyState(); HWTEST_F() local 124 struct Input_KeyState* keyState = OH_Input_CreateKeyState(); HWTEST_F() local [all...] |
/foundation/distributedhardware/distributed_input/common/include/ |
H A D | input_hub.cpp | 1535 bool InputHub::IsLengthExceeds(const unsigned long *keyState, const unsigned long len, int keyIndex) in IsLengthExceeds() argument 1544 void InputHub::CheckTargetKeyState(const InputHub::Device *dev, const unsigned long *keyState, const unsigned long len) in CheckTargetKeyState() argument 1548 if (IsLengthExceeds(keyState, len, BTN_LEFT)) { in CheckTargetKeyState() 1551 int mouseLeftBtnState = BitIsSet(keyState, BTN_LEFT); in CheckTargetKeyState() 1555 if (IsLengthExceeds(keyState, len, BTN_RIGHT)) { in CheckTargetKeyState() 1558 int mouseRightBtnState = BitIsSet(keyState, BTN_RIGHT); in CheckTargetKeyState() 1562 if (IsLengthExceeds(keyState, len, BTN_MIDDLE)) { in CheckTargetKeyState() 1565 int mouseMidBtnState = BitIsSet(keyState, BTN_MIDDLE); in CheckTargetKeyState() 1574 if (IsLengthExceeds(keyState, len, keyIndex)) { in CheckTargetKeyState() 1577 if (BitIsSet(keyState, keyInde in CheckTargetKeyState() 1599 unsigned long keyState[NLONGS(KEY_CNT)] = { 0 }; CheckTargetDevicesState() local [all...] |
H A D | input_hub.h | 102 bool IsLengthExceeds(const unsigned long *keyState, const unsigned long len, int keyIndex); 103 void CheckTargetKeyState(const InputHub::Device *dev, const unsigned long *keyState, const unsigned long len);
|
/foundation/multimodalinput/input/service/event_handler/src/ |
H A D | input_event_handler.cpp | 169 auto keyState = libinput_event_keyboard_get_key_state(keyboardEvent); in UpdateDwtKeyboardRecord() local 171 modifierPressedCount_ += (keyState == LIBINPUT_KEY_STATE_PRESSED) ? 1 : -1; in UpdateDwtKeyboardRecord() 173 if (keyState == LIBINPUT_KEY_STATE_PRESSED && modifierPressedCount_ > 0) { in UpdateDwtKeyboardRecord() 179 if (keyState == LIBINPUT_KEY_STATE_RELEASED) { in UpdateDwtKeyboardRecord()
|
/foundation/distributedhardware/distributed_input/utils/src/ |
H A D | dinput_utils_tool.cpp | 393 unsigned long keyState[NLONGS(KEY_CNT)] = { 0 }; in ResetVirtualDevicePressedKeys() local 403 int rc = ioctl(fd, EVIOCGKEY(sizeof(keyState)), keyState); in ResetVirtualDevicePressedKeys() 411 if (BitIsSet(keyState, keyIndex)) { in ResetVirtualDevicePressedKeys()
|
/foundation/multimodalinput/input/frameworks/native/input/test/ |
H A D | oh_input_manager_test.cpp | 29 int32_t keyState; member 343 Input_KeyState keyState; in HWTEST_F() local 345 EXPECT_NO_FATAL_FAILURE(OH_Input_SetKeyCode(&keyState, keyCode)); in HWTEST_F() 347 keyState.keyCode = 2300; in HWTEST_F() 348 EXPECT_NO_FATAL_FAILURE(OH_Input_SetKeyCode(&keyState, keyCode)); in HWTEST_F() 349 keyState.keyCode = KEYCODE_F1; in HWTEST_F() 350 EXPECT_NO_FATAL_FAILURE(OH_Input_SetKeyCode(&keyState, keyCode)); in HWTEST_F()
|
/foundation/multimodalinput/input/test/facility/libinput_interface/include/ |
H A D | libinput_interface.h | 51 enum libinput_key_state keyState; member
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/ |
H A D | js_drag_function.cpp | 365 auto keyState = NG::ArkTSUtils::GetModifierKeyState(args.GetJsiRuntimeCallInfo(), in GetModifierKeyState() local 367 if (keyState->IsTrue()) { in GetModifierKeyState()
|