ecore_cocoa: use a timer instead of a poller to be more responsive when dealing with...
authorNicolas Aguirre <aguirre.nicolas@gmail.com>
Thu, 6 Aug 2015 21:33:24 +0000 (23:33 +0200)
committerCedric BAIL <cedric@osg.samsung.com>
Tue, 13 Oct 2015 22:40:00 +0000 (15:40 -0700)
commit44e945abbbd1c6962d9db9ccadbe8c2c9218826a
treed2b7f46d0f53cf8ec186b2a892cb0265be9f82cc
parente9c2d076965e60349e69eb7e6d842eb711d62f52
ecore_cocoa: use a timer instead of a poller to be more responsive when dealing with cocoa Event.

As all Mouse and Keyboard events comme from Cocoa, the poll period must
be reduced. Backwards of this method is that when no signal are
received for a long period, the timer fired anyway and consumes CPU
for nothig but it seems there is no easy method to integrate NSApplication
mainloop into an existing one.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/ecore_cocoa/ecore_cocoa_app.h
src/lib/ecore_cocoa/ecore_cocoa_app.m