MouseCursor Position

For general discussion related FlowStone
Post Reply
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

MouseCursor Position

Post by billv »

The default FS knob behaviour is not good for fast tweaking..... :evil:
Start at 0 ...go all the way to 1...and your mouse cursor ends up
4 inches up the screen.... :roll:

So I just need to put the original cursor position back in when the mouse goes up...
But having trouble trying to write it in...
Should it look something like this...

Code: Select all

def mouseCursor x,y
if i == 1 or 2 then
mouseCursor.pos = @inputx,@inputy
end
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: MouseCursor Position

Post by billv »

How do you control cursor position without using the cursor...?
Is possible..?...
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: MouseCursor Position

Post by Nubeat7 »

why not using the show cursor primitive? you can set "hold position while dragging"
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: MouseCursor Position

Post by billv »

Nubeat7 wrote: "hold position

Thanks Nubeat7....didn't notice that...
strangeChild
Posts: 47
Joined: Sat Apr 27, 2013 8:04 pm

Re: MouseCursor Position

Post by strangeChild »

billv wrote:So I just need to put the original cursor position back in when the mouse goes up...

That was the default behaviour with SynthMaker stock knob... I say it should be for FS too.
Attachments
SynthMakerKnob.fsm
(131.65 KiB) Downloaded 959 times
strangeChild
Posts: 47
Joined: Sat Apr 27, 2013 8:04 pm

Re: MouseCursor Position

Post by strangeChild »

Is there a Ruby method available to set the cursor position? :?
strangeChild
Posts: 47
Joined: Sat Apr 27, 2013 8:04 pm

Re: MouseCursor Position

Post by strangeChild »

Nubeat7 wrote:why not using the show cursor primitive? you can set "hold position while dragging"

holdCursor.png
holdCursor.png (10.71 KiB) Viewed 13888 times
Ah! I didn't get this right away...
Still... is there a Ruby method for setting the cursor position?
Post Reply