JoyShock::thread should probably just be a std::thread rather than a pointer to one, and use std::move on thread creation. Let me know if you'd like me to submit that change.
For now though, this simply addresses the memory leak that happens for each disconnected JoyShock.
JoyShock::thread should probably just be a std::thread rather than a pointer to one, and use std::move on thread creation. Let me know if you'd like me to submit that change. For now though, this simply addresses the memory leak that happens for each disconnected JoyShock.