blob: b463dd84e75bdfe3bc9f807523d3ba3de65854e9 [file] [log] [blame]
Jeff Brown6f2fba42011-02-19 01:08:02 -08001# Copyright (C) 2011 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#
18
19key 0x124 DPAD_UP
20key 0x125 DPAD_RIGHT
21key 0x126 DPAD_DOWN
22key 0x127 DPAD_LEFT
23
Michael Wrightf9c2ada2013-04-04 16:57:20 -070024key 0x12e BUTTON_A
25key 0x12d BUTTON_B
26key 0x12f BUTTON_X
27key 0x12c BUTTON_Y
Jeff Brown6f2fba42011-02-19 01:08:02 -080028key 0x12a BUTTON_L1
29key 0x12b BUTTON_R1
30key 0x128 BUTTON_L2
31key 0x129 BUTTON_R2
32key 0x121 BUTTON_THUMBL
33key 0x122 BUTTON_THUMBR
34
Jeff Brown6f2fba42011-02-19 01:08:02 -080035# Left Analog Stick
36axis 0x00 X
37axis 0x01 Y
38
39# Right Analog Stick
40axis 0x02 Z
41axis 0x05 RZ
42
43# DPAD
44# axis 0x2c -HAT_Y
45# axis 0x2d +HAT_X
46# axis 0x2e +HAT_Y
47# axis 0x2f -HAT_X
48
49# L2 trigger
50axis 0x30 LTRIGGER
51
52# R2 trigger
53axis 0x31 RTRIGGER
54
55# L1 trigger
56# axis 0x32
57
58# R1 trigger
59# axis 0x33
60
61# Triangle
62# axis 0x34
63
64# Circle
65# axis 0x35
66
67# Cross
68# axis 0x36
69
70# Square
71# axis 0x37
Kim Low0a5109d2017-04-04 13:32:19 -070072
73# Mapping according to https://www.kernel.org/doc/Documentation/input/gamepad.txt
74# Select
75key 0x120 BUTTON_SELECT
76# Start
77key 0x123 BUTTON_START
78# PS key
79key 0x2d0 BUTTON_MODE