Open danmatichuk opened 7 years ago
The difficult part here is knowing if the fault is in network traffic, or if the Moga itself failed to send the message. My own Power Pro has developed an intermittent fault where, when pushing up on the left stick, it sometimes thinks I'm also pushing sideways on the right stick.
Unfortunately the proposed fix would have a severe long-term performance impact. MogaSerial has the controller automatically send updates when inputs change. By asking for a polled update every time a message is read, those automatic updates will never get cleared, gradually backing up until the network buffer is full, and over time you'll wind up with some pretty heavy input latency.
I'm running into this as well. In playing an FPS, it triggers within a minute or two, making the game unplayable. My controller is almost new, and works fine with Android games on mode B, so I don't think there's a hardware issue.
Networking does seem like a place to investigate - I was playing about 6 feet away from my laptop (with a direct line of sight), but that is very different than what Moga would have tested with where the controller is basically touching your phone. Next time I'm playing I'll try playing closer.
I just tried again with the controller beside my laptop, and the axis got stuck almost immediately. It's a little strange, because I remember playing for several hours back in January and I thought it was fine.
Rapidly moving a joystick on one axis back and forth will occasionally cause updates to be "lost", resulting in the wrong direction being held (i.e. holding the stick right but registering as holding left). After holding the axis for a while eventually the correct direction is assumed, or if any other buttons are pushed.
The debugging output indicates that the last message is simply never received.