diff --git a/lineage/res/res/values/config.xml b/lineage/res/res/values/config.xml index 8b5b9cf9..cdd8d4e4 100644 --- a/lineage/res/res/values/config.xml +++ b/lineage/res/res/values/config.xml @@ -140,4 +140,32 @@ org.lineageos.lineageparts.gestures.KeyHandler + + + 79 + + + 79 diff --git a/lineage/res/res/values/symbols.xml b/lineage/res/res/values/symbols.xml index e005c31c..6ffd51fd 100644 --- a/lineage/res/res/values/symbols.xml +++ b/lineage/res/res/values/symbols.xml @@ -116,6 +116,10 @@ + + + + diff --git a/sdk/src/java/org/lineageos/internal/util/DeviceKeysConstants.java b/sdk/src/java/org/lineageos/internal/util/DeviceKeysConstants.java new file mode 100644 index 00000000..053afa93 --- /dev/null +++ b/sdk/src/java/org/lineageos/internal/util/DeviceKeysConstants.java @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2017 The LineageOS Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.lineageos.internal.util; + +public class DeviceKeysConstants { + // Masks for checking presence of hardware keys. + // Must match values in: + // lineage/res/res/values/config.xml + public static final int KEY_MASK_HOME = 0x01; + public static final int KEY_MASK_BACK = 0x02; + public static final int KEY_MASK_MENU = 0x04; + public static final int KEY_MASK_ASSIST = 0x08; + public static final int KEY_MASK_APP_SWITCH = 0x10; + public static final int KEY_MASK_CAMERA = 0x20; + public static final int KEY_MASK_VOLUME = 0x40; +} +