extern int event_deactivate_thread(enum event_handler_activate_type activate_type);
extern int event_activate_thread(enum event_handler_activate_type activate_type);
-extern void event_set_mouse_xy(int x, int y, double timestamp);
+extern void event_set_mouse_xy(int x, int y, double ratio_w, double ratio_h, double timestamp);
/* End of a file */
return s_info.handle >= 0;
}
-HAPI void event_set_mouse_xy(int x, int y, double timestamp)
+HAPI void event_set_mouse_xy(int x, int y, double ratio_w, double ratio_h, double timestamp)
{
s_info.event_data.x = x;
s_info.event_data.y = y;
+ s_info.event_data.ratio_w = ratio_w;
+ s_info.event_data.ratio_h = ratio_h;
s_info.event_data.tv = timestamp;
s_info.event_data.source = INPUT_EVENT_SOURCE_VIEWER;
/**
if (package_widget_type(pkg) == WIDGET_TYPE_BUFFER) {
if (package_direct_input(pkg) == 0) {
/* Forcely update the X,Y position using viewer's */
- event_set_mouse_xy(x * ratio_w, y * ratio_h, timestamp);
+ event_set_mouse_xy(x, y, ratio_w, ratio_h, timestamp);
ret = event_deactivate(mouse_event_widget_route_cb, inst);
if (WIDGET_CONF_SLAVE_EVENT_BOOST_OFF != WIDGET_CONF_SLAVE_EVENT_BOOST_ON) {
}
} else if (package_widget_type(pkg) == WIDGET_TYPE_SCRIPT) {
/* Forcely update the X,Y position using viewer's */
- event_set_mouse_xy(x * ratio_w, y * ratio_h, timestamp);
+ event_set_mouse_xy(x, y, ratio_w, ratio_h, timestamp);
ret = event_deactivate(mouse_event_widget_consume_cb, inst);
if (WIDGET_CONF_SLAVE_EVENT_BOOST_OFF != WIDGET_CONF_SLAVE_EVENT_BOOST_ON) {
if (package_gbar_type(pkg) == GBAR_TYPE_BUFFER) {
if (package_direct_input(pkg) == 0) {
/* Forcely update the X,Y position using viewer's */
- event_set_mouse_xy(x * ratio_w, y * ratio_h, timestamp);
+ event_set_mouse_xy(x, y, ratio_w, ratio_h, timestamp);
ret = event_deactivate(mouse_event_gbar_route_cb, inst);
if (WIDGET_CONF_SLAVE_EVENT_BOOST_OFF != WIDGET_CONF_SLAVE_EVENT_BOOST_ON) {
}
} else if (package_gbar_type(pkg) == GBAR_TYPE_SCRIPT) {
/* Forcely update the X,Y position using viewer's */
- event_set_mouse_xy(x * ratio_w, y * ratio_h, timestamp);
+ event_set_mouse_xy(x, y, ratio_w, ratio_h, timestamp);
ret = event_deactivate(mouse_event_gbar_consume_cb, inst);
if (WIDGET_CONF_SLAVE_EVENT_BOOST_OFF != WIDGET_CONF_SLAVE_EVENT_BOOST_ON) {