From ee0ca870fff94d59f932ba4b5c64cb82baf3c08e Mon Sep 17 00:00:00 2001 From: goyuken Date: Thu, 26 Jun 2014 21:31:38 +0000 Subject: [PATCH] gpgx: contrl infrastructure --- BizHawk.Emulation.Cores/Consoles/Sega/gpgx/GPGX.cs | 7 +++++++ 1 file changed, 7 insertions(+) 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() {