public GameWindowMouseInputSource(MouseDevice device, CursorPosSetter cursorPosSetterX, CursorPosSetter cursorPosSetterY)
		{
			this.device = device;
			this.cursorPosSetterX = cursorPosSetterX;
			this.cursorPosSetterY = cursorPosSetterY;

			this.device.Enter += this.device_Enter;
			this.device.Leave += this.device_Leave;
		}
        public GameWindowMouseInputSource(GameWindow window, CursorPosSetter cursorPosSetterX, CursorPosSetter cursorPosSetterY)
        {
            this.window           = window;
            this.cursorPosSetterX = cursorPosSetterX;
            this.cursorPosSetterY = cursorPosSetterY;

            this.window.Mouse.Enter += this.device_Enter;
            this.window.Mouse.Leave += this.device_Leave;
        }
Esempio n. 3
0
        public OpenTKMouseInputSource(MouseDevice device, CursorPosSetter cursorPosSetterX, CursorPosSetter cursorPosSetterY)
        {
            this.device           = device;
            this.cursorPosSetterX = cursorPosSetterX;
            this.cursorPosSetterY = cursorPosSetterY;

            this.device.Enter += this.device_Enter;
            this.device.Leave += this.device_Leave;
        }
Esempio n. 4
0
		public WindowMouseInput(MouseDevice device, CursorPosSetter cursorPosSetterX, CursorPosSetter cursorPosSetterY)
		{
			this.device = device;
			this.cursorPosSetterX = cursorPosSetterX;
			this.cursorPosSetterY = cursorPosSetterY;
		}