summaryrefslogtreecommitdiff
path: root/src/lib/elput/elput_evdev.c (follow)
AgeCommit message (Collapse)Author
2016-07-26elput: Use correct filename in unlinkDerek Foreman
We switched from mkstemp to eina_file_mkstemp() but ended up unlinking the template filename, which didn't exist on the filesystem.
2016-07-25elput: Fix issue of losing mouse input when removing a deviceChris Michael
When we are adding new input devices, if we already have an existing one (keyboard, pointer, touch, etc) then we should just be incrementing the device count and returning from the init function. Previous code here would increment the device count, then continue on and create a new internal representation of the device. This was causing issues when a device gets removed. Fixes T4192 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-07-21elput: Use proper variable typeChris Michael
The 'getenv' function returns char * ... not a const char *, so adjust variable type to match Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-07-09elput - simplify and fix handling of string overflow with xdg runtimedirCarsten Haitzler (Rasterman)
this addresses an issue pointed to by CID 1357168
2016-07-09elput - remove pointless code in handling touch eventCarsten Haitzler (Rasterman)
i commented the pointless code out. this fixes CID 1357145
2016-07-08elput: Fix insecure temporary fileChris Michael
Fix using mkstemp directly without securely setting umask first by making use of eina_file_mkstemp which does set unmask. Fixes Coverity CID1357165 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-05-27elput: Add API function to support caching of existing keymapChris Michael
@feature Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-27elput: Add API function to support caching of an xkb_contextChris Michael
@feature Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-26elput: Add APIs to support keyboard key remappingChris Michael
This patch adds 2 new API functions which can enable keyboard key remapping, and set which keys are to be remapped. @feature Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-26elput: Add API function to calibrate input devicesChris Michael
This adds an API function that can be called to calibrate input devices based on a given output size @feature Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-26elput: Remove badly named APIChris Michael
This patch removes an API function that basically "tried to do too much". This was supposed to be used for centering mouse pointer and calibrating an input device based on output size. Remove this silliness. It would be better to have one API for calibrating, and a separate API for pointer centering. These new APIs will come shortly in pending patches. @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-26elput: Fix issue where double/triple click was not workingChris Michael
As we use the mouse threshold for determining double/triple clicking, it would probably be a good idea if that threshold had a value @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-25elput: further simplify device internalsMike Blumenkrantz
'window' and pointer max w/h attributes are set for a manager object, so let the attributes stay there. this also resolves issues where devices created at a later point would fail to be initialized with these attributes
2016-05-25elput: change some functions and internal flags to enable async input setupMike Blumenkrantz
this sets attributes on the Elput_Manager struct so that devices created at a later point can then have relevant attributes applied to them
2016-05-20elput: Check return of calibration_get_default_matrix functionChris Michael
We should be checking the return value when we try to get the default matrix calibration for an input device so we can fail properly Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-20elput: Don't calculate pointer constraints twiceChris Michael
As constraints for pointer movement are already handled in the function which sends the pointer motion event, there is no need to handle them inside the function which gets pointer position. Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-14elput: Don't multiply pointer axis valueChris Michael
Reporting of mouse axis values should not be multiplied by 10. This will cause serious jumps in wheel events. Loosely based on 1a339c9e5918f6d8672755d566cac622f1d9c2d3 @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-04elput: Add API function to set pointer position on a given seatChris Michael
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-04-27elput: Remove dead comment and fix error messageChris Michael
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-13elput: Add API function to set output size on an input deviceChris Michael
This function is used to adjust device calibration based on size of output Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-13elput: Add API function to set input windowChris Michael
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-13elput: Handle various events from libinput and pass to ecore_eventChris Michael
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-13elput: Create and send seat frame events when we need toChris Michael
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-13elput: Create and raise event when seat capabilities changeChris Michael
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-13elput: Add support for creating and removing devicesChris Michael
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>