gpgx: contrl infrastructure

This commit is contained in:
goyuken 2014-06-26 21:31:38 +00:00
parent a33f926675
commit ee0ca870ff
1 changed files with 7 additions and 0 deletions

View File

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