client
show_popup_menus = 0
MouseDown(atom/movable/object, location, control, params)
params = params2list(params)
if(params["right"])
world<<"Right Down"
if(params["left"])
world<<"Left Down"
MouseUp(atom/movable/object, location, control, params)
params = params2list(params)
if(params["right"])
world<<"Right Up"
if(params["left"])
world<<"Left Up"
Problem description:
So, as it stands, if I'm holding R-Mouse, and then press L-Mouse, it sends both L- and R-Mouse Down. And, when I release L-Mouse, it will send both L- and R-Mouse Up.
Is there a better way to handle this so both L- and R-Mouse are handled completely independently?
Instead of "left", "right", "middle" only being present when that button was the cause, they are always given if the button is being held.
Now, the way to check which button caused the event is with the "button" param, which can be either "left", "right", or "middle".