forked from enlightenment/efl
elput: Add event structures for keymap and modifier sending events
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
parent
5db91e3802
commit
b01666075d
|
@ -58,8 +58,26 @@ typedef struct _Elput_Event_Seat_Frame
|
||||||
Elput_Seat *seat;
|
Elput_Seat *seat;
|
||||||
} Elput_Event_Seat_Frame;
|
} Elput_Event_Seat_Frame;
|
||||||
|
|
||||||
|
/* structure to represent event for seat keymap changes */
|
||||||
|
typedef struct _Elput_Event_Keymap_Send
|
||||||
|
{
|
||||||
|
int fd, format;
|
||||||
|
size_t size;
|
||||||
|
} Elput_Event_Keymap_Send;
|
||||||
|
|
||||||
|
/* structure to represent event for seat modifiers changes */
|
||||||
|
typedef struct _Elput_Event_Modifiers_Send
|
||||||
|
{
|
||||||
|
unsigned int depressed;
|
||||||
|
unsigned int latched;
|
||||||
|
unsigned int locked;
|
||||||
|
unsigned int group;
|
||||||
|
} Elput_Event_Modifiers_Send;
|
||||||
|
|
||||||
EAPI extern int ELPUT_EVENT_SEAT_CAPS;
|
EAPI extern int ELPUT_EVENT_SEAT_CAPS;
|
||||||
EAPI extern int ELPUT_EVENT_SEAT_FRAME;
|
EAPI extern int ELPUT_EVENT_SEAT_FRAME;
|
||||||
|
EAPI extern int ELPUT_EVENT_KEYMAP_SEND;
|
||||||
|
EAPI extern int ELPUT_EVENT_MODIFIERS_SEND;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
|
|
|
@ -8,6 +8,8 @@ int _elput_log_dom = -1;
|
||||||
|
|
||||||
EAPI int ELPUT_EVENT_SEAT_CAPS = -1;
|
EAPI int ELPUT_EVENT_SEAT_CAPS = -1;
|
||||||
EAPI int ELPUT_EVENT_SEAT_FRAME = -1;
|
EAPI int ELPUT_EVENT_SEAT_FRAME = -1;
|
||||||
|
EAPI int ELPUT_EVENT_KEYMAP_SEND = -1;
|
||||||
|
EAPI int ELPUT_EVENT_MODIFIERS_SEND = -1;
|
||||||
|
|
||||||
EAPI int
|
EAPI int
|
||||||
elput_init(void)
|
elput_init(void)
|
||||||
|
@ -28,6 +30,8 @@ elput_init(void)
|
||||||
|
|
||||||
ELPUT_EVENT_SEAT_CAPS = ecore_event_type_new();
|
ELPUT_EVENT_SEAT_CAPS = ecore_event_type_new();
|
||||||
ELPUT_EVENT_SEAT_FRAME = ecore_event_type_new();
|
ELPUT_EVENT_SEAT_FRAME = ecore_event_type_new();
|
||||||
|
ELPUT_EVENT_KEYMAP_SEND = ecore_event_type_new();
|
||||||
|
ELPUT_EVENT_MODIFIERS_SEND = ecore_event_type_new();
|
||||||
|
|
||||||
return _elput_init_count;
|
return _elput_init_count;
|
||||||
|
|
||||||
|
@ -51,6 +55,8 @@ elput_shutdown(void)
|
||||||
|
|
||||||
ELPUT_EVENT_SEAT_CAPS = -1;
|
ELPUT_EVENT_SEAT_CAPS = -1;
|
||||||
ELPUT_EVENT_SEAT_FRAME = -1;
|
ELPUT_EVENT_SEAT_FRAME = -1;
|
||||||
|
ELPUT_EVENT_KEYMAP_SEND = -1;
|
||||||
|
ELPUT_EVENT_MODIFIERS_SEND = -1;
|
||||||
|
|
||||||
eina_log_domain_unregister(_elput_log_dom);
|
eina_log_domain_unregister(_elput_log_dom);
|
||||||
_elput_log_dom = -1;
|
_elput_log_dom = -1;
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
# include "Eldbus.h"
|
# include "Eldbus.h"
|
||||||
# include <Elput.h>
|
# include <Elput.h>
|
||||||
|
|
||||||
|
# include <ctype.h>
|
||||||
# include <sys/mman.h>
|
# include <sys/mman.h>
|
||||||
# include <fcntl.h>
|
# include <fcntl.h>
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
|
|
Loading…
Reference in New Issue