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

Username:   Password: 
 RegisterRegister   
 How to distinguish between right and left mouse clicks.
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
s_climax




PostPosted: Sun May 02, 2004 12:26 pm   Post subject: How to distinguish between right and left mouse clicks.

mousewhere(x,y,p)

only lets you know that either the left or right is pressed. How can I check if the right mouse button is pressed?
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Sun May 02, 2004 12:47 pm   Post subject: (No subject)

code:

var x,y,b:int
Mouse.ButtonChoose ("multibutton")
loop
Mouse.Where(x,y,b)
put b
end loop

left is 1
middle (scroller wheel) is 10
right is 100
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
s_climax




PostPosted: Sun May 02, 2004 1:55 pm   Post subject: (No subject)

thanks
Display posts from previous:   
   Index -> Programming, Turing -> Turing 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: