diff --git a/BizHawk.Emulation.Cores/Consoles/Sega/gpgx/GPGX.cs b/BizHawk.Emulation.Cores/Consoles/Sega/gpgx/GPGX.cs index 19ea90d2ee..b72783b12b 100644 --- a/BizHawk.Emulation.Cores/Consoles/Sega/gpgx/GPGX.cs +++ b/BizHawk.Emulation.Cores/Consoles/Sega/gpgx/GPGX.cs @@ -340,6 +340,13 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx ControllerDefinition = ControlConverter.ControllerDef; } + public LibGPGX.INPUT_DEVICE GetDeviceAtPort(int i) + { + if (i < 0 || i >= LibGPGX.MAX_DEVICES) + throw new IndexOutOfRangeException(); + return input.dev[i]; + } + // core callback for input void input_callback() {