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?

-- 
Best regards,
  Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

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

Reply via email to