On Tue, Aug 07, 2007 at 12:48:11PM +0200, Denis Oliver Kropp wrote:
> Denis Oliver Kropp wrote:
> > Mickael Istria wrote:
> >> /* Devices using KEYS */
> >> if (num_keys > 0 || num_ext_keys > 0)
> >> {
> >>     info->desc.caps |= DICAPS_KEYS;
> >>     /* a keyboard */
> >>     if (num_keys > 20) /* or any other condition that defines a keyboard */
> >>        info->desc.type |= DIDTF_KEYBOARD;
> >>     else if (num_ext_keys > 0) /* or any other condition that defines a
> >> remote */
> >>        info->desc.type |= DIDTF_REMOTE;
> >>     else if ( /* eg matches numbers from 0 to 9 */) /* or any other
> >> condition that defines a keypad */
> >>        info->desc.type |= DIDTF_KEYPAD;  // to define
> >>     else
> >>        info->desc.type |= DIDTF_UNKNOWN; // to define
> >>  }
> >>
> >> Do you think it would be a solution?
> > 
> > Yes. But maybe raising the minimum number of ext keys would make
> > front panels keypads instead of remotes.
> 
> Actually, "remote" should be an attribute. There could be remote
> keyboards as well. It also means that a "remote control" is classified
> as a remote keypad.
> 
> But how to detect whether something is remote?

Do we applications even need to know that? Maybe we can simply make
DIDTF_REMOTE mean a keypad with some optional other keys.

-- 
Ville Syrjälä
[EMAIL PROTECTED]
http://www.sci.fi/~syrjala/

_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to