On Fri, 30 Apr 2004 09:38:44 +0200 Xavier Allamigeon <[EMAIL PROTECTED]>
babbled:

> > > void cb_turn(void *data, Evas_Object *o, void *event_info)
> > > {
> > >   printf("%d\n", ((Evas_Event_Mouse_Wheel *) event_info)->z);
> > > }
> > >
> > > and it displays 12467821348 or something like that...
> > >
> > > Any idea ? What's wrong in my code ? Thank you for your help !!!
> >
> > are you sure this callback is being called for mouse wheel events, and not
> > mouse move, down, up, in, out etc. events? if you set the wrong callback
> > the event info will not be what you expect it to be.
> 
> Yes, I'm sure : here is the definition of the callback
> 
> evas_object_event_callback_add(data->grabber, EVAS_CALLBACK_MOUSE_WHEEL, 
> cb_turn, o); 
> 
> and I don't know why it doesn't work...

oooh i see now! your prototype is WRONG! :)
static void
mouse_wheel(void *data, Evas *e, Evas_Object *obj, void *event_info)

notice that the parameter order is data, evas, obj then event_info! :)

> Xavier
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
熊耳 - 車君 (数田)                  [EMAIL PROTECTED]
Tokyo, Japan (東京 日本)


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
enlightenment-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to