1 /* 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 3 * Description: Configuring the Key source type for KeyEvent Interception 4 * Author: h00580190 5 * Create: 2022-1-11 6 * Notes: No 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 */ 19 #ifndef SOUCETYPE_H 20 #define SOUCETYPE_H 21 22 namespace OHOS { 23 namespace MMI { 24 constexpr int32_t SOURCETYPE_UNKNOWN = 0; 25 // Mouse source type. Indicates that the source of the pointer type event is a mouse-like device 26 constexpr int32_t SOURCETYPE_MOUSE = 1; 27 // Touch screen source type. Indicates that the source of pointer type events is a touch screen device 28 constexpr int32_t SOURCETYPE_TOUCHSCREEN = 2; 29 // Touchpad source type. Indicates that the source of pointer type events is a touchpad device 30 constexpr int32_t SOURCETYPE_TOUCHPAD = 3; 31 // Key source type. Indicates that the source of key type events is a key device 32 constexpr int32_t SOURCETYPE_KEY = 4; 33 } // namespace MMI 34 } // namespace OHOS 35 36 #endif // SOUCETYPE_H