문제

I am developing a game for windows store (desktops) using monogame framework. everything else is working excellent except the Mouse cursor which is working well but not showing at time of playing game.

    protected override void Update(GameTime gameTime)
     {
        // TODO: Add your update logic here
        TouchCollection touch = TouchPanel.GetState();
        ms = Mouse.GetState();
        if (ms.LeftButton == ButtonState.Pressed)
        {
            Debug.WriteLine("pressedddddd");
        }


    }

you can see above code ... i am getting ouptut in output window "pressed" but i cant see the cursor on screen i am developing this on windows 8.1 pc and visual studio 2013 using monogame

도움이 되었습니까?

해결책

Put the below in the initialization function to make the mouse visible.

    this.IsMouseVisible = true;
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top