[Y-devel] yEye
Richard Hills richard at balliol.ox.ac.uk
Tue Mar 9 01:15:05 GMT 2004
On Tue, 2004-03-09 at 00:30, Mark Thomas wrote:
> To subscribe to pointer notifications you would do:
>
> => YMO_FIND_CLASS Server/Pointer
> <= YMO_FOUND=CLASS x
> => YMO_INVOKE_METHOD x 0 getMainPointer
> <= YMO_METHOD_RETURNS x 0 y
> => YMO_SUBSCRIBE_SIGNAL x y motion
I think it'll be important in future to easily support multiple
pointers (one could look ahead a few years and imaging touch screens
where you could use two fingers simultaneously). In which case we can
easily do:
YMO_FIND_CLASS Server/Pointer
YMO_FOUND=CLASS x
YMO_INVOKE_METHOD x 0 getPointer pointerNumber
YMO_METHOD_RETURNS x 0 y
YMO_SUBSCRIBE_SIGNAL x y motion
Unless there are huge difficulties supporting them within the server I
think it's worthwhile.
Richard Hills
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved