Lines Matching defs:actionKey
119 int32_t actionKey = MMI::KeyEvent::KEYCODE_UNKNOWN;
123 if (IsMouseKey(pressedKeys, actionKey, metaKey1, metaKey2)) {
124 return ExecuteMouseKey(actionKey, metaKey1, metaKey2);
136 bool AccessibilityMouseKey::IsMouseKey(const std::vector<int32_t> &pressedKeys, int32_t &actionKey,
144 actionKey = pressedKeys[0];
153 actionKey = pressedKeys[i];
167 actionKey = pressedKeys[i];
194 bool AccessibilityMouseKey::ExecuteMouseKey(int32_t actionKey, int32_t metaKey1, int32_t metaKey2)
196 HILOG_DEBUG("actionKey:%{public}d, metaKey1:%{public}d, metaKey2:%{public}d", actionKey, metaKey1, metaKey2);
198 if ((actionKey == MMI::KeyEvent::KEYCODE_NUMPAD_1) ||
199 (actionKey == MMI::KeyEvent::KEYCODE_NUMPAD_2) ||
200 (actionKey == MMI::KeyEvent::KEYCODE_NUMPAD_3) ||
201 (actionKey == MMI::KeyEvent::KEYCODE_NUMPAD_4) ||
202 (actionKey == MMI::KeyEvent::KEYCODE_NUMPAD_6) ||
203 (actionKey == MMI::KeyEvent::KEYCODE_NUMPAD_7) ||
204 (actionKey == MMI::KeyEvent::KEYCODE_NUMPAD_8) ||
205 (actionKey == MMI::KeyEvent::KEYCODE_NUMPAD_9)) {
206 auto iter = MOUSE_MOVE_OFFSET_M.find(actionKey);
223 } else if (actionKey == MMI::KeyEvent::KEYCODE_NUMPAD_5) {
225 } else if (actionKey == MMI::KeyEvent::KEYCODE_NUMPAD_DIVIDE) {
227 } else if (actionKey == MMI::KeyEvent::KEYCODE_NUMPAD_MULTIPLY) {
229 } else if (actionKey == MMI::KeyEvent::KEYCODE_NUMPAD_SUBTRACT) {
231 } else if (actionKey == MMI::KeyEvent::KEYCODE_NUMPAD_ADD) {