From 4a963bc3b0d01b95f3ca030312e17d859b5aa29c Mon Sep 17 00:00:00 2001 From: goyuken Date: Mon, 23 Dec 2013 23:20:40 +0000 Subject: [PATCH] gpgx: informative fail if an attempted controller isn't supported --- .../Consoles/Sega/gpgx/GPGXControlConverter.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BizHawk.Emulation.Cores/Consoles/Sega/gpgx/GPGXControlConverter.cs b/BizHawk.Emulation.Cores/Consoles/Sega/gpgx/GPGXControlConverter.cs index 90bc98ddb2..ae4939b5ee 100644 --- a/BizHawk.Emulation.Cores/Consoles/Sega/gpgx/GPGXControlConverter.cs +++ b/BizHawk.Emulation.Cores/Consoles/Sega/gpgx/GPGXControlConverter.cs @@ -129,6 +129,10 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx DoMouseAnalog(i, player); player++; break; + case LibGPGX.INPUT_DEVICE.DEVICE_NONE: + break; + default: + throw new Exception("Unhandled control device! Something needs to be implemented first."); } }