moonlight-stream / moonlight-embedded

Gamestream client for embedded systems
https://github.com/moonlight-stream/moonlight-embedded/wiki
GNU General Public License v3.0
1.51k stars 326 forks source link

Initializing new members of mapping struct #824

Closed tomblind closed 3 years ago

tomblind commented 3 years ago

Description This initializes the new members recently added to the mapping struct to default values.

Purpose After recently updating I was having a number of bizarre input issues. I tracked it down to this commit: e8fbb2ec9ca45a5cd870afe1db1b5b994dad74c9 and realized the new members added to the mapping struct were not being initialized. Fixing that seems to have cured the problems I having.

A more robust solution would probably be good here, but this gets it working for now.

cgutman commented 3 years ago

Wow, awesome catch. I had no idea that land mine was sitting there.

I pushed a cleaner fix. Can you try with 7ff0bcd8fd1730ccebd5e86fa8d1817304094825?

tomblind commented 3 years ago

That looks much nicer. And I can confirm it works on my device.