public vJoyFunctions(vJoy jostick) { _logger = new Logger(); _joystick = jostick; IReportDescriptorProperties reportDescriptorProperties = new vJoyReportDescriptorProperties(); _ffbHandler = new vJoyFfbHandler(_joystick, reportDescriptorProperties, _logger); _joystick.FfbRegisterGenCB(OnFfbArrival, _id); zeroJoystickState = GetZeroJoystickInput(); }
public vJoyFunctions(vJoy jostick, int id, ILogger customLogger) { _id = (uint)id; _logger = customLogger != null ? customLogger : new Logger(); _joystick = jostick; IReportDescriptorProperties reportDescriptorProperties = new vJoyReportDescriptorProperties(); _ffbHandler = new vJoyFfbHandler(_joystick, reportDescriptorProperties, _logger); _joystick.FfbRegisterGenCB(OnFfbArrival, _id); zeroJoystickState = GetZeroJoystickInput(); }