[2/3] OmniGears: add custom hardware button mapping
This allows for changing of what hardware buttons do.
This is taken from android-4.4 and things that
are commented out will be implemented later.
requires: https://gerrit.omnirom.org/11103
PS2: fix code style (red alerts)
PS3: fix code style (use space instead tabs)
PS5:
-added volume wake
-changed check for hw navigation buttons to use
config_deviceHardwareKeys
Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I8a0a382e2ac5ad36dd47845b8b0380135e45d9d8
diff --git a/res/values/custom_arrays.xml b/res/values/custom_arrays.xml
new file mode 100644
index 0000000..f4f7c88
--- /dev/null
+++ b/res/values/custom_arrays.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 The OmniROM Project
+
+ Parts Copyright (C) 2012-2013 The CyanogenMod Project
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ -->
+
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string-array name="keys_action_entries" translatable="false">
+ <item>@string/keys_action_nothing</item>
+ <item>@string/keys_action_home</item>
+ <item>@string/keys_action_back</item>
+ <item>@string/keys_action_menu</item>
+ <item>@string/keys_action_app_switch</item>
+ <item>@string/keys_action_search</item>
+ <item>@string/keys_action_voice_search</item>
+ <item>@string/keys_action_in_app_search</item>
+ <item>@string/keys_action_last_app</item>
+ <item>@string/keys_action_kill_app</item>
+ </string-array>
+
+ <string-array name="keys_action_values" translatable="false">
+ <item>0</item>
+ <item>6</item>
+ <item>7</item>
+ <item>1</item>
+ <item>2</item>
+ <item>3</item>
+ <item>4</item>
+ <item>5</item>
+ <item>8</item>
+ <item>9</item>
+ </string-array>
+</resources>