Tizen Native API
|
Functions | |
efl_util_inputgen_h | efl_util_input_initialize_generator (efl_util_input_device_type_e dev_type) |
Initializes system and check input generate functions are supported, open devices generated events. | |
int | efl_util_input_deinitialize_generator (efl_util_inputgen_h inputgen_h) |
Deinitializes system and close opened devices. | |
int | efl_util_input_generate_key (efl_util_inputgen_h inputgen_h, const char *key_name, int pressed) |
Generates all of key events using a opened device. | |
int | efl_util_input_generate_touch (efl_util_inputgen_h inputgen_h, int idx, efl_util_input_touch_type_e touch_type, int x, int y) |
Generates a touch event using a opened device. | |
Typedefs | |
typedef struct _efl_util_inputgen_h * | efl_util_inputgen_h |
Definition for the input generator handle. |
Generate touch and key events.
Required Header
#include <efl_util.h>
Overview
The EFL UTIL API provides functions to initialize/deinitialize input devices and to generation touch / key events.
Typedef Documentation
typedef struct _efl_util_inputgen_h* efl_util_inputgen_h |
Definition for the input generator handle.
- Warning:
- This is not for use by third-party applications.
- Since :
- 2.4
Enumeration Type Documentation
Enumeration of touch event types.
- Warning:
- This is not for use by third-party applications.
- Since :
- 2.4
- Enumerator:
Function Documentation
int efl_util_input_deinitialize_generator | ( | efl_util_inputgen_h | inputgen_h | ) |
Deinitializes system and close opened devices.
- Warning:
- This is not for use by third-party applications.
- Since :
- 2.4
- Privilege Level:
- platform
- Privilege:
- http://tizen.org/privilege/inputgenerator
- Parameters:
-
[in] inputgen_h The efl_util_inputgen_h handle
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
EFL_UTIL_ERROR_NONE Successful EFL_UTIL_ERROR_INVALID_PARAMETER Invalid parameter
int efl_util_input_generate_key | ( | efl_util_inputgen_h | inputgen_h, |
const char * | key_name, | ||
int | pressed | ||
) |
Generates all of key events using a opened device.
- Warning:
- This is not for use by third-party applications.
- Since :
- 2.4
- Privilege Level:
- platform
- Privilege:
- http://tizen.org/privilege/inputgenerator
- Parameters:
-
[in] key_name The key name want to generate [in] pressed The value that select key press or release (0: release, 1: press)
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
EFL_UTIL_ERROR_NONE Successful EFL_UTIL_ERROR_INVALID_PARAMETER Invalid parameter EFL_UTIL_ERROR_PERMISSION_DENIED Has no permission to generate key
int efl_util_input_generate_touch | ( | efl_util_inputgen_h | inputgen_h, |
int | idx, | ||
efl_util_input_touch_type_e | touch_type, | ||
int | x, | ||
int | y | ||
) |
Generates a touch event using a opened device.
- Warning:
- This is not for use by third-party applications.
- Since :
- 2.4
- Privilege Level:
- platform
- Privilege:
- http://tizen.org/privilege/inputgenerator
- Parameters:
-
[in] idx The index of touched finger [in] efl_util_input_touch_type_e The touch type (ex> EFL_UTIL_INPUT_TOUCH_BEGIN, EFL_UTIL_INPUT_TOUCH_UPDATE, EFL_UTIL_INPUT_TOUCH_END)
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
EFL_UTIL_ERROR_NONE Successful EFL_UTIL_ERROR_INVALID_PARAMETER Invalid parameter EFL_UTIL_ERROR_PERMISSION_DENIED Has no permission to generate touch
Initializes system and check input generate functions are supported, open devices generated events.
- Warning:
- This is not for use by third-party applications.
- Since :
- 2.4
- Privilege Level:
- platform
- Privilege:
- http://tizen.org/privilege/inputgenerator
- Remarks:
- The specific error code can be obtained using the get_last_result() method. Error codes are described in Exception section.
- Parameters:
-
[in] dev_type The device type want to generate events (ex> EFL_UTIL_INPUT_DEVTYPE_TOUCHSCREEN, EFL_UTIL_INPUT_DEVTYPE_KEYBOARD, EFL_UTIL_INPUT_DEVTYPE_ALL)
- Returns:
- efl_util_inputgen_h on success, otherwise
NULL
- Return values:
-
efl_util_inputgen_h The input generator handle
- Exceptions:
-
EFL_UTIL_ERROR_NONE Successful EFL_UTIL_ERROR_INVALID_PARAMETER Invalid parameter EFL_UTIL_ERROR_NO_SUCH_DEVICE No such device or address EFL_UTIL_ERROR_INVALID_OPERATION Function not implemented EFL_UTIL_ERROR_OUT_OF_MEMORY Memory allocation failure