コード例 #1
0
ファイル: vJoyWrapper.cs プロジェクト: chuoique/VjoyWrapper
        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();
        }
コード例 #2
0
ファイル: vJoyWrapper.cs プロジェクト: chuoique/VjoyWrapper
        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();
        }