Detect single mouseclick - move sprite

Started by
9 comments, last by mollekake 11 years, 1 month ago

Well it is kinda wrong, that if line detects when the mouse is clicked and the last state was unclicked.

i changed it to this to be correct:


if (newState.LeftButton == ButtonState.Released && oldState.LeftButton == ButtonState.Pressed)

This topic is closed to new replies.

Advertisement