Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Detecting Mouse Button HELD - XNA


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   -  Reputation: 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.


Sponsor:



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.



PARTNERS