Electronicks / JoyShockMapper

A tool for PC gamers to play games with DualShock 4s, JoyCons, and Pro Controllers. Gyro aiming, flick stick.
Other
332 stars 20 forks source link

fix linux build (missing <cstring>) and fix invalid deviceHandles index #86

Closed TauAkiou closed 1 year ago

TauAkiou commented 1 year ago

This pull request adds a missing include that breaks building on linux.

It also fixes an invalid index bug in connectDevices() that will segfault the program due to improper cleaning of the deviceHandles vector.

Electronicks commented 1 year ago

Looks good. Thanks. It compiles properly on Windows too