ecore_input: add API to set/get deadzone of joystick event for an axis.
authorShinwoo Kim <cinoo.kim@samsung.com>
Wed, 15 Feb 2017 04:00:13 +0000 (13:00 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 15 Feb 2017 04:03:02 +0000 (13:03 +0900)
commit32fbf64d285b0d3172f305c6fe0392c7e2624c2b
tree0c2d3e11d17a0e1b3ab62dc203a5d5765fff3188
parent6210bab777a4c9d84807efd1901c6d13a8079a38
ecore_input: add API to set/get deadzone of joystick event for an axis.

Summary:
The axis type joystick event could occur without user's control if joystick is too sensitive.
The deadzone prevents this unnecessary event. The default value is 200.
The event value for an axis is a signed integer between -32767 and +32767.

Test Plan: Using example

Reviewers: raster, cedric, jpeg

Reviewed By: jpeg

Subscribers: stefan_schmidt

Differential Revision: https://phab.enlightenment.org/D4654
src/examples/ecore/ecore_input_joystick_example.c
src/lib/ecore_input/Ecore_Input.h
src/lib/ecore_input/ecore_input_joystick.c