Comments (1)
For someone wondering, this is a solution i came with but i'm still testing it, unfortunatelly i don't have any other controllers to test the other paths but for now at least for this 3rd party Joycons it works:
Then in hid-nintendo.c
(:1605)
static int joycon_input_create(struct joycon_ctlr *ctlr)
{
struct hid_device *hdev;
const char *name;
const char *imu_name;
int ret;
int i;
/*Some 3rd party Switch Pro controllers report Product ID 0x2006
instead of 0x2009.
Check reported controller type and force Product ID to PROCON.
Additionally some 3rd party Joycons are reported as Pro Controllers
so if the ctlr_type is left or right we force JOYCONL or JOYCONR.
*/
if(ctlr->ctlr_type == JOYCON_CTLR_TYPE_PRO &&
ctlr->hdev->product != USB_DEVICE_ID_NINTENDO_PROCON){
ctlr->hdev->product = USB_DEVICE_ID_NINTENDO_PROCON;
}
else if (ctlr->ctlr_type == JOYCON_CTLR_TYPE_JCL &&
ctlr->hdev->product == USB_DEVICE_ID_NINTENDO_PROCON) {
ctlr->hdev->product = USB_DEVICE_ID_NINTENDO_JOYCONL;
}
else if (ctlr->ctlr_type == JOYCON_CTLR_TYPE_JCR &&
ctlr->hdev->product == USB_DEVICE_ID_NINTENDO_PROCON) {
ctlr->hdev->product = USB_DEVICE_ID_NINTENDO_JOYCONR;
}
Before only the first validation was made to force the Pro Controller product id if the controller type was PRO, but now i added the two additional clauses to force if the controller type is JC left or JC right (and the product id is 0x2009 PROCON) it will force the product id of the controller to their respective joycons L/R product ids.
I can open a PR for your evaluation. Thanks!
from linux.
Related Issues (20)
- can't connect pro controller via bt, permission denied HOT 1
- Pro Controller disconnects when connected via Bluetooth HOT 122
- hid-nintendo module fails to load HOT 5
- Gulikit King Kong Controller hang HOT 18
- SN30 Pro+ controller's Switch mode isn't recognized at all...? HOT 4
- IMU axes don't match with DualShock/Dualsense
- Is hid-nintendo still maintained? HOT 4
- 3rd Party Joycon Compatibility HOT 11
- Player LED behavior is wrong HOT 4
- Pro Controller connected with USB, doesn't reconnect after computer resumes from suspend HOT 4
- nintendo pro gamepad can't works well when connected with BT
- Bluetooth is refusing to work HOT 6
- Cam HOT 4
- Which kernel version got the 'rumble rate limiter' fix? HOT 1
- Testing Rumble, is it mixed up?
- Third Party Joycons not working properly HOT 1
- 3rd Party Pro Controller SP5248LED HOT 3
- Gulikit KingKong2 unable to properly sync HOT 1
- Nintendo Switch Online N64 Controller doesn't work with linux kernel 6.8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linux.