jakobend / moga-uinput Goto Github PK
View Code? Open in Web Editor NEWUserland linux driver for Moga bluetooth gamepads in "A" mode
License: MIT License
Userland linux driver for Moga bluetooth gamepads in "A" mode
License: MIT License
Tested with Elden Ring and Megaman Legacy Collection
Using my Moga Hero model 000353, the D-Pad left, right and down buttons are not recognized, nor are the "thumbstick clicks" (L3 and R3).
The output in terminal shows output as if the buttons are recognized, but it seems that the output of the program isn't what the game is expecting.
...yet multiple games act as if I've never pressed these buttons.
All buttons work for me, just not D-Pad L, R, D or L3/R3. D-Pad Up works. I haven't found a solution to this yet.
Sample output:
Searching for Moga device...
BTN_NORTH:307
BTN_EAST:305
BTN_SOUTH:304
BTN_WEST:308
BTN_START:315
BTN_SELECT:314
BTN_TL:310
BTN_TR:311
ABS_X:0▄
ABS_Y:1▄
ABS_RX:3▄
ABS_RY:4▄
BTN_DPAD_UP:544
BTN_DPAD_DOWN:545
BTN_DPAD_LEFT:546█
BTN_DPAD_RIGHT:547
BTN_TL2:312
BTN_TR2:313
BTN_THUMBL:317
BTN_THUMBR:318
ABS_HAT2Y:21
ABS_HAT2X:20
BTN_DPAD_LEFT:546
BTN_DPAD_DOWN:545█
BTN_DPAD_RIGHT:547█ █ █
BTN_THUMBR:318█
ABS_Y:1▄▄▄▄
BTN_THUMBL:317█
ABS_X:0▄▄
ABS_Y:1▄▄
ABS_X:0▄
ABS_Y:1▄
ABS_X:0▄
BTN_THUMBL:317
ABS_X:0▄
ABS_Y:1▄
ABS_X:0▄
ABS_Y:1▄▄
ABS_X:0▄▄▄▄▄▄
BTN_THUMBR:318█ <---R3
BTN_THUMBL:317 <---L3```
I'm not sure if this is model-specific, but I have a Moga Hero model number 353. When using moga-uinput pressing the X button make various games think I have pressed the Y button, and the Y button thinks I'm pressing the X button.
I can fix this by changing lines 122-125 to these:
Y=MogaButton(3, libevdev.EV_KEY.BTN_NORTH),
B=MogaButton(1, libevdev.EV_KEY.BTN_EAST),
A=MogaButton(2, libevdev.EV_KEY.BTN_SOUTH),
X=MogaButton(0, libevdev.EV_KEY.BTN_WEST)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.