Просмотр исходного кода

Make initializeDeviceListener() and shutdownDeviceListener() public

Sam Lantinga 1 день назад
Родитель
Сommit
8549aae829

+ 2 - 2
android-project/app/src/main/java/org/libsdl/app/SDLControllerManager.java

@@ -71,7 +71,7 @@ public class SDLControllerManager
         }
     }
 
-    static void initializeDeviceListener() {
+    static public void initializeDeviceListener() {
         if (mDeviceListener == null) {
             mDeviceListener = new SDLDeviceListener();
 
@@ -80,7 +80,7 @@ public class SDLControllerManager
         }
     }
 
-    static void shutdownDeviceListener() {
+    static public void shutdownDeviceListener() {
         if (mDeviceListener != null) {
             InputManager im = (InputManager) SDL.getContext().getSystemService(Context.INPUT_SERVICE);
             im.unregisterInputDeviceListener(mDeviceListener);