Skip to content

Commit

Permalink
Temporary fix to prevent crash in Quest controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Randall Barker committed Mar 15, 2019
1 parent dcbc58f commit 6bec73d
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -41,9 +41,10 @@ static class Device {

private static SparseArray<Device> devices = new SparseArray<>();


private static void generateEvent(Widget aWidget, Device aDevice, int aAction, boolean aGeneric) {
MotionEvent event = MotionEvent.obtain(
/*mDownTime*/ aDevice.mDownTime,
/*mDownTime*/ 0, // aDevice.mDownTime,
/*eventTime*/ SystemClock.uptimeMillis(),
/*action*/ aAction,
/*pointerCount*/ 1,
Expand All @@ -53,7 +54,7 @@ private static void generateEvent(Widget aWidget, Device aDevice, int aAction, b
/*buttonState*/ 0,
/*xPrecision*/ 0,
/*yPrecision*/ 0,
/*deviceId*/ aDevice.mDevice,
/*deviceId*/ 0, // aDevice.mDevice,
/*edgeFlags*/ 0,
/*source*/ InputDevice.SOURCE_TOUCHSCREEN,
/*flags*/ 0);
Expand Down

0 comments on commit 6bec73d

Please sign in to comment.