Properly terminate threads when the game activity exits.

This commit is contained in:
Cameron Gutman
2013-11-10 01:30:55 -05:00
parent 61ae83337c
commit 0a445b9add
6 changed files with 228 additions and 103 deletions
@@ -19,6 +19,13 @@ public class NvController {
out = s.getOutputStream();
}
public void close()
{
try {
s.close();
} catch (IOException e) {}
}
public void sendControllerInput(short buttonFlags, byte leftTrigger, byte rightTrigger,
short leftStickX, short leftStickY, short rightStickX, short rightStickY) throws IOException
{