public static void Initialize() { MouseDevice = new MouseDevice(); KeyboardDevice = new KeyboardDevice(); AvaloniaLocator.CurrentMutable .Bind<IPclPlatformWrapper>().ToSingleton<PclPlatformWrapper>() .Bind<IClipboard>().ToTransient<Clipboard>() // TODO: what does this look like for iOS?? //.Bind<ISystemDialogImpl>().ToTransient<SystemDialogImpl>() .Bind<IStandardCursorFactory>().ToTransient<CursorFactory>() .Bind<IKeyboardDevice>().ToConstant(KeyboardDevice) .Bind<IMouseDevice>().ToConstant(MouseDevice) .Bind<IPlatformSettings>().ToSingleton<PlatformSettings>() .Bind<IPlatformThreadingInterface>().ToConstant(PlatformThreadingInterface.Instance) .Bind<IPlatformIconLoader>().ToSingleton<PlatformIconLoader>(); }
public MouseEventArgs(MouseDevice mouse, int timestamp) : base(mouse, timestamp) { }
public RawMouseEventArgs(MouseDevice device, RawMouseEventType type) : base(device, Environment.TickCount) { this.Type = type; }
public MouseButtonEventArgs(MouseDevice device, int timestamp) : base(device, timestamp) { }