fixed the last commit. also forgot to mention controller names require api 16.
This commit is contained in:
parent
ae1fcf503a
commit
ddfc85280d
|
@ -154,7 +154,7 @@ public class GL2JNIActivity extends Activity
|
|||
for(int i = 0;i<joys.length; i++){
|
||||
Log.d("reidc", "InputDevice ID: "+joys[i]);
|
||||
Log.d("reidc", "InputDevice Name: "+ InputDevice.getDevice(joys[i]).getName());
|
||||
if(InputDevice.getDevice(joys[i]).getName()=="Sony PLAYSTATION(R)3 Controller"){
|
||||
if(InputDevice.getDevice(joys[i]).getName().equals("Sony PLAYSTATION(R)3 Controller")){
|
||||
map = new int[] {
|
||||
OuyaController.BUTTON_Y, key_CONT_B,
|
||||
OuyaController.BUTTON_U, key_CONT_A,
|
||||
|
|
Loading…
Reference in New Issue