Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Right-click drag?

For general discussion related FlowStone

Right-click drag?

Postby Perfect Human Interface » Mon Mar 14, 2016 1:52 am

Can we get right-click drag control? Or does Flowstone only support left-click drag? Ruby?
Perfect Human Interface
 
Posts: 643
Joined: Sun Mar 10, 2013 7:32 pm

Re: Right-click drag?

Postby billv » Mon Mar 14, 2016 10:22 pm

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
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Re: Right-click drag?

Postby Perfect Human Interface » Mon Mar 14, 2016 10:25 pm

Thanks. It's too bad there isn't a prim, but I'll manage. :)
Perfect Human Interface
 
Posts: 643
Joined: Sun Mar 10, 2013 7:32 pm

Re: Right-click drag?

Postby tulamide » Mon Mar 14, 2016 10:38 pm

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.
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Right-click drag?

Postby Perfect Human Interface » Mon Mar 14, 2016 10:57 pm

I see, thank you for bringing that to my attention.
Perfect Human Interface
 
Posts: 643
Joined: Sun Mar 10, 2013 7:32 pm

Re: Right-click drag?

Postby Jay » Tue Mar 15, 2016 12:09 am

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 911 times


cheers!
Jay
 
Posts: 276
Joined: Tue Jul 13, 2010 5:42 pm


Return to General

Who is online

Users browsing this forum: No registered users and 79 guests