Commit Graph

173 Commits

Author SHA1 Message Date
Chris Michael d734cd4cad elput: Add code to handle keybindings for vt switching
This patch makes elput handle receiving the key combinations for vt
switching and perform the actual switch itself. This is done so that
ecore_drm2, ecore_fb, etc, etc do not each need their own code to
handle vt switching.

@feature

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-09 12:00:35 -04:00
Chris Michael f9149c1699 elput: Add API function to switch to a given vt
This patch adds a new API function to Elput that can be used to switch
to a given VT. This allows drm2 or enlightenment to switch to a given
virtual terminal in response to keybindings.

@feature

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-09 11:35:48 -04:00
Chris Michael a96266c422 elput: Remove erroneous debug print out
NB: No functional changes, just cleanup of extra debug message and
commented out codeblock

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-09 11:05:21 -04:00
Chris Michael 3de066469a elput: Support sending of session activate/deactivate event
This patch adds support for notifying when a session gets activated or
deactivated. This will be used in drm2 to notify compositor when to
pause/restart rendering during a vt switch

@feature

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-09 11:01:30 -04:00
Chris Michael 9ed2f42c08 elput: Remove useless dbus argument fetching
As we do not need minor or fd from the dbus message during input
device resume, we can remove these variables

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-09 10:40:23 -04:00
Chris Michael 54cce990d3 elput: Add API function to set pointer position on a given seat
Small patch to add an API function that can be used to set the current
pointer position on a given seat name. This function (typically) will
be used inside an Ecore_Evas to "pointer warp".

@feature

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-04 10:43:36 -04:00
Chris Michael 28f725a687 elput: Add API function to get pointer position on a given seat
Small patch to add an API function that can be used to retrieve
current pointer position on a given seat name.

@feature

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-04 10:20:04 -04:00
Chris Michael 219a18efa4 elput: Remove dead comment and fix error message
NB: Minor cosmetic changes such as removing a commented out line of
code and fixing an error message

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-27 12:56:11 -04:00
Chris Michael 22e3ea20ee elput: Adjust EAPI for windows build
Small patch to fix definition of EAPI on Windows. Thanks to vtorri for
reporting.

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-15 08:13:47 -04:00
Chris Michael 43360ca98a elput: Add API function to set output size on an input device
This function is used to adjust device calibration based on size of
output

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-13 14:16:17 -04:00
Chris Michael 404b3049f3 elput: Add API function to set input window
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-13 14:16:17 -04:00
Chris Michael 6c85fe7514 elput: Add event which can be raised when devices get added or removed
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-13 14:16:17 -04:00
Chris Michael 6a7589bf78 elput: Handle various events from libinput and pass to ecore_event
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-13 14:16:17 -04:00
Chris Michael b01666075d elput: Add event structures for keymap and modifier sending events
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-13 14:16:17 -04:00
Chris Michael 5db91e3802 elput: Create and send seat frame events when we need to
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-13 14:16:17 -04:00
Chris Michael b764978f29 elput: Create and raise event when seat capabilities change
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-13 14:16:17 -04:00
Chris Michael 3070c4cf08 elput: Add support for creating and removing devices
This patch adds start of code to create or remove input devices such
as keyboards, pointers, or touch devices.

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-13 14:16:17 -04:00
Chris Michael bd0d4ba60f elput: Start code to process events from libinput
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-13 14:16:17 -04:00
Chris Michael f832d2019c elput: Add API function to initialize and shutdown input devices
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-13 14:16:17 -04:00
Chris Michael b5422700c0 elput: Remove vt activate/restore from input manager interface
As this library is just going to deal with libinput, we don't need to
have interface functions to activate or restore a virtual terminal.

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-13 14:16:17 -04:00
Chris Michael 1ce6cd4382 elput: Add API functions to open and close an input device
This adds new API functions which can be called to open or close an input
device and take control (or release control) of said device

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-13 14:16:17 -04:00
Chris Michael ed3a1f3958 elput: Add input manager interface and APIs to connect & disconnect
This commit adds the start of the Elput Manager & Interface code. This
will be used as an inteface to various backend methods of session &
device control (ie: systemd, direct interface, etc). This will provide
various abstractions for working with libinput when opening/closing
input devices.

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-13 14:16:17 -04:00
Chris Michael f8964fcf2e elput: Initial checkin of elput library
The elput library is an efl abstraction for the libinput library which
can be used by various other subsystems (ecore_fb, ecore_drm, etc) to
handle interfacing with libinput without having to duplicate the code
in each subsystem.

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-13 14:16:17 -04:00