Re: [E-devel] Handling hardware keys on maemo with EFL
On Sun, May 11, 2008 at 5:05 AM, Ben Martin [EMAIL PROTECTED] wrote: Hi, I notice that things like the fullscreen key on maemo are mapped to F6 by default. Are folks developing for maemo with EFL just using xev to work out the default key bindings and mapping key grabs for those events to callbacks to handle them? This works but isn't exactly straightforward readability wise. I guess the app could #define MAEMO_N810_FULLSCREEN_KEY to F6 to make things more legible unless there is already a preferred method to handle these extra keys. Evas_Modifier_Mask mask = 0; evas_object_key_grab(edje, F6, mask, ~mask, 0); evas_object_event_callback_add( edje, EVAS_CALLBACK_KEY_DOWN, _cb_key_down, ee ); This have nothing to do with EFL, Maemo have these mapped like this and the keys are documented in their website. They provide it like that and we just keep. -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: [EMAIL PROTECTED] Skype: gsbarbieri Mobile: +55 (19) 9225-2202 - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Handling hardware keys on maemo with EFL
On Mon, 2008-05-12 at 13:08 -0300, Gustavo Sverzut Barbieri wrote: On Sun, May 11, 2008 at 5:05 AM, Ben Martin [EMAIL PROTECTED] wrote: Hi, Evas_Modifier_Mask mask = 0; evas_object_key_grab(edje, F6, mask, ~mask, 0); evas_object_event_callback_add( edje, EVAS_CALLBACK_KEY_DOWN, _cb_key_down, ee ); This have nothing to do with EFL, Maemo have these mapped like this and the keys are documented in their website. They provide it like that and we just keep. This seems the most logical. I guess if you start performing tricks to support one hardware platform specially then there will be no end to the custom enum {}'s for each platform ;) signature.asc Description: This is a digitally signed message part - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] Handling hardware keys on maemo with EFL
Hi, I notice that things like the fullscreen key on maemo are mapped to F6 by default. Are folks developing for maemo with EFL just using xev to work out the default key bindings and mapping key grabs for those events to callbacks to handle them? This works but isn't exactly straightforward readability wise. I guess the app could #define MAEMO_N810_FULLSCREEN_KEY to F6 to make things more legible unless there is already a preferred method to handle these extra keys. Evas_Modifier_Mask mask = 0; evas_object_key_grab(edje, F6, mask, ~mask, 0); evas_object_event_callback_add( edje, EVAS_CALLBACK_KEY_DOWN, _cb_key_down, ee ); signature.asc Description: This is a digitally signed message part - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel