On Thu, 17 Nov 2011, Kim Shinwoo wrote:
> Dear All, Hello~ > > This is Shinwoo Kim (Previously I have used cnook, [email protected] for > contribution) > > The key compose and name have been different with xlib. So I have changed > the value of Shift, Control, and Alt. > Moreover, the attached patch is able to distinguish between Shift_L and > Shift_R as xlib. I don't think the patch is correct. I tried it on windows with a test case (see below), and the result is not correct. I'm trying to see how I can solve the problem. Vincent #include <stdio.h> #include <Eina.h> #include <Ecore.h> #include <Ecore_Input.h> #include <Ecore_Win32.h> Eina_Bool _key_down_cb(void *data, int type, void *event) { Ecore_Event_Key *e; e = (Ecore_Event_Key *)event; printf("key down : %s\n", e->keyname); return EINA_TRUE; } Eina_Bool _key_up_cb(void *data, int type, void *event) { Ecore_Event_Key *e; e = (Ecore_Event_Key *)event; printf("key up : %s\n", e->keyname); return EINA_TRUE; } int main() { Ecore_Event_Handler *h1; Ecore_Event_Handler *h2; Ecore_Win32_Window *w; ecore_init(); ecore_win32_init(); ecore_event_init(); w = ecore_win32_window_new(NULL, 10, 10, 10, 10); ecore_win32_window_show(w); h1 = ecore_event_handler_add(ECORE_EVENT_KEY_DOWN, _key_down_cb, NULL); h2 = ecore_event_handler_add(ECORE_EVENT_KEY_UP, _key_up_cb, NULL); ecore_main_loop_begin(); ecore_event_handler_del(h1); ecore_event_handler_del(h2); ecore_win32_window_free(w); ecore_event_shutdown(); ecore_win32_shutdown(); ecore_shutdown(); return 0; } ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
