Merge pull request #12706 from JosJuice/android-controllerinterface-init

Android/ControllerInterface: Run the init code
This commit is contained in:
Jordan Woyak 2024-04-13 16:19:54 -05:00 committed by GitHub
commit 1bc6433404
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();