Mouse Scroll commands

For general discussion related FlowStone
Post Reply
Rocko
Posts: 186
Joined: Tue May 15, 2012 12:42 pm

Mouse Scroll commands

Post by Rocko »

Hi,

Is there any way for me to control 'mouse scroll' button via flowstone (Ruby? Green?) ?

Thanks,
Rocko
adamszabo
Posts: 667
Joined: Sun Jul 11, 2010 7:21 am

Re: Mouse Scroll commands

Post by adamszabo »

Yes you can do it in the 3.0.9 beta
Rocko
Posts: 186
Joined: Tue May 15, 2012 12:42 pm

Re: Mouse Scroll commands

Post by Rocko »

For 3.0.9 Beta2 I see a 'mouse wheel' module in green. Is that what you are referring to or is there a way to implement it in a RUBY code?

Thanks,
Rocko
Tronic
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: Mouse Scroll commands

Post by Tronic »

Ruby using:

Code: Select all

def mouseWheel x,y,w
    # do something with x,y,w
end
Rocko
Posts: 186
Joined: Tue May 15, 2012 12:42 pm

Re: Mouse Scroll commands

Post by Rocko »

Hi,

This doesn't seem to work correctly. I'm simply trying to output the x,y,w readings to float (see simple schematic) and I receive wrong data.
Sometimes the 'w' data get updated (1 or -1) and sometimes it doesn't.

Am I doing something wrong or is there still a bug with 3.0.9 BETA ?

Code: Select all

def isInMousePoint x,y
   true
end

def mouseWheel x,y,w
    output 0,x
    output 1,y
    output 2,w
end
Attachments
mouseWheel_test.fsm
(1.01 KiB) Downloaded 1054 times
Rocko
Posts: 186
Joined: Tue May 15, 2012 12:42 pm

Re: Mouse Scroll commands

Post by Rocko »

Hi,

Has anyone succeeded to work this out ?
User avatar
aronb
Posts: 154
Joined: Sun Apr 17, 2011 3:08 am
Location: Florida, USA
Contact:

Re: Mouse Scroll commands

Post by aronb »

Hi Rocko,

Yes... ;)

You can find an example here...
http://www.dsprobotics.com/support/viewtopic.php?f=3&t=3860&start=0&hilit=mouse+wheel

I then used your example and got it working (3.0.9 Beta 2)

mouseWheel_test_AB.fsm
Mouse Wheel Ruby
(1.06 KiB) Downloaded 988 times


Aron
Rocko
Posts: 186
Joined: Tue May 15, 2012 12:42 pm

Re: Mouse Scroll commands

Post by Rocko »

Hi,

Thanks.
So this function will not be functional with v3.08.1, correct?
Post Reply