|
libei 1.6.0
A library for Emulated Input
|
The receiver API is available only to clients that are not eis_client_is_sender(). More...
Functions | |
| void | eis_device_text_keysym (struct eis_device *device, uint32_t keysym, bool is_press) |
| see ei_device_text_keysym | |
| void | eis_device_text_utf8 (struct eis_device *device, const char *utf8) |
| see ei_device_text_utf8 | |
| void | eis_device_text_utf8_with_length (struct eis_device *device, const char *text, size_t length) |
| see ei_device_text_utf8_with_length | |
| void | eis_device_start_emulating (struct eis_device *device, uint32_t sequence) |
| see ei_device_start_emulating | |
| void | eis_device_stop_emulating (struct eis_device *device) |
| see ei_device_stop_emulating | |
| void | eis_device_frame (struct eis_device *device, uint64_t time) |
| see ei_device_frame | |
| void | eis_device_pointer_motion (struct eis_device *device, double x, double y) |
| see ei_device_pointer_motion | |
| void | eis_device_pointer_motion_absolute (struct eis_device *device, double x, double y) |
| see ei_device_pointer_motion_absolute | |
| void | eis_device_button_button (struct eis_device *device, uint32_t button, bool is_press) |
| see ei_device_button_button | |
| void | eis_device_scroll_delta (struct eis_device *device, double x, double y) |
| see ei_device_scroll_delta | |
| void | eis_device_scroll_discrete (struct eis_device *device, int32_t x, int32_t y) |
| see ei_device_scroll_discrete | |
| void | eis_device_scroll_stop (struct eis_device *device, bool stop_x, bool stop_y) |
| see ei_device_scroll_stop | |
| void | eis_device_scroll_cancel (struct eis_device *device, bool cancel_x, bool cancel_y) |
| see ei_device_scroll_cancel | |
| void | eis_device_keyboard_key (struct eis_device *device, uint32_t keycode, bool is_press) |
| see ei_device_keyboard_key | |
| struct eis_touch * | eis_device_touch_new (struct eis_device *device) |
| see ei_device_touch_new | |
| void | eis_touch_down (struct eis_touch *touch, double x, double y) |
| see ei_touch_down | |
| void | eis_touch_motion (struct eis_touch *touch, double x, double y) |
| see ei_touch_motion | |
| void | eis_touch_up (struct eis_touch *touch) |
| see ei_touch_up | |
| void | eis_touch_cancel (struct eis_touch *touch) |
| see ei_touch_cancel | |
| struct eis_touch * | eis_touch_ref (struct eis_touch *touch) |
| see ei_touch_ref | |
| struct eis_touch * | eis_touch_unref (struct eis_touch *touch) |
| see ei_touch_unref | |
| void | eis_touch_set_user_data (struct eis_touch *touch, void *user_data) |
| see ei_touch_set_user_data | |
| void * | eis_touch_get_user_data (struct eis_touch *touch) |
| see ei_touch_get_user_data | |
| struct eis_device * | eis_touch_get_device (struct eis_touch *touch) |
| see ei_touch_get_device | |
| void | eis_device_swipe_begin (struct eis_device *device, uint32_t nfingers) |
| Begin a new swipe gesture on a device with the EIS_DEVICE_CAP_GESTURES capability. | |
| void | eis_device_swipe_update (struct eis_device *device, double dx, double dy) |
| Update the current swipe gesture's position by the given relative delta. | |
| void | eis_device_swipe_end (struct eis_device *device) |
| End the current swipe gesture. | |
| void | eis_device_swipe_cancel (struct eis_device *device) |
| Cancel the current swipe gesture. | |
| void | eis_device_pinch_begin (struct eis_device *device, uint32_t nfingers) |
| Begin a new pinch gesture on a device with the EIS_DEVICE_CAP_GESTURES capability. | |
| void | eis_device_pinch_update (struct eis_device *device, double dx, double dy, double scale, double rotation) |
| Update the current pinch gesture's position by the given relative delta, with the given absolute scale and relative rotation. | |
| void | eis_device_pinch_end (struct eis_device *device) |
| End the current pinch gesture. | |
| void | eis_device_pinch_cancel (struct eis_device *device) |
| Cancel the current pinch gesture. | |
| void | eis_device_hold_begin (struct eis_device *device, uint32_t nfingers) |
| Begin a new hold gesture on a device with the EIS_DEVICE_CAP_GESTURES capability. | |
| void | eis_device_hold_end (struct eis_device *device) |
| End the current hold gesture. | |
| void | eis_device_hold_cancel (struct eis_device *device) |
| Cancel the current hold gesture. | |
The receiver API is available only to clients that are not eis_client_is_sender().
For those clients the EIS implementation creates devices and sends events to the libei client. IOW the EIS implementation acts as the sender. The primary use-case for this is input capturing, e.g. InputLeap.
It is a client bug to call any of these functions for a client created with ei_new_sender().
| void eis_device_button_button | ( | struct eis_device * | device, |
| uint32_t | button, | ||
| bool | is_press ) |
| void eis_device_frame | ( | struct eis_device * | device, |
| uint64_t | time ) |
see ei_device_frame
| void eis_device_hold_begin | ( | struct eis_device * | device, |
| uint32_t | nfingers ) |
Begin a new hold gesture on a device with the EIS_DEVICE_CAP_GESTURES capability.
Only one hold gesture may be active at a time.
This method is only available on an eis receiver context.
| device | A device with EIS_DEVICE_CAP_GESTURES capability |
| nfingers | The number of fingers, must be between 1 and 5 (inclusive) |
| void eis_device_hold_cancel | ( | struct eis_device * | device | ) |
Cancel the current hold gesture.
This ends the gesture with the is_cancelled flag set.
This method is only available on an eis receiver context.
If no gesture is currently in progress, this is a noop.
| void eis_device_hold_end | ( | struct eis_device * | device | ) |
End the current hold gesture.
| void eis_device_keyboard_key | ( | struct eis_device * | device, |
| uint32_t | keycode, | ||
| bool | is_press ) |
| void eis_device_pinch_begin | ( | struct eis_device * | device, |
| uint32_t | nfingers ) |
Begin a new pinch gesture on a device with the EIS_DEVICE_CAP_GESTURES capability.
Only one pinch gesture may be active at a time.
This method is only available on an eis receiver context.
| device | A device with EIS_DEVICE_CAP_GESTURES capability |
| nfingers | The number of fingers, must be between 2 and 5 (inclusive) |
| void eis_device_pinch_cancel | ( | struct eis_device * | device | ) |
Cancel the current pinch gesture.
This ends the gesture with the is_cancelled flag set.
This method is only available on an eis receiver context.
If no gesture is currently in progress, this is a noop.
| void eis_device_pinch_end | ( | struct eis_device * | device | ) |
End the current pinch gesture.
| void eis_device_pinch_update | ( | struct eis_device * | device, |
| double | dx, | ||
| double | dy, | ||
| double | scale, | ||
| double | rotation ) |
Update the current pinch gesture's position by the given relative delta, with the given absolute scale and relative rotation.
| void eis_device_pointer_motion | ( | struct eis_device * | device, |
| double | x, | ||
| double | y ) |
| void eis_device_pointer_motion_absolute | ( | struct eis_device * | device, |
| double | x, | ||
| double | y ) |
| void eis_device_scroll_cancel | ( | struct eis_device * | device, |
| bool | cancel_x, | ||
| bool | cancel_y ) |
| void eis_device_scroll_delta | ( | struct eis_device * | device, |
| double | x, | ||
| double | y ) |
| void eis_device_scroll_discrete | ( | struct eis_device * | device, |
| int32_t | x, | ||
| int32_t | y ) |
| void eis_device_scroll_stop | ( | struct eis_device * | device, |
| bool | stop_x, | ||
| bool | stop_y ) |
| void eis_device_start_emulating | ( | struct eis_device * | device, |
| uint32_t | sequence ) |
| void eis_device_stop_emulating | ( | struct eis_device * | device | ) |
| void eis_device_swipe_begin | ( | struct eis_device * | device, |
| uint32_t | nfingers ) |
Begin a new swipe gesture on a device with the EIS_DEVICE_CAP_GESTURES capability.
Only one swipe gesture may be active at a time.
This method is only available on an eis receiver context.
| device | A device with EIS_DEVICE_CAP_GESTURES capability |
| nfingers | The number of fingers, must be between 1 and 5 (inclusive) |
| void eis_device_swipe_cancel | ( | struct eis_device * | device | ) |
Cancel the current swipe gesture.
This ends the gesture with the is_cancelled flag set.
This method is only available on an eis receiver context.
If no gesture is currently in progress, this is a noop.
| void eis_device_swipe_end | ( | struct eis_device * | device | ) |
End the current swipe gesture.
| void eis_device_swipe_update | ( | struct eis_device * | device, |
| double | dx, | ||
| double | dy ) |
Update the current swipe gesture's position by the given relative delta.
| void eis_device_text_keysym | ( | struct eis_device * | device, |
| uint32_t | keysym, | ||
| bool | is_press ) |
| void eis_device_text_utf8 | ( | struct eis_device * | device, |
| const char * | utf8 ) |
| void eis_device_text_utf8_with_length | ( | struct eis_device * | device, |
| const char * | text, | ||
| size_t | length ) |
see ei_device_text_utf8_with_length
| struct eis_touch * eis_device_touch_new | ( | struct eis_device * | device | ) |
| void eis_touch_cancel | ( | struct eis_touch * | touch | ) |
see ei_touch_cancel
| void eis_touch_down | ( | struct eis_touch * | touch, |
| double | x, | ||
| double | y ) |
see ei_touch_down
| struct eis_device * eis_touch_get_device | ( | struct eis_touch * | touch | ) |
| void * eis_touch_get_user_data | ( | struct eis_touch * | touch | ) |
| void eis_touch_motion | ( | struct eis_touch * | touch, |
| double | x, | ||
| double | y ) |
see ei_touch_motion
see ei_touch_ref
| void eis_touch_set_user_data | ( | struct eis_touch * | touch, |
| void * | user_data ) |
see ei_touch_unref
| void eis_touch_up | ( | struct eis_touch * | touch | ) |
see ei_touch_up