1 /* 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef JS_REGISTER_MODULE_H 17 #define JS_REGISTER_MODULE_H 18 19 #include <cstdio> 20 #include <cstring> 21 #include <iostream> 22 #include <list> 23 #include <map> 24 25 #include "napi/native_api.h" 26 #include "napi/native_node_api.h" 27 #include "utils/log.h" 28 29 #include "define_multimodal.h" 30 31 enum MOUSE_CALLBACK_EVENT { 32 JS_CALLBACK_MOUSE_ACTION_MOVE = 1, 33 JS_CALLBACK_MOUSE_ACTION_BUTTON_DOWN = 2, 34 JS_CALLBACK_MOUSE_ACTION_BUTTON_UP = 3, 35 JS_CALLBACK_POINTER_ACTION_DOWN = 7, 36 JS_CALLBACK_POINTER_ACTION_UP = 8, 37 }; 38 39 enum TOUCH_CALLBACK_EVENT { 40 JS_CALLBACK_TOUCH_ACTION_DOWN = 1, 41 JS_CALLBACK_TOUCH_ACTION_MOVE = 2, 42 JS_CALLBACK_TOUCH_ACTION_UP = 3, 43 }; 44 45 enum TOUCH_CALLBACK_SOURCETYPE { 46 TOUCH_SCREEN = 0, 47 PEN = 1, 48 TOUCH_PAD = 2 49 }; 50 #endif // JS_REGISTER_MODULE_H