Hello Clutter Team I am trying to simulate touch events. I went through the clutter-x11 interface and also clutter-eglnative interface. I then wrote a sample application which reads tslib events like pressure,x,y from an array and convert this to clutter events like CLUTTER_MOTION ,CLUTTOR_BUTTON_PRESS,CLUTTOR_BUTTON_RELEASE.
1)
I have attached the code of using touch event to make a stage a fullscreen and
bring it back to original size once a finger is pressed on an actor.I am using
the callback blue_button_cb to make the make stage fullscreen once a
CLUTTOR_BUTTON_PRESS event occurs .However the CLUTTOR_BUTTON_PRESS occurs
(seen by print statement) but the callback function is not getting called.
I am able to observe the behaviour 1 out 3 times .Also even if it gets called
the stage size becomes full screen immediately from original size and the
original stage size is not seen for required duration of 2 secs.
But sometimes I am able to see proper behavior where stage is original size for
2 secs and then fullscreen for next 2 secs and this toggles as long as finger
is pressed.This is the expected behavior of application
Can someone please tell me if I am missing something in code , because the
sample test-events application works fine via mouse for full-screen.
2)
I read in Clutter page that fullscreen may cause an issue due to window manager
not supporting it , so I changed the application to scale and move.When a
finger is pressed scaling occurs and when finger moves actor should move.
However in spite of both events CLUTTER_MOTION ,CLUTTOR_BUTTON_PRESS being set
only scaling is occuring and not movement of the actor in their callback
functions.
I have gone through the GLib document for signals but it has not helped me in
my applcation
Any help would be appreciated.
Thanks and Regards
Dilip
---------------------------------
From Chandigarh to Chennai - find friends all over India. Click here.
simulating_touch_events_stage_original_size_fullscreen_.c
Description: 1990034274-simulating_touch_events_stage_original_size_fullscreen_.c
simulating_touch_events_scale_translate_actor.c
Description: 2623399199-simulating_touch_events_scale_translate_actor.c
