Functions
Elput input functions

Functions that deal with setup of inputs. More...

Functions

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...
 

Detailed Description

Functions that deal with setup of inputs.

Function Documentation

§ elput_input_init()

EAPI Eina_Bool elput_input_init ( Elput_Manager *  manager)

Initialize input.

Parameters
manager
Returns
EINA_TRUE on success, EINA_FALSE on failure
Since
1.18

§ elput_input_shutdown()

EAPI void elput_input_shutdown ( Elput_Manager *  manager)

Shutdown input.

Parameters
manager
Since
1.18

§ elput_input_pointer_xy_get()

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.

Parameters
manager
seat
x
y
Since
1.18

§ elput_input_pointer_xy_set()

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.

Parameters
manager
seat
x
y
Since
1.18

§ elput_input_pointer_left_handed_set()

EAPI Eina_Bool elput_input_pointer_left_handed_set ( Elput_Manager *  manager,
const char *  seat,
Eina_Bool  left 
)

Set the pointer left-handed mode.

Parameters
manager
seat
left
Returns
EINA_TRUE on success, EINA_FALSE otherwise
Since
1.18

§ elput_input_devices_get()

EAPI const Eina_List* elput_input_devices_get ( Elput_Seat *  seat)

Get the list of devices on a given seat.

Parameters
seat
Returns
An Eina_List of existing Elput_Devices on a given seat or NULL on failure
Since
1.18

§ elput_input_pointer_max_set()

EAPI void elput_input_pointer_max_set ( Elput_Manager *  manager,
int  maxw,
int  maxh 
)

Set the maximum position of any existing mouse pointers.

Parameters
manager
maxw
maxh
Since
1.18

§ elput_input_devices_calibrate()

EAPI void elput_input_devices_calibrate ( Elput_Manager *  manager,
int  w,
int  h 
)

Calibrate input devices for given screen size.

Parameters
manager
w
h
Since
1.18

§ elput_input_key_remap_enable()

EAPI Eina_Bool elput_input_key_remap_enable ( Elput_Manager *  manager,
Eina_Bool  enable 
)

Enable key remap functionality.

Parameters
manager
enable
Returns
EINA_TRUE on success, EINA_FALSE otherwise
Since
1.18

§ elput_input_key_remap_set()

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.

Parameters
manager
from_keys
to_keys
num
Returns
EINA_TRUE on success, EINA_FALSE otherwise
Since
1.18

§ elput_input_keyboard_cached_context_set()

EAPI void elput_input_keyboard_cached_context_set ( Elput_Manager *  manager,
void *  context 
)

Set a cached context to be used for keyboards.

Parameters
manager
context
Since
1.18

§ elput_input_keyboard_cached_keymap_set()

EAPI void elput_input_keyboard_cached_keymap_set ( Elput_Manager *  manager,
void *  keymap 
)

Set a cached keymap to be used for keyboards.

Parameters
manager
keymap
Since
1.18

§ elput_input_device_output_name_get()

EAPI Eina_Stringshare* elput_input_device_output_name_get ( Elput_Device *  device)

Return the output name associated with a given device.

Parameters
device
Returns
An Eina_Stringshare of the output name for this device, or NULL on error
Since
1.18