blob: 5fe35f7faefa7c83a5df4d9f528875866c853a0c [file] [log] [blame]
Kim Low0a5109d2017-04-04 13:32:19 -07001# Copyright (C) 2018 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# Sony Playstation(R)3 Controller
17# - Version 0x8111 is for Linux hid-sony driver >=4.12 and when
18# connected over USB
19#
20
21key 0x220 DPAD_UP
22key 0x223 DPAD_RIGHT
23key 0x221 DPAD_DOWN
24key 0x222 DPAD_LEFT
25
26key 0x130 BUTTON_A
27key 0x131 BUTTON_B
28key 0x134 BUTTON_X
29key 0x133 BUTTON_Y
30key 0x136 BUTTON_L1
31key 0x137 BUTTON_R1
32key 0x138 BUTTON_L2
33key 0x139 BUTTON_R2
34key 0x13d BUTTON_THUMBL
35key 0x13e BUTTON_THUMBR
36
37# left Analog Stick
38axis 0x00 X
39axis 0x01 Y
40
41# Right Analog Stick
42axis 0x03 Z
43axis 0x04 RZ
44
45# L2 trigger
46axis 0x02 LTRIGGER
47
48# R2 trigger
49axis 0x05 RTRIGGER
50
51# Mapping according to https://www.kernel.org/doc/Documentation/input/gamepad.txt
52# Select
53key 0x13a BUTTON_SELECT
54# Start
55key 0x13b BUTTON_START
56# PS key
57key 0x13c BUTTON_MODE