From d2c473ee51c259ede6a49a0a2805148b2843cdd1 Mon Sep 17 00:00:00 2001 From: pelya Date: Fri, 13 Nov 2015 14:50:08 +0200 Subject: [PATCH] [SDL] Attempt to enable stylus hover events for Nvidia Note tablet --- project/java/MainActivity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/project/java/MainActivity.java b/project/java/MainActivity.java index 935cad5e7..0713bf580 100644 --- a/project/java/MainActivity.java +++ b/project/java/MainActivity.java @@ -433,6 +433,10 @@ public class MainActivity extends Activity //if( _ad.getView() != null ) // _ad.getView().onResume(); _isPaused = false; + // Nvidia is too smart to use Samsung's stylus API, obviously they need their own method to enable hover events + Intent i = new Intent("com.nvidia.intent.action.ENABLE_STYLUS"); + i.putExtra("package", getPackageName()); + sendBroadcast(i); } @Override