On Sun, 10 Apr 2005 12:23:40 +0200 Sebastian Dransfeld <[EMAIL PROTECTED]> babbled:
Here are my test files, if someone cares. Seems like it is very hard to find out excatly what modifiers are pressed when accepting keydown on an evas.
you will get evas events. they will have an opaque modifer object in them. ie event->modifiers. you can also get this from the canvas any time with mod = evas_key_modifier_get(evas);
now u want to know if modifier X is enabled? if (evas_key_modifier_is_set_get(event->modifiers, "Shift")) printf("Shift pressed!\n"); by convention ecore_evas sets up modifiers for: Shift Control Alt Super Hyper
Super and Hyper invariably map to the "windows key" modifier.
locks (work the same way as modifiers) by default are: Scroll_Lock Num_Lock Caps_Lock
that should give you a jump start :)
I know. The problem is how to check that _only_ Shift is pressed, and not any other modifier. Tried to add a mask that only keydown with Ctrl pressed should be accepted, and a not modifier of ~(Ctrl) but that didn't work.
Sebastian
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel