mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Android/ControllerInterface: Run the init code
This was broken by a9a9fdd9e9
. Because Init didn't run, the Android
input backend would crash whenever it tried to call into JVM code.
This commit is contained in:
@ -448,7 +448,7 @@ namespace ciface::Android
|
|||||||
class InputBackend final : public ciface::InputBackend
|
class InputBackend final : public ciface::InputBackend
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
using ciface::InputBackend::InputBackend;
|
InputBackend(ControllerInterface* controller_interface);
|
||||||
~InputBackend();
|
~InputBackend();
|
||||||
void PopulateDevices() override;
|
void PopulateDevices() override;
|
||||||
|
|
||||||
@ -797,7 +797,8 @@ static jintArray CreateKeyCodesArray(JNIEnv* env)
|
|||||||
return keycodes_array;
|
return keycodes_array;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Init()
|
InputBackend::InputBackend(ControllerInterface* controller_interface)
|
||||||
|
: ciface::InputBackend(controller_interface)
|
||||||
{
|
{
|
||||||
JNIEnv* env = IDCache::GetEnvForThread();
|
JNIEnv* env = IDCache::GetEnvForThread();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user