ID:279142
 
Keywords: click, left, right
(See the best response by Kaigne.)
So, I want the left mouse button to "use" and the right button to target. I've made the skin file and have the map set to send right clicks to mouse procs, but how do I get the client/Click() to distinguish between the two buttons?
Best response
atom/Click(loaction,controls,params)
var/p=params2list(params)
if(p["right"]) world<<"Right Click!"
if(p["left"]) world<<"Left Click!"


You should look at Mouse Control in the reference, to see more information about what you can do with the various mouse functions.