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.
Functions |
efl_util_inputgen_h | efl_util_input_initialize_generator (unsigned int dev_type) |
| Initializes system and check input generate functions are supported, open devices generated events.
|
efl_util_inputgen_h | efl_util_input_initialize_generator_with_name (unsigned int dev_type, const char *name) |
| Initializes system, check input generate functions are supported and then open events generator devices with given name.
|
efl_util_inputgen_h | efl_util_input_initialize_generator_with_sync (unsigned int dev_type, const char *name) |
| Initializes the system, checks if input generated functions are supported and then open events generator devices synchronously.
|
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.
|
int | efl_util_input_generate_pointer (efl_util_inputgen_h inputgen_h, int buttons, efl_util_input_pointer_type_e pointer_type, int x, int y) |
| Generate a pointer event using a opened device.
|
Typedefs |
typedef struct
_efl_util_inputgen_h * | efl_util_inputgen_h |
| Definition for the input generator handle.
|
Typedef Documentation
Definition for the input generator handle.
- Warning:
- This is not for use by third-party applications.
- Since :
- 2.4
Enumeration Type Documentation
Enumeration of device type generated events.
- Warning:
- This is not for use by third-party applications.
- Since :
- 2.4
- Enumerator:
EFL_UTIL_INPUT_DEVTYPE_NONE |
(Deprecated since 3.0.)
|
EFL_UTIL_INPUT_DEVTYPE_TOUCHSCREEN |
Touch Screen device
|
EFL_UTIL_INPUT_DEVTYPE_KEYBOARD |
Keyboard device
|
EFL_UTIL_INPUT_DEVTYPE_POINTER |
Mouse device (Since 3.0)
|
EFL_UTIL_INPUT_DEVTYPE_ALL |
Both of touch screen and keyboard device (Deprecated since 3.0. Check all enumerations using OR operand instead)
|
EFL_UTIL_INPUT_DEVTYPE_MAX |
(Deprecated since 3.0.)
|
Enumeration of pointer event types.
- Warning:
- This is not for use by third-party applications.
- Since :
- 3.0
- Enumerator:
EFL_UTIL_INPUT_POINTER_BUTTON_DOWN |
Mouse button press.
|
EFL_UTIL_INPUT_POINTER_BUTTON_UP |
Mouse move.
|
EFL_UTIL_INPUT_POINTER_MOVE |
Mouse button release.
|
Enumeration of touch event types.
- Warning:
- This is not for use by third-party applications.
- Since :
- 2.4
- Enumerator:
EFL_UTIL_INPUT_TOUCH_NONE |
(Deprecated since 3.0.)
|
EFL_UTIL_INPUT_TOUCH_BEGIN |
Finger press. It is same a behavior put your finger on touch screen
|
EFL_UTIL_INPUT_TOUCH_UPDATE |
Finger move. It is same a behavior move your finger on touch screen
|
EFL_UTIL_INPUT_TOUCH_END |
Finger release. It is same a behavior release your finger on touch screen
|
EFL_UTIL_INPUT_TOUCH_MAX |
(Deprecated since 3.0.)
|
Function Documentation
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:
-
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
- See also:
- efl_util_input_initialize_generator()
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] | inputgen_h | The efl_util_inputgen_h handle |
[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:
-
Generate a pointer event using a opened device.
- Warning:
- This is not for use by third-party applications.
- Since :
- 3.0
- Privilege Level:
- platform
- Privilege:
- http://tizen.org/privilege/inputgenerator
- Parameters:
-
[in] | inputgen_h | The efl_util_inputgen_h handle |
[in] | buttons | The number of button |
[in] | pointer_type | The pointer type (ex> EFL_UTIL_INPUT_POINTER_BUTTON_PRESS, EFL_UTIL_INPUT_POINTER_BUTTON_UP, EFL_UTIL_INPUT_POINTER_MOVE) |
[in] | x | x coordination to move |
[in] | y | y coordination to move |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
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:
-
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
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
- Parameters:
-
- Returns:
- efl_util_inputgen_h on success, otherwise
NULL
- Return values:
-
- Exceptions:
-
- See also:
- efl_util_input_deinitialize_generator()
Initializes system, check input generate functions are supported and then open events generator devices with given name.
- Warning:
- This is not for use by third-party applications.
- Since :
- 4.0
- Privilege Level:
- platform
- Privilege:
- http://tizen.org/privilege/inputgenerator
- Parameters:
-
- Returns:
- efl_util_inputgen_h on success, otherwise
NULL
- Return values:
-
- Exceptions:
-
- See also:
- efl_util_input_deinitialize_generator()
Initializes the system, checks if input generated functions are supported and then open events generator devices synchronously.
- Warning:
- This is not for use by third-party applications.
- Since :
- 5.0
- Privilege Level:
- platform
- Privilege:
- http://tizen.org/privilege/inputgenerator
- Parameters:
-
- Returns:
- efl_util_inputgen_h on success, otherwise
NULL
- Return values:
-
- Exceptions:
-
- See also:
- efl_util_input_deinitialize_generator()