XNA Mouse Movement

后端 未结 3 557
孤街浪徒
孤街浪徒 2021-01-17 01:56

I\'ve made a few games in XNA before and I\'m about to start a new project. One thing I\'d like to do is have the mouse movement.

Just to clarify (as I\'ve seen some

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-17 02:11

    My understanding of XNA is very limited, as game development isn't my main line of development.

    That being said, for what I understand of the bejavior of XNA, you really need to calculate the variation of position between frames to see how much the mouse has moved.

    With the variation in the X-Y coordinate, you can get all kind of data based on this simple measure.

提交回复
热议问题