//This is a workaround since vJoy does not support disabling all 4 joysticks. public static void DisablevJoyDLL() { try { HardwareHelperLib.HH_Lib lb = new HH_Lib(); lb.SetDeviceState("vJoy Device", false); } catch { Log(null, new Logging.LogEventArgs("Error: Unable to disable vJoy.")); } }
public static void EnablevJoyDLL() { try { HardwareHelperLib.HH_Lib lb = new HH_Lib(); lb.SetDeviceState("vJoy Device", true); } catch { Log(null, new Logging.LogEventArgs("Error: Unable to complete vJoy enable.")); } }