Elput.h(3)

NAME
Elput.h - Ecore functions for dealing with libinput.

SYNOPSIS

  Data Structures
struct _Elput_Event_Seat_Caps
struct _Elput_Event_Seat_Frame
struct _Elput_Event_Modifiers_Send
struct _Elput_Event_Device_Change
struct _Elput_Event_Session_Active
struct Elput_Event_Pointer_Motion
struct _Elput_Event_Switch

  Typedefs
typedef struct _Elput_Manager Elput_Manager
typedef struct _Elput_Seat Elput_Seat
typedef struct _Elput_Device Elput_Device
typedef struct _Elput_Keyboard Elput_Keyboard
typedef struct _Elput_Pointer Elput_Pointer
typedef struct _Elput_Touch Elput_Touch
typedef struct _Elput_Swipe_Gesture Elput_Swipe_Gesture
typedef struct _Elput_Event_Seat_Caps Elput_Event_Seat_Caps
typedef struct _Elput_Event_Seat_Frame Elput_Event_Seat_Frame
typedef struct _Elput_Event_Modifiers_Send Elput_Event_Modifiers_Send
typedef enum _Elput_Device_Change_Type Elput_Device_Change_Type
typedef struct _Elput_Event_Device_Change Elput_Event_Device_Change
typedef struct _Elput_Event_Session_Active Elput_Event_Session_Active
typedef struct Elput_Event_Pointer_Motion Elput_Event_Pointer_Motion
typedef struct _Elput_Event_Switch Elput_Event_Switch

  Enumerations
enum Elput_Device_Caps { ELPUT_DEVICE_CAPS_POINTER = (1 << 0), ELPUT_DEVICE_CAPS_KEYBOARD = (1 << 1), ELPUT_DEVICE_CAPS_TOUCH = (1 << 2), ELPUT_DEVICE_CAPS_TABLET_TOOL = (1 << 3), ELPUT_DEVICE_CAPS_TABLET_PAD = (1 << 4), ELPUT_DEVICE_CAPS_GESTURE = (1 << 5), ELPUT_DEVICE_CAPS_SWITCH = (1 << 6) }
enum _Elput_Device_Change_Type { ELPUT_DEVICE_ADDED, ELPUT_DEVICE_REMOVED }
enum Elput_Switch_Type { ELPUT_SWITCH_TYPE_LID = 1, ELPUT_SWITCH_TYPE_TABLET_MODE }
enum Elput_Switch_State { ELPUT_SWITCH_STATE_OFF = 0, ELPUT_SWITCH_STATE_ON = 1 }

  Functions
EAPI int elput_init (void)
Initialize the Elput library.
EAPI int elput_shutdown (void)
Shutdown the Elput library.
EAPI Elput_Manager * elput_manager_connect (const char *seat, unsigned int tty)
Create an input manager on the specified seat.
EAPI Elput_Manager * elput_manager_connect_gestures (const char *seat, unsigned int tty)
Create an input manager on the specified seat.
EAPI void elput_manager_disconnect (Elput_Manager *manager)
Disconnect an input manager.
EAPI int elput_manager_open (Elput_Manager *manager, const char *path, int flags)
Request input manager to open a file.
EAPI void elput_manager_close (Elput_Manager *manager, int fd)
Request input manager to close a file.
EAPI Eina_Bool elput_manager_vt_set (Elput_Manager *manager, int vt)
Request to switch to a given vt.
EAPI const Eina_List * elput_manager_seats_get (Elput_Manager *manager)
Get the list of seats from a manager.
EAPI void elput_manager_window_set (Elput_Manager *manager, unsigned int window)
Set which window to use for this input manager.
EAPI Eina_Bool elput_input_init (Elput_Manager *manager)
Initialize input.
EAPI void elput_input_shutdown (Elput_Manager *manager)
Shutdown input.
EAPI void elput_input_pointer_xy_get (Elput_Manager *manager, const char *seat, int *x, int *y)
Get the pointer position on a given seat.
EAPI void elput_input_pointer_xy_set (Elput_Manager *manager, const char *seat, int x, int y)
Set the pointer position on a given seat.
EAPI Eina_Bool elput_input_pointer_left_handed_set (Elput_Manager *manager, const char *seat, Eina_Bool left)
Set the pointer left-handed mode.
EAPI void elput_input_pointer_max_set (Elput_Manager *manager, int maxw, int maxh)
Set the maximum position of any existing mouse pointers.
EAPI Eina_Bool elput_input_pointer_rotation_set (Elput_Manager *manager, int rotation)
Set pointer value rotation.
EAPI void elput_input_touch_tap_to_click_enabled_set (Elput_Manager *manager, const char *seat, Eina_Bool enabled)
Set tap-to-click status.
EAPI void elput_input_devices_calibrate (Elput_Manager *manager, int w, int h)
Calibrate input devices for given screen size.
EAPI Eina_Bool elput_input_key_remap_enable (Elput_Manager *manager, Eina_Bool enable)
Enable key remap functionality.
EAPI Eina_Bool elput_input_key_remap_set (Elput_Manager *manager, int *from_keys, int *to_keys, int num)
Set a given set of keys as remapped keys.
EAPI void elput_input_keyboard_info_set (Elput_Manager *manager, void *context, void *keymap, int group)
Set info to be used for keyboards.
EAPI void elput_input_keyboard_group_set (Elput_Manager *manager, int group)
Set group layout to be used for keyboards.
EAPI void elput_input_pointer_accel_profile_set (Elput_Manager *manager, const char *seat, uint32_t profile)
Set the pointer acceleration profile.
EAPI void elput_input_pointer_accel_speed_set (Elput_Manager *manager, const char *seat, double speed)
Set the pointer acceleration speed.
EAPI Eina_Bool elput_touch_drag_enabled_set (Elput_Device *device, Eina_Bool enabled)
Enable or disable tap-and-drag on this device.
EAPI Eina_Bool elput_touch_drag_enabled_get (Elput_Device *device)
Get if tap-and-drag is enabled on this device.
EAPI Eina_Bool elput_touch_drag_lock_enabled_set (Elput_Device *device, Eina_Bool enabled)
Enable or disable drag-lock during tapping on a device.
EAPI Eina_Bool elput_touch_drag_lock_enabled_get (Elput_Device *device)
Get if drag-lock is enabled on this device.
EAPI Eina_Bool elput_touch_dwt_enabled_set (Elput_Device *device, Eina_Bool enabled)
Enable or disable touchpad dwt (disable-while-typing) feature.
EAPI Eina_Bool elput_touch_dwt_enabled_get (Elput_Device *device)
Get if touchpad dwt (disable-while-typing) is enabled.
EAPI Eina_Bool elput_touch_scroll_method_set (Elput_Device *device, int method)
Set the scroll method used for this device.
EAPI int elput_touch_scroll_method_get (Elput_Device *device)
Get the current scroll method set on a device.
EAPI Eina_Bool elput_touch_click_method_set (Elput_Device *device, int method)
Set the button click method for a device.
EAPI int elput_touch_click_method_get (Elput_Device *device)
Get the current button click method for a device.
EAPI Eina_Bool elput_touch_tap_enabled_set (Elput_Device *device, Eina_Bool enabled)
Enable or disable tap-to-click on a given device.
EAPI Eina_Bool elput_touch_tap_enabled_get (Elput_Device *device)
Get if tap-to-click is enabled on a given device.
EAPI Elput_Seat * elput_device_seat_get (const Elput_Device *dev)
Get the seat object for a device.
EAPI Elput_Device_Caps elput_device_caps_get (const Elput_Device *dev)
Get the caps for a device.
EAPI Eina_Stringshare * elput_device_output_name_get (Elput_Device *device)
Return the output name associated with a given device.
EAPI const Eina_List * elput_seat_devices_get (const Elput_Seat *seat)
Get the list of devices on a given seat.
EAPI Eina_Stringshare * elput_seat_name_get (const Elput_Seat *seat)
Get the name of a given seat.
EAPI Elput_Manager * elput_seat_manager_get (const Elput_Seat *seat)
Get the manager of a given seat.
EAPI double elput_swipe_dx_get (Elput_Swipe_Gesture *gesture)
Get the difference of x position from the last event to this event.
EAPI double elput_swipe_dy_get (Elput_Swipe_Gesture *gesture)
Get the difference of y position from the last event to this event.
EAPI int elput_swipe_finger_count_get (Elput_Swipe_Gesture *gesture)
Get the finger_count for this gesture.
EAPI int elput_swipe_window_get (Elput_Swipe_Gesture *gesture)
Get the window in which this event is emitted.
EAPI Elput_Device * elput_swipe_device_get (Elput_Swipe_Gesture *gesture)
Get the device from which the gesture event is coming.

  Variables
EAPI int ELPUT_EVENT_SEAT_CAPS
EAPI int ELPUT_EVENT_SEAT_FRAME
EAPI int ELPUT_EVENT_MODIFIERS_SEND
EAPI int ELPUT_EVENT_DEVICE_CHANGE
EAPI int ELPUT_EVENT_SESSION_ACTIVE
EAPI int ELPUT_EVENT_POINTER_MOTION
EAPI int ELPUT_EVENT_SWITCH
EAPI int ELPUT_EVENT_SWIPE_BEGIN
A swipe gesture has began.
EAPI int ELPUT_EVENT_SWIPE_UPDATE
There is a change to a ongoing swipe gesture.
EAPI int ELPUT_EVENT_SWIPE_END
A ongoing swipe gesture has ended.

Detailed Description

Ecore functions for dealing with libinput.

Typedef Documentation

  typedef struct Elput_Event_Pointer_Motion Elput_Event_Pointer_Motion

Since
    1.19

  typedef struct _Elput_Event_Switch Elput_Event_Switch

Since
    1.21

Enumeration Type Documentation

  enum Elput_Switch_Type

Since
    1.21

  enum Elput_Switch_State

Since
    1.21

Variable Documentation

  EAPI int ELPUT_EVENT_POINTER_MOTION [extern]

Since
    1.19

  EAPI int ELPUT_EVENT_SWITCH [extern]

Since
    1.21

Author

Generated automatically by Doxygen for EFL from the source code.