1# 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
24key 0x120    BUTTON_SELECT
25key 0x123    BUTTON_START
26key 0x12e    BUTTON_A
27key 0x12d    BUTTON_B
28key 0x12f    BUTTON_X
29key 0x12c    BUTTON_Y
30key 0x12a    BUTTON_L1
31key 0x12b    BUTTON_R1
32key 0x128    BUTTON_L2
33key 0x129    BUTTON_R2
34key 0x121    BUTTON_THUMBL
35key 0x122    BUTTON_THUMBR
36
37# PS key
38key 0x2d0    HOME
39
40# Left Analog Stick
41axis 0x00    X
42axis 0x01    Y
43
44# Right Analog Stick
45axis 0x02    Z
46axis 0x05    RZ
47
48# DPAD
49# axis 0x2c   -HAT_Y
50# axis 0x2d   +HAT_X
51# axis 0x2e   +HAT_Y
52# axis 0x2f   -HAT_X
53
54# L2 trigger
55axis 0x30   LTRIGGER
56
57# R2 trigger
58axis 0x31   RTRIGGER
59
60# L1 trigger
61# axis 0x32
62
63# R1 trigger
64# axis 0x33
65
66# Triangle
67# axis 0x34
68
69# Circle
70# axis 0x35
71
72# Cross
73# axis 0x36
74
75# Square
76# axis 0x37
77