mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-04 19:55:19 +00:00
Make initializeDeviceListener() and shutdownDeviceListener() public
This commit is contained in:
parent
36c5809b09
commit
8549aae829
1 changed files with 2 additions and 2 deletions
|
|
@ -71,7 +71,7 @@ public class SDLControllerManager
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void initializeDeviceListener() {
|
static public void initializeDeviceListener() {
|
||||||
if (mDeviceListener == null) {
|
if (mDeviceListener == null) {
|
||||||
mDeviceListener = new SDLDeviceListener();
|
mDeviceListener = new SDLDeviceListener();
|
||||||
|
|
||||||
|
|
@ -80,7 +80,7 @@ public class SDLControllerManager
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void shutdownDeviceListener() {
|
static public void shutdownDeviceListener() {
|
||||||
if (mDeviceListener != null) {
|
if (mDeviceListener != null) {
|
||||||
InputManager im = (InputManager) SDL.getContext().getSystemService(Context.INPUT_SERVICE);
|
InputManager im = (InputManager) SDL.getContext().getSystemService(Context.INPUT_SERVICE);
|
||||||
im.unregisterInputDeviceListener(mDeviceListener);
|
im.unregisterInputDeviceListener(mDeviceListener);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue