forked from enlightenment/efl
Check whether we have input devices (Thanks Lars Munch).
SVN revision: 32770
This commit is contained in:
parent
2a9de292d8
commit
9766a725eb
|
@ -1,3 +1,6 @@
|
||||||
|
/*
|
||||||
|
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
||||||
|
*/
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "Ecore.h"
|
#include "Ecore.h"
|
||||||
#include "ecore_private.h"
|
#include "ecore_private.h"
|
||||||
|
@ -74,12 +77,12 @@ _ecore_evas_fb_lose(void *data __UNUSED__)
|
||||||
ee = (Ecore_Evas *)l;
|
ee = (Ecore_Evas *)l;
|
||||||
ee->visible = 0;
|
ee->visible = 0;
|
||||||
}
|
}
|
||||||
ecore_list_first_goto(ecore_evas_input_devices);
|
if (ecore_evas_input_devices)
|
||||||
dev = ecore_list_current(ecore_evas_input_devices);
|
{
|
||||||
do
|
ecore_list_first_goto(ecore_evas_input_devices);
|
||||||
{
|
while ((dev = ecore_list_next(ecore_evas_input_devices)))
|
||||||
ecore_fb_input_device_listen(dev, 0);
|
ecore_fb_input_device_listen(dev, 0);
|
||||||
}while((dev = ecore_list_next(ecore_evas_input_devices)));
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -99,12 +102,12 @@ _ecore_evas_fb_gain(void *data __UNUSED__)
|
||||||
else
|
else
|
||||||
evas_damage_rectangle_add(ee->evas, 0, 0, ee->w, ee->h);
|
evas_damage_rectangle_add(ee->evas, 0, 0, ee->w, ee->h);
|
||||||
}
|
}
|
||||||
ecore_list_first_goto(ecore_evas_input_devices);
|
if (ecore_evas_input_devices)
|
||||||
dev = ecore_list_current(ecore_evas_input_devices);
|
{
|
||||||
do
|
ecore_list_first_goto(ecore_evas_input_devices);
|
||||||
{
|
while ((dev = ecore_list_next(ecore_evas_input_devices)))
|
||||||
ecore_fb_input_device_listen(dev, 1);
|
ecore_fb_input_device_listen(dev, 0);
|
||||||
}while((dev = ecore_list_next(ecore_evas_input_devices)));
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Reference in New Issue