2011-01-11 02:55:51 +00:00
|
|
|
|
using SlimDX.Direct3D9;
|
|
|
|
|
using SlimDX.DirectSound;
|
|
|
|
|
|
|
|
|
|
namespace BizHawk.MultiClient
|
|
|
|
|
{
|
2011-06-19 23:39:25 +00:00
|
|
|
|
public static class Global
|
|
|
|
|
{
|
|
|
|
|
public static MainForm MainForm;
|
|
|
|
|
public static DirectSound DSound;
|
|
|
|
|
public static Direct3D Direct3D;
|
|
|
|
|
public static Sound Sound;
|
|
|
|
|
public static IRenderer RenderPanel;
|
|
|
|
|
public static Config Config;
|
|
|
|
|
public static IEmulator Emulator;
|
2011-06-11 22:15:08 +00:00
|
|
|
|
public static CoreInputComm CoreInputComm;
|
2011-06-19 23:39:25 +00:00
|
|
|
|
public static RomGame Game;
|
|
|
|
|
public static Controller SMSControls;
|
|
|
|
|
public static Controller PCEControls;
|
|
|
|
|
public static Controller GenControls;
|
2011-05-08 00:06:43 +00:00
|
|
|
|
public static Controller TI83Controls;
|
|
|
|
|
public static Controller NESControls;
|
2011-06-27 01:24:26 +00:00
|
|
|
|
public static Controller GBControls;
|
2011-06-19 23:39:25 +00:00
|
|
|
|
public static Controller NullControls;
|
2011-06-27 05:31:46 +00:00
|
|
|
|
|
|
|
|
|
//TODO should have one of these per movie!!!! should not be global.
|
|
|
|
|
public static MovieControllerAdapter MovieControllerAdapter = new MovieControllerAdapter();
|
|
|
|
|
public static CopyControllerAdapter MovieInputSourceAdapter = new CopyControllerAdapter();
|
|
|
|
|
|
|
|
|
|
public static MultitrackRewiringControllerAdapter MultitrackRewiringControllerAdapter = new MultitrackRewiringControllerAdapter();
|
|
|
|
|
|
2011-07-10 07:39:40 +00:00
|
|
|
|
//user -> Input -> ActiveController -> TurboAdapter(TBD) -> Lua(?) -> ..
|
|
|
|
|
//.. -> MultitrackRewiringControllerAdapter -> MovieInputSourceAdapter -> MovieInputController -> ControllerOutput(1) -> Game
|
2011-06-27 05:31:46 +00:00
|
|
|
|
//(1)->Input Display
|
|
|
|
|
|
|
|
|
|
//the original source controller, bound to the user, sort of the "input" port for the chain, i think
|
|
|
|
|
public static Controller ActiveController;
|
|
|
|
|
|
|
|
|
|
//the "output" port for the controller chain.
|
|
|
|
|
public static IController ControllerOutput;
|
|
|
|
|
|
2011-07-10 07:39:40 +00:00
|
|
|
|
//input state which has been destined for game controller inputs are coalesced here
|
|
|
|
|
public static InputCoalescer ControllerInputCoalescer = new InputCoalescer();
|
|
|
|
|
//input state which has been destined for client hotkey consumption are colesced here
|
|
|
|
|
public static InputCoalescer HotkeyCoalescer = new InputCoalescer();
|
|
|
|
|
|
2011-07-10 06:24:04 +00:00
|
|
|
|
public static UD_LR_ControllerAdapter UD_LR_ControllerAdapter = new UD_LR_ControllerAdapter();
|
2011-07-10 02:14:58 +00:00
|
|
|
|
|
2011-07-10 07:39:40 +00:00
|
|
|
|
public static Controller ClientControls;
|
|
|
|
|
|
2011-06-27 05:31:46 +00:00
|
|
|
|
public static string GetOutputControllersAsMnemonic()
|
|
|
|
|
{
|
|
|
|
|
MnemonicsGenerator mg = new MnemonicsGenerator();
|
|
|
|
|
mg.SetSource(Global.ControllerOutput);
|
|
|
|
|
return mg.GetControllersAsMnemonic();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//TODO - wtf is this being used for
|
|
|
|
|
public static bool MovieMode;
|
2011-06-19 23:39:25 +00:00
|
|
|
|
}
|
2011-01-11 02:55:51 +00:00
|
|
|
|
}
|