examples: ecore: add input_joystick example to build

Summary:
While the source have been there it was never part of the build. Also
fixed a warning of an unused parameter in the code.

Subscribers: cedric, #reviewers, #committers, zmike

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6890
This commit is contained in:
Stefan Schmidt 2018-08-22 18:38:37 +09:00 committed by Hermet Park
parent ce3b2dcd99
commit a5ee487f03
2 changed files with 3 additions and 1 deletions

View File

@ -40,6 +40,7 @@ ecore/ecore_fd_handler_example \
ecore/ecore_file_download_example \
ecore/ecore_idler_example \
ecore/ecore_imf_example \
ecore/ecore_input_joystick_example \
ecore/ecore_job_example \
ecore/ecore_poller_example \
ecore/ecore_promise2_example \
@ -428,6 +429,7 @@ ecore/ecore_fd_handler_gnutls_example.c \
ecore/ecore_file_download_example.c \
ecore/ecore_idler_example.c \
ecore/ecore_imf_example.c \
ecore/ecore_input_joystick_example.c \
ecore/ecore_job_example.c \
ecore/ecore_pipe_gstreamer_example.c \
ecore/ecore_pipe_simple_example.c \

View File

@ -5,7 +5,7 @@
#include <Ecore_Input.h>
static Eina_Bool
_joystick_event_handler_cb(void *data, int type EINA_UNUSED, void *event)
_joystick_event_handler_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
{
printf("deadzone: %d\n", ecore_input_joystick_event_axis_deadzone_get());
Ecore_Event_Joystick *ev = event;