diff --git a/device/friendlyelec/nanopi3/input/Vendor_0171_Product_041e.idc b/device/friendlyelec/nanopi3/input/Vendor_0171_Product_041e.idc new file mode 100644 index 00000000000..5c55f9de107 --- /dev/null +++ b/device/friendlyelec/nanopi3/input/Vendor_0171_Product_041e.idc @@ -0,0 +1,23 @@ +# Copyright (C) 2021 The Android Open Source 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. + +# +# Input Device Configuration file for Bluetooth Remote. +# +# + +# Basic Parameters +keyboard.layout = Vendor_0171_Product_041e +keyboard.doNotWakeByDefault = 0 +audio.mic = 1 diff --git a/device/friendlyelec/nanopi3/input/Vendor_0171_Product_041e.kl b/device/friendlyelec/nanopi3/input/Vendor_0171_Product_041e.kl new file mode 100644 index 00000000000..90244ba2426 --- /dev/null +++ b/device/friendlyelec/nanopi3/input/Vendor_0171_Product_041e.kl @@ -0,0 +1,44 @@ +# Copyright (C) 2021 The Android Open Source 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. + +# +# Key Layout file for Bluetooth Remote. +# + +key 103 DPAD_UP +key 108 DPAD_DOWN +key 105 DPAD_LEFT +key 106 DPAD_RIGHT +key 96 DPAD_CENTER + +key 102 HOME +key 172 HOME +key 158 BACK +key 127 MENU +key 116 POWER + +key 168 MEDIA_REWIND +key 208 MEDIA_FAST_FORWARD +key 164 MEDIA_PLAY_PAUSE +key 217 ASSIST + +key 113 VOLUME_MUTE +key 114 VOLUME_DOWN +key 115 VOLUME_UP + +# custom keys +# key 28 ENTER +# key 63 F5 +key usage 0x00070028 DPAD_CENTER +key usage 0x0007003e F12