Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/bin
Modified Files:
Tag: SPLIT
ecore_test.c
Log Message:
the x module slowly solidifies... key events fully handled now.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/bin/Attic/ecore_test.c,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -u -3 -r1.1.2.4 -r1.1.2.5
--- ecore_test.c 21 Jan 2003 01:22:45 -0000 1.1.2.4
+++ ecore_test.c 23 Jan 2003 01:08:35 -0000 1.1.2.5
@@ -50,6 +50,26 @@
return 1;
}
+int
+handler_x_key_down(int type, void *event, void *data)
+{
+ Ecore_X_Event_Key_Down *e;
+
+ e = event;
+ printf("Key down %s\n", e->keyname);
+ return 1;
+}
+
+int
+handler_x_key_up(int type, void *event, void *data)
+{
+ Ecore_X_Event_Key_Up *e;
+
+ e = event;
+ printf("Key up %s\n", e->keyname);
+ return 1;
+}
+
void
x_init(void)
{
@@ -107,6 +127,8 @@
ecore_timer_add(1.0, timer, NULL);
ecore_event_handler_add(ECORE_EVENT_SIGNAL_EXIT, handler_signal_exit, NULL);
+ ecore_event_handler_add(ECORE_EVENT_X_KEY_DOWN, handler_x_key_down, NULL);
+ ecore_event_handler_add(ECORE_EVENT_X_KEY_UP, handler_x_key_up, NULL);
ecore_main_loop_begin();
ecore_shutdown();
-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs