summaryrefslogtreecommitdiff
path: root/Source/Android/app/src
diff options
context:
space:
mode:
authorzackhow <zackhow@gmail.com>2018-08-03 19:46:26 -0400
committerzackhow <zackhow@gmail.com>2018-08-03 19:46:26 -0400
commitec5e46fa7a3e9c2da68777d718155ff768a4b238 (patch)
tree8823c05de18a46b6ce8224b9b34b4970c259955e /Source/Android/app/src
parentbe02a8e70b87a5f144949cb831c66a03a73ec58a (diff)
Android: Return 0 on fail on WiimoteReal IOWrite and update WiimoteNew defaults
Some of the write checks do an & on the result, returning 0 will allow these fails to be caught. Updated the default WiimoteNew to set wiimotes 2-4 to be disabled on new install. No reason to have these enabled unless there is actually a 2+ players
Diffstat (limited to 'Source/Android/app/src')
-rw-r--r--Source/Android/app/src/main/assets/WiimoteNew.ini6
-rw-r--r--Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/Java_WiimoteAdapter.java2
2 files changed, 4 insertions, 4 deletions
diff --git a/Source/Android/app/src/main/assets/WiimoteNew.ini b/Source/Android/app/src/main/assets/WiimoteNew.ini
index 9fcbad5130..205733d90c 100644
--- a/Source/Android/app/src/main/assets/WiimoteNew.ini
+++ b/Source/Android/app/src/main/assets/WiimoteNew.ini
@@ -267,7 +267,7 @@ Turntable/Stick/Radius = 100,000000
Turntable/Effect/Dial = `Axis 621`
Turntable/Crossfade/Left = `Axis 623`
Turntable/Crossfade/Right = `Axis 624`
-Source = 1
+Source = 0
[Wiimote3]
Device = Android/6/Touchscreen
Buttons/A = `Button 100`
@@ -402,7 +402,7 @@ Turntable/Stick/Radius = 100,000000
Turntable/Effect/Dial = `Axis 621`
Turntable/Crossfade/Left = `Axis 623`
Turntable/Crossfade/Right = `Axis 624`
-Source = 1
+Source = 0
[Wiimote4]
Device = Android/7/Touchscreen
Buttons/A = `Button 100`
@@ -537,4 +537,4 @@ Turntable/Stick/Radius = 100,000000
Turntable/Effect/Dial = `Axis 621`
Turntable/Crossfade/Left = `Axis 623`
Turntable/Crossfade/Right = `Axis 624`
-Source = 1
+Source = 0
diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/Java_WiimoteAdapter.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/Java_WiimoteAdapter.java
index a38f7ecd4b..18fe41b584 100644
--- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/Java_WiimoteAdapter.java
+++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/Java_WiimoteAdapter.java
@@ -107,7 +107,7 @@ public class Java_WiimoteAdapter
1000);
if (write < 0)
- return -1;
+ return 0;
return write + 1;
}