Permalink
Browse files

Android: Return 0 on fail on WiimoteReal IOWrite and update WiimoteNe…

…w 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
  • Loading branch information...
zackhow committed Aug 3, 2018
1 parent be02a8e commit ec5e46fa7a3e9c2da68777d718155ff768a4b238
@@ -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
@@ -107,7 +107,7 @@ public static int Output(int index, byte[] buf, int size)
1000);
if (write < 0)
return -1;
return 0;
return write + 1;
}

0 comments on commit ec5e46f

Please sign in to comment.