Skip to content

Commit 4446fba

Browse files
authored
Merge branch 'Magisk-Modules-Repo:master' into master
2 parents 7c91a8c + 5f7ee2b commit 4446fba

3 files changed

Lines changed: 144 additions & 0 deletions

File tree

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Copyright (C) 2016 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+
# XBox X/S wireless controller, model # 1914, QAU-00002, bought early 2023
17+
#
18+
19+
key 304 BUTTON_A
20+
key 305 BUTTON_B
21+
key 307 BUTTON_X
22+
key 308 BUTTON_Y
23+
key 310 BUTTON_L1
24+
key 311 BUTTON_R1
25+
key 314 BUTTON_SELECT # center left button with "overlapping windows" icon. Normally: BUTTON_SELECT
26+
key 315 BUTTON_START # center right button with "hamburger" icon. Normally: BUTTON_START
27+
key 316 BUTTON_MODE # big Xbox logo center top button. Normally: BUTTON_MODE
28+
key 167 BACK # center bottom button with an "eject" icon. Normally: ???
29+
key 317 BUTTON_THUMBL # normally: BUTTON_THUMBL
30+
key 318 BUTTON_THUMBR # normally: BUTTON_THUMBR
31+
32+
# Left and right stick.
33+
# The reported value for flat is 128 out of a range from -32767 to 32768, which is absurd.
34+
# This confuses applications that rely on the flat value because the joystick actually
35+
# settles in a flat range of +/- 4096 or so.
36+
axis 0x00 X flat 4096
37+
axis 0x01 Y flat 4096
38+
axis 0x02 Z flat 4096
39+
axis 0x05 RZ flat 4096
40+
41+
# Triggers.
42+
axis 0x09 LTRIGGER
43+
axis 0x0A RTRIGGER
44+
45+
# Hat.
46+
axis 0x10 HAT_X
47+
axis 0x11 HAT_Y
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Copyright (C) 2016 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+
# Old Logitech WingMan RumblePad
17+
#
18+
19+
# key 103 DPAD_UP
20+
# key 105 DPAD_LEFT
21+
# key 106 DPAD_RIGHT
22+
# key 108 DPAD_DOWN
23+
24+
25+
key 288 BUTTON_A
26+
key 289 BUTTON_B
27+
key 291 BUTTON_X
28+
key 292 BUTTON_Y
29+
key 294 BUTTON_L1
30+
key 295 BUTTON_R1
31+
key 297 MENU # Normally: BUTTON_L2
32+
key 298 HOME # Normally: BUTTON_R2
33+
key 296 BUTTON_START
34+
key 290 BUTTON_SELECT # Normally: BUTTON_C
35+
key 293 ESCAPE # Normally: BUTTON_Z
36+
37+
# Left and right stick.
38+
# The reported value for flat is 128 out of a range from -32767 to 32768, which is absurd.
39+
# This confuses applications that rely on the flat value because the joystick actually
40+
# settles in a flat range of +/- 4096 or so.
41+
axis 0x00 X flat 4096 # OK
42+
axis 0x01 Y flat 4096 # OK
43+
axis 0x05 Z flat 4096 # OK
44+
axis 0x06 RZ flat 4096 # OK
45+
46+
axis 0x02 THROTTLE flat 4096 # OK
47+
48+
49+
# This actually controls the DPAD
50+
axis 0x10 HAT_X
51+
axis 0x11 HAT_Y
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Copyright (C) 2016 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 Series X/S
17+
#
18+
19+
key 304 BUTTON_A
20+
key 305 BUTTON_B
21+
key 307 BUTTON_X
22+
key 308 BUTTON_Y
23+
key 310 BUTTON_L1
24+
key 311 BUTTON_R1
25+
key 314 BUTTON_SELECT
26+
key 315 BUTTON_START
27+
key 316 BUTTON_MODE
28+
key 317 BUTTON_THUMBL
29+
key 318 BUTTON_THUMBR
30+
31+
# Left and right stick.
32+
# The reported value for flat is 128 out of a range from -32767 to 32768, which is absurd.
33+
# This confuses applications that rely on the flat value because the joystick actually
34+
# settles in a flat range of +/- 4096 or so.
35+
axis 0x00 X flat 4096
36+
axis 0x01 Y flat 4096
37+
axis 0x03 Z flat 4096
38+
axis 0x04 RZ flat 4096
39+
40+
# Triggers.
41+
axis 0x02 LTRIGGER
42+
axis 0x05 RTRIGGER
43+
44+
# Hat.
45+
axis 0x10 HAT_X
46+
axis 0x11 HAT_Y

0 commit comments

Comments
 (0)