Thu 10 Apr 2008 03:19:29 PM UTC, original submission:
I'm working on getting tslib (generic touchscreen driver/filter) to work with fb-gnash on an embedded device. I noticed I have to click outside buttons to activate them.
I tried the following flash file:
# gnash -v -vb t.log http://www.permadi.com/tutorial/flashperl/helloperl.swf
It shows a button and a text. When the button is clicked, the text changes. On the embedded device, the button is in the center of the screen.
When I click the center of the button there is no response. The touchscreen calls notify_mouse_move with the following coordinates (width and height are m_stage_width and m_stage_height):
196] 07:24:03: DEBUG: Touched x: 155 y: 120 width: 320 height: 234
1196] 07:24:03: DEBUG: lifted x: 155 y: 120
However, when I click above the button, the button is activated.
1169] 07:14:43: DEBUG: Touched x: 159 y: 83 width: 320 height: 234
1169] 07:14:43: DEBUG: lifted x: 159 y: 83
1182] 07:14:43: DEBUG: HTTP response 200 from url http://www.permadi.com/cgi-bin
/fpcgi/flashperl/hello.pl
Another example from the same page has the same problem. I have to click above the button to activate it.
http://www.permadi.com/tutorial/flashperl/timeperl2.swf
Yet another flash file:
http://www.macloo.com/examples/flash/buttons/buttons.swf
In this flash file I have to click slightly below the buttons to activate them. I cannot click the return button to restart the animation.
I tried fltk-gnash under windows. The first and third file work okay. I also tried gtk-gnash (using tinyx and tslib) on my embedded system. In this case the buttons also work okay.
Any ideas?
|