efl/src
Jason Gerecke 26c943bac0 Expose device (e.g. pen) axis information to applications
Summary:
This patch set adds the necessary code to expose device axis state to applications. This was primarily written with graphics tablets in mind, which -- in addition to acting like a mouse -- also provide information about pen pressure, tilt, etc. Other devices could potentially benefit from this API as well: touchscreens, joysticks, knob controllers, "spaceballs", etc.

Whenever an update to the device state is recieved, an "Axis update" event is synthesized. This event contains the updated information, typically scaled and normalized to a particular logical range (e.g. zero to one for pressure, -pi to pi radians for angles, etc.). Information about the tool which generated the event is also stored so that applications can disambiguate events from multiple devices (or in the case of multitouch screens, individual fingers).

This API is only wired up for use with X11 at the moment. Support for other backends (e.g. Wayland) should be easy to add for those familiar them.

**Note**: The following is a list of changes from the "v2" patches originally sent to the mailinglist

//Define and implement new Ecore_Event_Axis_Update events//
 * Harcode axis labels instead of including xserver-properties.h
 * Use C89-style comments
 * Use doxygen comments
 * Update comment text to note axes with unbounded/undefined ranges/units
 * Create "Ecore_Axis" and "Ecore_Axis_Label" typedefs
 * Reference typedef'd instead of raw types
 * Adjust how we count through valuators to support tilt/az
 * Add support for tilt and azimuth
 * Tweak memory management in case number of valuators differ
 * Expand TWIST axis normalization to declared range
 * Only normalize TWIST axis if resolution == 1 (wacom bug)
 * Cache label atoms on first use to minimize round-trips

//Implement EVAS_CALLBACK_AXIS_UPDATE event and friends//
 * Update to doxygen comments
 * Update comment text to note axes with unbounded/undefined ranges/units
 * Typedef 'Evas_Axis_Label', 'Evas_Axis'
 * Move typedef for 'Evas_Event_Axis_Update'
 * Reference typedef'd instead of raw types

//Wire the Ecore and Evas implementations of axis update events together//
 * Expose ecore_event_evas_axis_update in Ecore_Input_Evas.h
 * Move ecore_event_evas_axis_update to more logical position

//DEBUG: Add axis update logging to evas-multi-touch.c//
 * Removed from patch set

//Make evas-multi-touch demo use new axis functionality//
 * Have pressure adjust rectangle brightness instead of size
 * Use more available axis data when rendering rectangle (azimuth, tilt, twist)

Test Plan: The evas-multi-touch demo was updated to support axis update events. A graphics tablet was then used to verify that the pressure, azimuth, tilt, and twist data was coming through correctly.

Reviewers: cedric, raster

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1514

Conflicts:
	src/lib/ecore_input/Ecore_Input.h

Carsten Haitzler -

** fixed forward enum typedefs (make things unhappy)
** fixed conflict above
** fixed wrong param type for _evas_canvas_event_feed_axis_update()
** fixed @sinces to be 1.13
** fixed formatting/indeting
** fixed order of operation reliance in if's with ()'s to be clear
** fixed functions to be static that should have been
2014-11-25 12:43:15 +09:00
..
benchmarks eina: Remove TODO, add code to delete the modules array 2014-09-22 14:59:27 +02:00
bin eldbus-codegen: More memory leak fixes for generated code. 2014-11-24 10:14:23 +01:00
bindings elua: update eolian bindings 2014-11-20 17:16:04 +00:00
edje_external/emotion
examples Expose device (e.g. pen) axis information to applications 2014-11-25 12:43:15 +09:00
lib Expose device (e.g. pen) axis information to applications 2014-11-25 12:43:15 +09:00
modules Expose device (e.g. pen) axis information to applications 2014-11-25 12:43:15 +09:00
scripts/eina
static_libs fix config.h inclusion across the tree 2014-09-23 15:56:46 -04:00
tests Ecore FIle: Added test case for ecore_file download 2014-11-24 09:36:02 -05:00
utils/ecore
Makefile.am elocation: Add example for using the elocation API 2014-11-11 11:03:23 +01:00
Makefile_EPhysics.am
Makefile_Ecore.am Ecore File : Added test suite for Ecore File module 2014-11-18 10:51:42 +01:00
Makefile_Ecore_Audio.am elua/autotools: generate .eo.lua files out of all eo files at build time 2014-10-06 13:28:09 +01:00
Makefile_Ecore_Audio_Cxx.am autotools: provide BSD-echo compatibility (fix c++ bindings) 2014-08-27 22:31:20 +02:00
Makefile_Ecore_Avahi.am
Makefile_Ecore_Cocoa.am ecore_cocoa: NSRunLoop integration 2014-09-03 20:34:57 +02:00
Makefile_Ecore_Con.am elua/autotools: generate .eo.lua files out of all eo files at build time 2014-10-06 13:28:09 +01:00
Makefile_Ecore_Cxx.am autotools: provide BSD-echo compatibility (fix c++ bindings) 2014-08-27 22:31:20 +02:00
Makefile_Ecore_Drm.am ecore-drm: Add dbus file 2014-07-15 09:44:14 -04:00
Makefile_Ecore_Evas.am gl-drm: Fix missing link to gbm for ecore_evas_drm and clean up build script 2014-08-28 13:37:28 -04:00
Makefile_Ecore_FB.am
Makefile_Ecore_File.am
Makefile_Ecore_IMF.am autotools: Fixed 'make examples' and 'make examples-install' 2014-07-02 20:01:09 -03:00
Makefile_Ecore_IMF_Evas.am
Makefile_Ecore_Input.am
Makefile_Ecore_Input_Evas.am
Makefile_Ecore_Ipc.am
Makefile_Ecore_Psl1ght.am
Makefile_Ecore_SDL.am
Makefile_Ecore_Wayland.am Added support for xdg-shell protocol in ecore-wayland 2014-10-01 16:15:37 -04:00
Makefile_Ecore_Win32.am ecore_win23: oops forgotten path. 2014-06-23 11:25:04 +02:00
Makefile_Ecore_X.am autotools: use non deprecated macro. 2014-08-12 11:19:57 +02:00
Makefile_Edje.am elua/autotools: generate .eo.lua files out of all eo files at build time 2014-10-06 13:28:09 +01:00
Makefile_Edje_Cxx.am autotools: provide BSD-echo compatibility (fix c++ bindings) 2014-08-27 22:31:20 +02:00
Makefile_Edje_Helper.am
Makefile_Eet.am autotools: fix build with NEON support. 2014-10-29 00:12:06 +01:00
Makefile_Eet_Cxx.am eina-cxx: Added interop containers. 2014-07-18 18:55:56 -03:00
Makefile_Eeze.am autotools: Fixed 'make examples' and 'make examples-install' 2014-07-02 20:01:09 -03:00
Makefile_Efl.am elua/autotools: generate .eo.lua files out of all eo files at build time 2014-10-06 13:28:09 +01:00
Makefile_Efl_Cxx.am autotools: provide BSD-echo compatibility (fix c++ bindings) 2014-08-27 22:31:20 +02:00
Makefile_Efreet.am autotools: Fixed 'make examples' and 'make examples-install' 2014-07-02 20:01:09 -03:00
Makefile_Eina.am +eina_value_util api 2014-09-23 14:37:48 -04:00
Makefile_Eina_Cxx.am eina_cxx: Include newly added header to unbreak make distcheck 2014-10-24 13:02:07 +02:00
Makefile_Eio.am
Makefile_Eldbus.am
Makefile_Eldbus_Cxx.am Eldbus C++: Don't generate C++ bindings when C++ is disabled. 2014-07-30 02:21:18 +01:00
Makefile_Elocation.am elocation: Add generated GeoClue2 DBus helper code. 2014-11-21 10:38:39 +01:00
Makefile_Elua.am elua/autotools: unbork (forgot to remove this) 2014-10-10 13:07:46 +01:00
Makefile_Elua_Helper.am elua: put all scripts required for lua file generation into deps 2014-11-19 13:46:55 +00:00
Makefile_Embryo.am autotools: Fixed 'make examples' and 'make examples-install' 2014-07-02 20:01:09 -03:00
Makefile_Emotion.am elua/autotools: generate .eo.lua files out of all eo files at build time 2014-10-06 13:28:09 +01:00
Makefile_Eo.am Eo: protect against recursive object destruction calls, fixes T1741 2014-11-18 15:25:34 +00:00
Makefile_Eo_Cxx.am eina-cxx: eldbus-cxx: eo-cxx: Fixed test includes and header installation 2014-07-18 18:57:14 -03:00
Makefile_Eolian.am tests/eolian: Move eo to EXTRA_DIST assignment out of the EFL_ENABLE_TESTS case 2014-10-21 15:43:01 +02:00
Makefile_Eolian_Cxx.am makefile_eolian_cxx: Fix indent and trailing whitespace 2014-11-17 16:48:13 +01:00
Makefile_Eolian_Cxx_Helper.am eolian-cxx: Added namespaces and more (see below) 2014-06-30 19:35:06 +01:00
Makefile_Eolian_Helper.am
Makefile_Escape.am
Makefile_Ethumb.am autotools: use non deprecated macro. 2014-08-12 11:19:57 +02:00
Makefile_Ethumb_Client.am autotools: Fixed 'make examples' and 'make examples-install' 2014-07-02 20:01:09 -03:00
Makefile_Evas.am evas: Evas_3D - add .ply export/import. 2014-11-14 07:11:15 +01:00
Makefile_Evas_Cxx.am autotools: Generate Evas-3D C++ bindings. 2014-09-12 15:28:23 -03:00
Makefile_Evil.am efl: remove Windows CE support 2014-07-13 15:17:17 +02:00