public Vcontroller(uint vJoyNumber, int updateRate = 20) { _vJoyNumber = vJoyNumber; Vjoy = new vJoyInterfaceWrap.vJoy(); JoystickState = new vJoyInterfaceWrap.vJoy.JoystickState(); VjdStat status = Vjoy.GetVJDStatus(_vJoyNumber); if (status == VjdStat.VJD_STAT_OWN || status == VjdStat.VJD_STAT_FREE) { Vjoy.AcquireVJD(_vJoyNumber); } else { throw (new Exception("Could not acquire Vjoy")); } Vjoy.ResetVJD(_vJoyNumber); _buttonCount = Vjoy.GetVJDButtonNumber(_vJoyNumber); _initButtons(); _initDiscPovs(); _initAxes(); _initJoystickState(); UpdateRate = updateRate; }
public System.Threading.Tasks.Task PostCurrentJoystickStateAsync(vJoyInterfaceWrap.vJoy.JoystickState joyState, System.Guid token) { return(base.Channel.PostCurrentJoystickStateAsync(joyState, token)); }
public void PostCurrentJoystickState(vJoyInterfaceWrap.vJoy.JoystickState joyState, System.Guid token) { base.Channel.PostCurrentJoystickState(joyState, token); }