From 36bfb8815ec9be2cb1cff82a39bc3c4100f26176 Mon Sep 17 00:00:00 2001 From: s1w2a3 <68775901+s1w2a3@users.noreply.github.com> Date: Sat, 28 May 2022 11:36:50 +0200 Subject: [PATCH 1/7] Joy-Con Compatibility --- .../usr/keylayout/Vendor_057e_Product_2006.kl | 12 ++++++++++ .../usr/keylayout/Vendor_057e_Product_2007.kl | 24 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 system/usr/keylayout/Vendor_057e_Product_2006.kl create mode 100644 system/usr/keylayout/Vendor_057e_Product_2007.kl diff --git a/system/usr/keylayout/Vendor_057e_Product_2006.kl b/system/usr/keylayout/Vendor_057e_Product_2006.kl new file mode 100644 index 0000000..feebd30 --- /dev/null +++ b/system/usr/keylayout/Vendor_057e_Product_2006.kl @@ -0,0 +1,12 @@ +key 309 BUTTON_MODE +key 314 BUTTON_SELECT +key 317 BUTTON_THUMBL +key 310 BUTTON_L1 +key 312 BUTTON_L2 +key 544 DPAD_UP +key 545 DPAD_DOWN +key 546 DPAD_LEFT +key 547 DPAD_RIGHT + +axis 0x00 X +axis 0x01 Y \ No newline at end of file diff --git a/system/usr/keylayout/Vendor_057e_Product_2007.kl b/system/usr/keylayout/Vendor_057e_Product_2007.kl new file mode 100644 index 0000000..a46f459 --- /dev/null +++ b/system/usr/keylayout/Vendor_057e_Product_2007.kl @@ -0,0 +1,24 @@ +# Device name: Nintendo Switch Right Joy-Con +# Device id : Vendor_057e_Product_2007 + +# key +# key 304 BUTTON_A +key 304 BUTTON_B +# key 305 BUTTON_B +key 305 BUTTON_A +# key 307 BUTTON_X +key 307 BUTTON_X +# key 308 BUTTON_Y +key 308 BUTTON_Y +key 311 BUTTON_R1 +key 313 BUTTON_R2 +key 318 BUTTON_THUMBR +key 315 BUTTON_START +key 316 HOME + +# axis +axis 0x03 Z +axis 0x04 RZ + +# keyboard +# key \ No newline at end of file From 1e6a0a5f0a48fb18998e153bc967fa970c762e8e Mon Sep 17 00:00:00 2001 From: s1w2a3 <68775901+s1w2a3@users.noreply.github.com> Date: Sat, 28 May 2022 11:41:50 +0200 Subject: [PATCH 2/7] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cd28941..05d7bc5 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ It adds .kl files to fix keybindings on many game controllers. - Xbox One S - Xbox Series X|S - Switch Pro Controller ??? (not tested yet) + - SWITCH JOY-CON - Nacon REVOLUTION PRO CONTROLLER - Zeemote SteelSeries FREE @@ -47,4 +48,4 @@ It adds .kl files to fix keybindings on many game controllers. - **1.4.3:** Updated to Magisk v20 template. - **1.5.0:** Added support for DualSense and Zeemote SteelSeries FREE controllers. - **1.5.1:** Added support for DualShock 2. ([MattMasc](https://github.com/MattMasc)) - - **1.5.2:** Added support for Xbox Series X|S. ([RuiGuilherme](https://github.com/RuiGuilherme)) \ No newline at end of file + - **1.5.2:** Added support for Xbox Series X|S. ([RuiGuilherme](https://github.com/RuiGuilherme)) From a18ac6fc60b074ff17cb4409c65896596c726692 Mon Sep 17 00:00:00 2001 From: s1w2a3 <68775901+s1w2a3@users.noreply.github.com> Date: Sat, 28 May 2022 11:49:34 +0200 Subject: [PATCH 3/7] Update module.prop --- module.prop | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/module.prop b/module.prop index 66967f5..98579d4 100644 --- a/module.prop +++ b/module.prop @@ -1,6 +1,6 @@ -id=OneController +id=OneControllerPlus name=1Controller - 1 Module to support all Controllers. -version=v1.5.2 -versionCode=152 -author=Electric1447 -description=This module adds .kl file (keylayout) for Dualshock 4/3, Xbox Series X|S, Xbox One/S, Xbox 360. +version=v1.0.0 +versionCode=100 +author=Electric1447 and s1w2a3 +description=This module adds .kl file (keylayout) for Dualshock 4/3, Xbox Series X|S, Xbox One/S, Xbox 360, Switch Pro Controller and Joy-Con. From 23fc0894d967cb6dbd0e0d5dd592f2a88032a9fa Mon Sep 17 00:00:00 2001 From: s1w2a3 <68775901+s1w2a3@users.noreply.github.com> Date: Sat, 28 May 2022 11:51:34 +0200 Subject: [PATCH 4/7] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 05d7bc5..8b3aabe 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ It adds .kl files to fix keybindings on many game controllers. - [Black-Seraph](https://github.com/Black-Seraph) for Pro Controller Keylayout from CleanRom (GPD XD+). - [MattMasc](https://github.com/MattMasc) for DualShock 2 Keylayout. - [RuiGuilherme](https://github.com/RuiGuilherme) for Xbox Series X|S. + - [s1w2a3](https://github.com/s1w2a3) for Joy-Con. ### Changelog: From fa415b926aa4c9c6e8fe7fd538c4802c5d082b10 Mon Sep 17 00:00:00 2001 From: s1w2a3 <68775901+s1w2a3@users.noreply.github.com> Date: Sat, 28 May 2022 11:59:01 +0200 Subject: [PATCH 5/7] Update README.md --- README.md | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 8b3aabe..f238b52 100644 --- a/README.md +++ b/README.md @@ -37,16 +37,17 @@ It adds .kl files to fix keybindings on many game controllers. - [s1w2a3](https://github.com/s1w2a3) for Joy-Con. - ### Changelog: - - **1.0:** Initial GitHub Release. - - **1.1:** Added Dualshock 3 support. - - **1.2:** Fixed some DS4 mappings. - - **1.2.1:** Updated to Magisk v19 template. - - **1.3.0:** Merged [djsmax](https://github.com/djsmax) changes. - - **1.4:** Added Switch Pro Controller Support ???. - - **1.4.1:** Added Xbox 360 Controller (vid_045e&pid_028e) support. - - **1.4.2** Added Nacon REVOLUTION PRO CONTROLLER. ([Moe-Baker](https://github.com/Moe-Baker)) - - **1.4.3:** Updated to Magisk v20 template. - - **1.5.0:** Added support for DualSense and Zeemote SteelSeries FREE controllers. - - **1.5.1:** Added support for DualShock 2. ([MattMasc](https://github.com/MattMasc)) - - **1.5.2:** Added support for Xbox Series X|S. ([RuiGuilherme](https://github.com/RuiGuilherme)) + ### Changelog ("-" means that it was done on the original repo OneController): + - **-1.0:** Initial GitHub Release. + - **-1.1:** Added Dualshock 3 support. + - **-1.2:** Fixed some DS4 mappings. + - **-1.2.1:** Updated to Magisk v19 template. + - **-1.3.0:** Merged [djsmax](https://github.com/djsmax) changes. + - **-1.4:** Added Switch Pro Controller Support ???. + - **-1.4.1:** Added Xbox 360 Controller (vid_045e&pid_028e) support. + - **-1.4.2** Added Nacon REVOLUTION PRO CONTROLLER. ([Moe-Baker](https://github.com/Moe-Baker)) + - **-1.4.3:** Updated to Magisk v20 template. + - **-1.5.0:** Added support for DualSense and Zeemote SteelSeries FREE controllers. + - **-1.5.1:** Added support for DualShock 2. ([MattMasc](https://github.com/MattMasc)) + - **-1.5.2:** Added support for Xbox Series X|S. ([RuiGuilherme](https://github.com/RuiGuilherme)) + - **1.0.0:** Added support for Joy-Con ([s1w2a3](https://github.com/s1w2a3)) From 7c91a8c620cd2328e9348136bd62b548c894a956 Mon Sep 17 00:00:00 2001 From: s1w2a3 <68775901+s1w2a3@users.noreply.github.com> Date: Sat, 28 May 2022 12:03:57 +0200 Subject: [PATCH 6/7] Update module.prop --- module.prop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module.prop b/module.prop index 98579d4..1668454 100644 --- a/module.prop +++ b/module.prop @@ -1,5 +1,5 @@ id=OneControllerPlus -name=1Controller - 1 Module to support all Controllers. +name=OneControllerPlus - 1 Module to support all Controllers. version=v1.0.0 versionCode=100 author=Electric1447 and s1w2a3 From 916e39965bf8b2e0efc0b2882b645786956dff52 Mon Sep 17 00:00:00 2001 From: s1w2a3 <68775901+s1w2a3@users.noreply.github.com> Date: Wed, 3 May 2023 22:00:06 +0200 Subject: [PATCH 7/7] Update README.md updated to explain Joy-Con support --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f238b52..963c0a9 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ ![alt text](https://i.imgur.com/CODzG0F.png?4) ### About: +**This fork adds proper support for Joy-Con**.
This module aims to be an all-in-one module for controllers. It adds .kl files to fix keybindings on many game controllers.