blob: 150a17a78250b141c90041c3a501f390cff6ca82 [file] [log] [blame]
Siarhei Vishniakou2abc5d22020-05-13 14:16:52 -07001# 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# Steam Controller - Model 1001 - USB
17#
18
19# Mapping according to https://developer.android.com/training/game-controllers/controller-input.html
20
21key 304 BUTTON_A
22key 305 BUTTON_B
23key 307 BUTTON_X
24key 308 BUTTON_Y
25
26key 310 BUTTON_L1
27key 311 BUTTON_R1
28key 312 BUTTON_L2
29key 313 BUTTON_R2
30
31# Triggers.
32axis 0x15 LTRIGGER
33axis 0x14 RTRIGGER
34
35# Left and right stick.
36axis 0x00 X
37axis 0x01 Y
38
39# Right stick / mousepad
40axis 0x03 Z
41axis 0x04 RZ
42
43key 317 BUTTON_THUMBL
44key 318 BUTTON_THUMBR
45
46# Hat.
47axis 0x10 HAT_X
48axis 0x11 HAT_Y
49
50# Dpad (clicks)
51key 544 DPAD_UP
52key 545 DPAD_DOWN
53key 546 DPAD_LEFT
54key 547 DPAD_RIGHT
55
56# Touching the dpad (light touch without pressing down)
57key 289 BUTTON_1
58# Touching the "right stick" / mousepad (light touch without pressing down)
59key 290 BUTTON_2
60
61# Pressing the large paddle on the back, left (linux BTN_WHEEL / BTN_GEAR_DOWN)
62key 336 BUTTON_3
63# Pressing the large paddle on the back, right (linux BTN_GEAR_UP)
64key 337 BUTTON_4
65
66
67# Mapping according to https://www.kernel.org/doc/Documentation/input/gamepad.txt
68# Left arrow
69key 314 BUTTON_SELECT
70# Right arrow
71key 315 BUTTON_START
72
73# Steam key
74key 316 BUTTON_MODE