blob: d30bcc60e66301b216f2407f90f89309fda5d824 [file] [log] [blame]
Andrei Litvin3b92b962020-03-16 10:26:14 -04001# Copyright (C) 2020 The Android Open Source Project
2#
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# Keyboard map for the android virtual remote running as a gamepad
17#
18
19key 0x130 BUTTON_A
20key 0x131 BUTTON_B
21key 0x133 BUTTON_X
22key 0x134 BUTTON_Y
23
24key 0x136 BUTTON_L2
25key 0x137 BUTTON_R2
26key 0x138 BUTTON_L1
27key 0x139 BUTTON_R1
28
29key 0x13a BUTTON_SELECT
30key 0x13b BUTTON_START
31key 0x13c BUTTON_MODE
32
33key 0x13d BUTTON_THUMBL
34key 0x13e BUTTON_THUMBR
35
36key 103 DPAD_UP
37key 108 DPAD_DOWN
38key 105 DPAD_LEFT
39key 106 DPAD_RIGHT
40
41# Generic usage buttons
42key 0x2c0 BUTTON_1
43key 0x2c1 BUTTON_2
44key 0x2c2 BUTTON_3
45key 0x2c3 BUTTON_4
46key 0x2c4 BUTTON_5
47key 0x2c5 BUTTON_6
48key 0x2c6 BUTTON_7
49key 0x2c7 BUTTON_8
50key 0x2c8 BUTTON_9
51key 0x2c9 BUTTON_10
52key 0x2ca BUTTON_11
53key 0x2cb BUTTON_12
54key 0x2cc BUTTON_13
55key 0x2cd BUTTON_14
56key 0x2ce BUTTON_15
57key 0x2cf BUTTON_16
58
59# assistant buttons
60key 0x246 VOICE_ASSIST
61key 0x247 ASSIST
62
63axis 0x00 X
64axis 0x01 Y
65axis 0x02 Z
66axis 0x05 RZ
67axis 0x09 RTRIGGER
68axis 0x0a LTRIGGER
69axis 0x10 HAT_X
70axis 0x11 HAT_Y
71