mouse gestures
Thomas McGrath III
3mcgrath at comcast.net
Wed Nov 18 09:20:04 EST 2009
Malte,
I started to play again with this library and I can't seem to figure
out how to get an image covering the screen to capture the mouse
gesture???
Any ideas?
Tom
On May 29, 2009, at 8:30 AM, Thomas McGrath III wrote:
> Malte,
>
> Love this little library. Very cool.
>
> I would like to trap the starting mouse position and finish mouse
> position to get a distance traveled. I would use this for short
> medium and long gestures.
>
> Your library seems very responsive, I wonder if adding the distance
> would slow it down?
>
> I made a stack that ties the mouse gesture to the backgroundColor of
> the stack and can slide colors left and right and back or up down
> etc. What fun.
>
> Now to build one for images and to animated swiping left and
> right.......
>
>
> Thank you Malte for the inspiration.
>
> On May 28, 2009, at 6:18 PM, Malte Brill wrote:
>
>> Hey,
>>
>> as sitting in hotels in the middle of nowhere is boring, I took a
>> couple of hours to write a little lib to implement mouse gestures
>> in Rev. You can find it either in the new revOnline or type in the
>> messagebox:
>>
>> go stack URL "http://www.derbrill.de/fun/libMouseGestures.rev"
>>
>> This lib enables you to implement mouse gestures in your own
>> stacks. Just start using the stack by issuing:
>>
>> start using stack "libMouseGestures"
>>
>> To tell a control or card to listen to gestures you need to set a
>> custom property of that control or card to true:
>>
>> set the libGest["listenToGestures"] of this card to true
>>
>> Now the card is listening to gestures. A gesture is performed by
>> rightclicking and dragging (or control clicking and dragging for
>> those with a one button mouse) To react to a gesture trap the
>> libGestDone message generated by the lib. The drag directions are
>> send as a parameter in form of a semicolon delimited list e.g.
>>
>> up;left;downright
>>
>> The stack has 3 cards with example script to react to gestures.
>>
>> This one was hammered together quickly. Much room for improvement.
>> Hope you like it. If anyone feels like improving on it I´d like to
>> see the changes.
>>
>> Best,
>>
>> Malte
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list