So I'm reading the new features of clutter 1.4.0 and see 'ClutterClickAction'.
The description:
„ClutterClickAction is a sub-class of ClutterAction that implements the logic
for clickable actors, by using the low level events of ClutterActor, such as
"button-press-event" and "button-release-event", to synthesize the high level
"clicked" signal.“
So I thought: „great I'll redesign my event-code and use ClutterClickAction
instead of the low-level API.“
But I'm missing something... ClutterEvent - I need it to get the
mouse-click-coordinates.
My code look like this:
bool Effects::round_click(ClutterActor* _actor, ClutterEvent* _event, void*
_data)
{
float mouseX,
mouseY,
actorsX,
actorsY,
radius;
clutter_event_get_coords(_event, &mouseX, &mouseY);
//...
}
My question is: How do I get the mouse-click coordinates with
ClutterClickAction? I mean the callback-function look like this:
void user_function (ClutterClickAction *action, ClutterActor* actor, gpointer
user_data)
Where is ClutterEvent?
Maybe I'm just understand the sense of Clutter(Click)Action wrong.
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list