blob: 9ffae33bc38731afdd429b44b861f6d899b89a94 [file] [log] [blame]
Siarhei Vishniakou75cf61f2019-06-24 14:23:53 -07001# Copyright (C) 2019 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# PDP Wired Controller for Xbox One - Stealth Series
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
28
29# Triggers.
30axis 0x02 LTRIGGER
31axis 0x05 RTRIGGER
32
33# Left and right stick.
34axis 0x00 X
35axis 0x01 Y
36axis 0x03 Z
37axis 0x04 RZ
38
39key 317 BUTTON_THUMBL
40key 318 BUTTON_THUMBR
41
42# Hat.
43axis 0x10 HAT_X
44axis 0x11 HAT_Y
45
46
47# Mapping according to https://www.kernel.org/doc/Documentation/input/gamepad.txt
48# Two overlapping rectangles
49key 314 BUTTON_SELECT
50# Hamburger - 3 parallel lines
51key 315 BUTTON_START
52
53# Xbox key
54key 316 BUTTON_MODE