Skip to content

Commit

Permalink
Merge pull request #12706 from JosJuice/android-controllerinterface-init
Browse files Browse the repository at this point in the history
Android/ControllerInterface: Run the init code
  • Loading branch information
jordan-woyak committed Apr 13, 2024
2 parents e62d8ec + 5456d99 commit 1bc6433
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -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;

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

Expand Down

0 comments on commit 1bc6433

Please sign in to comment.