Skip to content

Commit

Permalink
Clean up touch callback in dispose function as caught by Nicolas
Browse files Browse the repository at this point in the history
  • Loading branch information
JibbSmart committed Feb 8, 2021
1 parent 91d6add commit 2ac79e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions JoyShockLibrary/JoyShockLibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ void JslDisconnectAndDisposeAll()
{
// no more callback
JslSetCallback(nullptr);
JslSetTouchCallback(nullptr);

for (std::pair<int, JoyShock*> pair : _joyshocks)
{
Expand Down

0 comments on commit 2ac79e0

Please sign in to comment.