Simulate the entire process of sending key values for L / R

This commit is contained in:
TwistedUmbrella 2014-01-27 09:49:58 -05:00
parent bb302f1cab
commit 598bc85d55
1 changed files with 8 additions and 2 deletions

View File

@ -528,10 +528,16 @@ public class GL2JNIActivity extends Activity {
boolean compat = prefs.getBoolean("controller_compat" + id, false); boolean compat = prefs.getBoolean("controller_compat" + id, false);
if (compat || custom[playerNum]) { if (compat || custom[playerNum]) {
if (keyCode == prefs.getInt("l_button" + id, OuyaController.BUTTON_L1)) { if (keyCode == prefs.getInt("l_button" + id, OuyaController.BUTTON_L1)) {
GL2JNIView.lt[playerNum] = 255; GL2JNIView.lt[playerNum] = (int) (0.5 * 255);
GL2JNIView.lt[playerNum] = (int) (1.0 * 255);
GL2JNIView.lt[playerNum] = (int) (0.5 * 255);
GL2JNIView.lt[playerNum] = 0;
} }
if (keyCode == prefs.getInt("r_button" + id, OuyaController.BUTTON_R1)) { if (keyCode == prefs.getInt("r_button" + id, OuyaController.BUTTON_R1)) {
GL2JNIView.lt[playerNum] = 255; GL2JNIView.lt[playerNum] = (int) (0.5 * 255);
GL2JNIView.lt[playerNum] = (int) (1.0 * 255);
GL2JNIView.lt[playerNum] = (int) (0.5 * 255);
GL2JNIView.lt[playerNum] = 0;
} }
} }
} }