JonnyHaystack / HayBox

Modular cross-platform firmware for digital or mixed analog/digital game controllers
GNU General Public License v3.0
182 stars 231 forks source link

twoIP Edge Case Clarification #53

Closed trshfgc closed 1 year ago

trshfgc commented 1 year ago

I was looking through this firmware's SOCD resolution and making some modification and noticed that the twoIP function seems to output a neutral if both socd_state.was_dir1 and socd_state.was_dir2 are false and both of the SOCD inputs are true. Is this intended behavior?

JonnyHaystack commented 1 year ago

Yeah that's how it's supposed to work. I don't see how else you'd resolve that. It only happens if you press opposing directions on the same poll, and in that situation you can't really say which one should have priority over the other.