Fix a bunch of Lint errors

This commit is contained in:
Cameron Gutman
2014-11-13 21:37:11 -08:00
parent 6604675bf9
commit a37fff6eb5
9 changed files with 62 additions and 73 deletions

View File

@@ -398,13 +398,13 @@ public class ControllerHandler {
return true;
}
public boolean handleButtonUp(int keyCode, KeyEvent event) {
public boolean handleButtonUp(KeyEvent event) {
ControllerMapping mapping = getMappingForDevice(event.getDevice());
if (mapping == null) {
return false;
}
keyCode = handleRemapping(mapping, event);
int keyCode = handleRemapping(mapping, event);
if (keyCode == 0) {
return true;
}
@@ -521,13 +521,13 @@ public class ControllerHandler {
return true;
}
public boolean handleButtonDown(int keyCode, KeyEvent event) {
public boolean handleButtonDown(KeyEvent event) {
ControllerMapping mapping = getMappingForDevice(event.getDevice());
if (mapping == null) {
return false;
}
keyCode = handleRemapping(mapping, event);
int keyCode = handleRemapping(mapping, event);
if (keyCode == 0) {
return true;
}