On Fri, 21 Feb 2003 06:33:15 +0500 Yuri <[EMAIL PROTECTED]> babbled:

> 
> Hi!
> 
> 
> struct _Evas_Event_Mouse_Down and -Up have first field called "button", 
> while other mouse-related events have it called "buttons". "button" 
> containes button number, and "buttons" containes mask of pressed buttons.
> 
> So, the question is, why don't use in both cases keyword buttons and 
> return mask of pressed button(s)? (new way 3rd pressed button -> 4)

mainly because this is the way event apis in x, directfb etc. work :) they
report what button was pressed/released as an integer and have a separate button
mask for the currently pressed buttons :) (having a mask would make it hard to
figure out what button was pressed/not pressed on each press/release event) :)

if i now provided a previous/current mask u could.. but u'd have to loop thru
checking bits or do a subtract and based on the return val figure out what
button... etc. its just easier this way :)

-- 
--------------- Codito, ergo sum - "I code, therefore I am" --------------------
The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
                                    [EMAIL PROTECTED]
Mobile Phone: +61 (0)413 451 899    Home Phone: 02 9698 8615


-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
enlightenment-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to