Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
Elput.h File Reference

Ecore functions for dealing with libinput. More...

Data Structures

struct  _Elput_Event_Seat_Caps
 
struct  _Elput_Event_Seat_Frame
 
struct  _Elput_Event_Keymap_Send
 
struct  _Elput_Event_Modifiers_Send
 
struct  _Elput_Event_Device_Change
 
struct  _Elput_Event_Session_Active
 

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_Event_Seat_Caps Elput_Event_Seat_Caps
 
typedef struct _Elput_Event_Seat_Frame Elput_Event_Seat_Frame
 
typedef struct _Elput_Event_Keymap_Send Elput_Event_Keymap_Send
 
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
 

Enumerations

enum  _Elput_Device_Change_Type {
  ELPUT_DEVICE_ADDED,
  ELPUT_DEVICE_REMOVED
}
 

Functions

EAPI int elput_init (void)
 Initialize the Elput library. More...
 
EAPI int elput_shutdown (void)
 Shutdown the Elput library. More...
 
EAPI Elput_Manager * elput_manager_connect (const char *seat, unsigned int tty)
 Create an input manager on the specified seat. More...
 
EAPI void elput_manager_disconnect (Elput_Manager *manager)
 Disconnect an input manager. More...
 
EAPI int elput_manager_open (Elput_Manager *manager, const char *path, int flags)
 Request input manager to open a file. More...
 
EAPI void elput_manager_close (Elput_Manager *manager, int fd)
 Request input manager to close a file. More...
 
EAPI Eina_Bool elput_manager_vt_set (Elput_Manager *manager, int vt)
 Request to switch to a given vt. More...
 
EAPI const Eina_Listelput_manager_seats_get (Elput_Manager *manager)
 Get the list of seats from a manager. More...
 
EAPI void elput_manager_window_set (Elput_Manager *manager, unsigned int window)
 Set which window to use for this input manager. More...
 
EAPI Eina_Bool elput_input_init (Elput_Manager *manager)
 Initialize input. More...
 
EAPI void elput_input_shutdown (Elput_Manager *manager)
 Shutdown input. More...
 
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. More...
 
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. More...
 
EAPI Eina_Bool elput_input_pointer_left_handed_set (Elput_Manager *manager, const char *seat, Eina_Bool left)
 Set the pointer left-handed mode. More...
 
EAPI const Eina_Listelput_input_devices_get (Elput_Seat *seat)
 Get the list of devices on a given seat. More...
 
EAPI void elput_input_pointer_max_set (Elput_Manager *manager, int maxw, int maxh)
 Set the maximum position of any existing mouse pointers. More...
 
EAPI void elput_input_devices_calibrate (Elput_Manager *manager, int w, int h)
 Calibrate input devices for given screen size. More...
 
EAPI Eina_Bool elput_input_key_remap_enable (Elput_Manager *manager, Eina_Bool enable)
 Enable key remap functionality. More...
 
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. More...
 
EAPI void elput_input_keyboard_cached_context_set (Elput_Manager *manager, void *context)
 Set a cached context to be used for keyboards. More...
 
EAPI void elput_input_keyboard_cached_keymap_set (Elput_Manager *manager, void *keymap)
 Set a cached keymap to be used for keyboards. More...
 
EAPI Eina_Stringshareelput_input_device_output_name_get (Elput_Device *device)
 Return the output name associated with a given device. More...
 

Variables

EAPI int ELPUT_EVENT_SEAT_CAPS
 
EAPI int ELPUT_EVENT_SEAT_FRAME
 
EAPI int ELPUT_EVENT_KEYMAP_SEND
 
EAPI int ELPUT_EVENT_MODIFIERS_SEND
 
EAPI int ELPUT_EVENT_DEVICE_CHANGE
 
EAPI int ELPUT_EVENT_SESSION_ACTIVE
 

Detailed Description

Ecore functions for dealing with libinput.