Simulate the entire process of sending key values for L / R
This commit is contained in:
parent
bb302f1cab
commit
598bc85d55
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue