Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Need mouse help
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Kid_Goron




PostPosted: Tue May 24, 2005 1:16 pm   Post subject: Need mouse help

I've been making a final project in java, and i would like to incorporate the mouse into my program. I would like my helicopter (or any object) to follow the location of the mouse coordinates without a button press or anything. I would like to reserve the clicking to fire bombs from the helicopter. If possible i would also like a delay of follwing the mouse from the helicopter, and for the helicopter to never exceed a certain speed. Any sort of help would be appreciatd. Thanx
Sponsor
Sponsor
Sponsor
sponsor
Hikaru79




PostPosted: Wed May 25, 2005 9:06 pm   Post subject: (No subject)

The two things you need to learn are: MouseListener, for clicks and releases, etc, and
MouseMotionListener for just regular movements.
Kid_Goron




PostPosted: Thu May 26, 2005 8:21 am   Post subject: (No subject)

Never mind I figured this one out myself. I got what I need thanx amyways.
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: