Page 1 of 1

Right-click drag?

Posted: Mon Mar 14, 2016 1:52 am
by Perfect Human Interface
Can we get right-click drag control? Or does Flowstone only support left-click drag? Ruby?

Re: Right-click drag?

Posted: Mon Mar 14, 2016 10:22 pm
by billv
Just change "capture mouse" and "release mouse" to the right click definitions.

Code: Select all

def mouseRDown x,y
    captureMouse
end

def mouseMoveCaptured x,y 

end


def mouseRUp x,y
   releaseMouse
end

Re: Right-click drag?

Posted: Mon Mar 14, 2016 10:25 pm
by Perfect Human Interface
Thanks. It's too bad there isn't a prim, but I'll manage. :)

Re: Right-click drag?

Posted: Mon Mar 14, 2016 10:38 pm
by tulamide
Be aware though, that this introduces the old view-catches-no-mouse-release issue (when you have nested views), because there is no 'mouseRUpCaptured' as exists for the lmb.

Re: Right-click drag?

Posted: Mon Mar 14, 2016 10:57 pm
by Perfect Human Interface
I see, thank you for bringing that to my attention.

Re: Right-click drag?

Posted: Tue Mar 15, 2016 12:09 am
by Jay
i needed this also quite recently and i have been using this code edited from the guide to give separate x and y and a bool on output 2 for the mousedown, you can see my noobish way of getting the bool, could someone show me how to do that the correct way please?

Code: Select all

def isInMousePoint x,y
true
end
output 2, false   
   
def mouseRDown x,y
captureMouse
output 2, true
end

def mouseMoveCaptured x,y
output 0,x
output 1,y
end

def mouseRUp x,y
output 2, false
releaseMouse
end


rclick drag.fsm
(598 Bytes) Downloaded 960 times


cheers!