/// <summary> /// Prevents a default instance of the <see cref="Touchpad" /> class from being created. /// </summary> private Touchpad() : base(TargetDisplay.Widget, Constants.TouchpadHeight, Constants.TouchpadWidth) { _log = LogManager.GetLogger(this); _log.Info("Setting disabled image"); _log.Debug("Setting gesture callback"); _gestureCallback = HandleTouchpadGesture; var result = NativeMethods.RzSBGestureSetCallback(_gestureCallback); if (HRESULT.RZSB_FAILED(result)) { throw new NativeCallException("RzSBGestureSetCallback", result); } _log.Debug("Creating blank bitmap"); _blankBitmap = GenericMethods.GetBlankBitmap(DisplayWidth, DisplayHeight); }
internal static extern HRESULT RzSBGestureSetCallback([In] TouchpadGestureCallback callback);