x, y);
if (ret != EFL_UTIL_ERROR_NONE)
{
- printf("failed to generate mouse down, ret: %d(%s)\n", ret, printErrorCode(ret));
+ printf("failed to generate mouse down, x: %d, y: %d, ret: %d(%s)\n", x, y, ret, printErrorCode(ret));
return EINA_FALSE;
}
x, y);
if (ret != EFL_UTIL_ERROR_NONE)
{
- printf("failed to generate mouse move, ret: %d(%s)\n", ret, printErrorCode(ret));
+ printf("failed to generate mouse move, x: %d, y: %d, ret: %d(%s)\n", x, y, ret, printErrorCode(ret));
return EINA_FALSE;
}
x, y);
if (ret != EFL_UTIL_ERROR_NONE)
{
- printf("failed to generate mouse up, ret: %d(%s)\n", ret, printErrorCode(ret));
+ printf("failed to generate mouse up, x: %d, y: %d, ret: %d(%s)\n", x, y, ret, printErrorCode(ret));
return EINA_FALSE;
}
1);
if (ret != EFL_UTIL_ERROR_NONE)
{
- printf("failed to generate key press, ret: %d(%s)\n", ret, printErrorCode(ret));
+ printf("failed to generate key press, keyname: %c, ret: %d(%s)\n", keyname, ret, printErrorCode(ret));
return EINA_FALSE;
}
0);
if (ret != EFL_UTIL_ERROR_NONE)
{
- printf("failed to generate key release, ret: %d(%s)\n", ret, printErrorCode(ret));
+ printf("failed to generate key release, keyname: %c, ret: %d(%s)\n", keyname, ret, printErrorCode(ret));
return EINA_FALSE;
}
x, y);
if (ret != EFL_UTIL_ERROR_NONE)
{
- printf("failed to generate touch down, ret: %d(%s)\n", ret, printErrorCode(ret));
+ printf("failed to generate touch down, idx: %d, x: %d, y: %d, ret: %d(%s)\n", idx, x, y, ret, printErrorCode(ret));
return EINA_FALSE;
}
x, y);
if (ret != EFL_UTIL_ERROR_NONE)
{
- printf("failed to generate touch move, ret: %d(%s)\n", ret, printErrorCode(ret));
+ printf("failed to generate touch move, idx: %d, x: %d, y: %d, ret: %d(%s)\n", idx, x, y, ret, printErrorCode(ret));
return EINA_FALSE;
}
x, y);
if (ret != EFL_UTIL_ERROR_NONE)
{
- printf("failed to generate touch up, ret: %d(%s)\n", ret, printErrorCode(ret));
+ printf("failed to generate touch up, idx: %d, x: %d, y: %d, ret: %d(%s)\n", idx, x, y, ret, printErrorCode(ret));
return EINA_FALSE;
}
etInputGenHandler(efl_util_input_device_type_e type) :
handler(nullptr)
{
+ if (type == EFL_UTIL_INPUT_DEVTYPE_TOUCHSCREEN)
+ {
+ int ret = EFL_UTIL_ERROR_NONE;
+ ret = efl_util_input_set_touch_count(10);
+ if (ret != EFL_UTIL_ERROR_NONE)
+ printf("failed to set touch count: (ret: %d)", ret);
+ }
+
handler = efl_util_input_initialize_generator_with_name(type, NULL);
if (handler == nullptr)
etInputGenHandler(efl_util_input_device_type_e type, bool with_sync) :
handler(nullptr)
{
+ if (type == EFL_UTIL_INPUT_DEVTYPE_TOUCHSCREEN)
+ {
+ int ret = EFL_UTIL_ERROR_NONE;
+ ret = efl_util_input_set_touch_count(10);
+ if (ret != EFL_UTIL_ERROR_NONE)
+ printf("failed to set touch count: (ret: %d)", ret);
+ }
+
if (with_sync)
handler = efl_util_input_initialize_generator_with_sync(type, NULL);
else