Skip to content

Commit 8d03804

Browse files
committed
Add support for DualShock 2.
1 parent 2741822 commit 8d03804

3 files changed

Lines changed: 45 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This module aims to be an all-in-one module for controllers.
88
It adds .kl files to fix keybindings on many game controllers.
99

1010
### Compatibility:
11+
- DualShock 2
1112
- DualShock 3
1213
- DualShock 4
1314
- DualSense
@@ -29,6 +30,7 @@ It adds .kl files to fix keybindings on many game controllers.
2930
- [KeiranGinge](https://forum.xda-developers.com/member.php?u=9642932) for helping with DS4 mappings.
3031
- [djsmax](https://github.com/djsmax) for many many fixes and changes.
3132
- [Black-Seraph](https://github.com/Black-Seraph) for Pro Controller Keylayout from CleanRom (GPD XD+).
33+
- [MattMasc](https://github.com/MattMasc) for DualShock 2 Keylayout.
3234

3335

3436
### Changelog:
@@ -41,4 +43,5 @@ It adds .kl files to fix keybindings on many game controllers.
4143
- **1.4.1:** Added Xbox 360 Controller (vid_045e&pid_028e) support.
4244
- **1.4.2** Added Nacon REVOLUTION PRO CONTROLLER. ([Moe-Baker](https://github.com/Moe-Baker))
4345
- **1.4.3:** Updated to Magisk v20 template.
44-
- **1.5.0:** Added support for DualSense and Zeemote SteelSeries FREE controllers.
46+
- **1.5.0:** Added support for DualSense and Zeemote SteelSeries FREE controllers.
47+
- **1.5.1:** Added support for DualShock 2. ([MattMasc](https://github.com/MattMasc))

module.prop

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id=OneController
22
name=1Controller - 1 Module to support all Controllers.
3-
version=v1.5.0
4-
versionCode=150
3+
version=v1.5.1
4+
versionCode=151
55
author=Electric1447
66
description=This module adds .kl file (keylayout) for Dualshock 4/3, Xbox One/S, Xbox 360.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Copyright (C) 2013 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) DualShock 2 Controller
17+
#
18+
19+
key 296 BUTTON_SELECT
20+
key 297 BUTTON_START
21+
key 290 BUTTON_A
22+
key 289 BUTTON_B
23+
key 291 BUTTON_X
24+
key 288 BUTTON_Y
25+
key 294 BUTTON_L1
26+
key 295 BUTTON_R1
27+
key 292 BUTTON_L2
28+
key 293 BUTTON_R2
29+
key 298 BUTTON_THUMBL
30+
key 299 BUTTON_THUMBR
31+
32+
axis 0x00 X
33+
axis 0x01 Y
34+
35+
axis 0x05 Z
36+
axis 0x02 RZ
37+
38+
axis 0x10 HAT_X
39+
axis 0x11 HAT_Y

0 commit comments

Comments
 (0)