Giter VIP home page Giter VIP logo

moga-uinput's People

Contributors

jakobend avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

moga-uinput's Issues

Some buttons are not recognized correctly in game.

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```

X and Y buttons are flipped.

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.