summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/Android
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2024-04-13 16:19:54 -0500
committerGitHub <noreply@github.com>2024-04-13 16:19:54 -0500
commit1bc6433404016ef07e522430f0fbb92f9fd81b33 (patch)
treecdec3e1fae2579fbc0da4ef6a8ade558489168b1 /Source/Core/InputCommon/ControllerInterface/Android
parente62d8ecfa8c104f73c4feafc79f7ff64b4a4fd7b (diff)
parent5456d990d16bee5a03796e5230ffc1117a981393 (diff)
Merge pull request #12706 from JosJuice/android-controllerinterface-init
Android/ControllerInterface: Run the init code
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Android')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/Android/Android.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp b/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp
index 69f0e5b5ec..c60679daf0 100644
--- a/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp
+++ b/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp
@@ -448,7 +448,7 @@ namespace ciface::Android
class InputBackend final : public ciface::InputBackend
{
public:
- using ciface::InputBackend::InputBackend;
+ InputBackend(ControllerInterface* controller_interface);
~InputBackend();
void PopulateDevices() override;
@@ -797,7 +797,8 @@ static jintArray CreateKeyCodesArray(JNIEnv* env)
return keycodes_array;
}
-void Init()
+InputBackend::InputBackend(ControllerInterface* controller_interface)
+ : ciface::InputBackend(controller_interface)
{
JNIEnv* env = IDCache::GetEnvForThread();