Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Detecting Mouse Button HELD - XNA

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
No replies to this topic

#1 WD Industries   Members   

127
Like
0Likes
Like

Posted 02 June 2012 - 12:37 PM

Hey GameDev,

I am currently working on a game (my first aside from TicTacToe), and I am trying to detect when the Mouse button has been held. My friend supplied me with MouseManager.cs which detects clicks as far as I can tell - I am trying to make it detect when the button has been held for a period of time.

I have attached the MouseManager. I believe I have to change it to make it detect holding the mouse. I have included changes I have made - but so far it hasn't worked with my code.


EDIT:

I seem to have solved the problem :) Now if only the rest of my code worked..

Edited by WD Industries, 02 June 2012 - 02:31 PM.





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.