<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=ks_c_5601-1987"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"¸¼Àº °íµñ";
        panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
        {font-family:±¼¸²Ã¼;
        panose-1:2 11 6 9 0 1 1 1 1 1;}
@font-face
        {font-family:"\@±¼¸²Ã¼";
        panose-1:2 11 6 9 0 1 1 1 1 1;}
@font-face
        {font-family:"\@¸¼Àº °íµñ";
        panose-1:2 11 5 3 2 0 0 2 0 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        text-autospace:none;
        word-break:break-hangul;
        font-size:10.0pt;
        font-family:"¸¼Àº °íµñ";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:±¼¸²Ã¼;}
pre
        {mso-style-priority:99;
        mso-style-link:"¹Ì¸® ¼­½ÄÀÌ ÁöÁ¤µÈ HTML Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:±¼¸²Ã¼;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"¸¼Àº °íµñ";
        color:windowtext;}
span.HTMLChar
        {mso-style-name:"¹Ì¸® ¼­½ÄÀÌ ÁöÁ¤µÈ HTML Char";
        mso-style-priority:99;
        mso-style-link:"¹Ì¸® ¼­½ÄÀÌ ÁöÁ¤µÈ HTML";
        font-family:±¼¸²Ã¼;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"¸¼Àº °íµñ";}
/* Page Definitions */
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:3.0cm 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=KO link=blue vlink=purple><div class=WordSection1><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>Dear all,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>as you guys know, there are some combo input devices which support both keyboard functionality and pointer functionality.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>We can also see some of input devices supports both keyboard functionality and touch functionality.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'><o:p> </o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>In theory, each input device functionality needs to be provided through each kernel device node.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>By the way, there are many combo input devices whose input events is coming from one device node.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>Now and in near future, many vendors can make many combo input devices.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'><o:p> </o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>For these kinds of input devices, how about adding new enums for combo devices?<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>Otherewise, how about defining enums with masks ?<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'><o:p> </o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>For example, we can modify the definition of libinput_device_capability enum like the following:<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'><o:p> </o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>diff --git a/src/libinput.h b/src/libinput.h<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>index 9057446..458f256 100644<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>--- a/src/libinput.h<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>+++ b/src/libinput.h<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>@@ -51,14 +51,22 @@ enum libinput_log_priority {<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'> /**<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>  * @ingroup device<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>  *<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>- * Capabilities on a device. A device may have one or more capabilities<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>+ * Capability masks and capabilities on a device. A device may have one or more capabilities<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>  * at a time, capabilities remain static for the lifetime of the device.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>  */<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>+#define LIBINPUT_DEVICE_CAP_KEYBOARD_MASK (1L<<0)<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>+#define LIBINPUT_DEVICE_CAP_POINTER_MASK (1L<<1)<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>+#define LIBINPUT_DEVICE_CAP_TOUCH_MASK (1L<<2)<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>+#define LIBINPUT_DEVICE_CAP_GESTURE_MASK (1L<<3)<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>+<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'> enum libinput_device_capability {<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>-       LIBINPUT_DEVICE_CAP_KEYBOARD = 0,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>-       LIBINPUT_DEVICE_CAP_POINTER = 1,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>-       LIBINPUT_DEVICE_CAP_TOUCH = 2,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>-       LIBINPUT_DEVICE_CAP_GESTURE = 5,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>+       LIBINPUT_DEVICE_CAP_KEYBOARD = LIBINPUT_DEVICE_CAP_KEYBOARD_MASK,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>+       LIBINPUT_DEVICE_CAP_POINTER = LIBINPUT_DEVICE_CAP_POINTER_MASK,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>+       LIBINPUT_DEVICE_CAP_TOUCH = LIBINPUT_DEVICE_CAP_TOUCH_MASK,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>+       LIBINPUT_DEVICE_CAP_GESTURE = LIBINPUT_DEVICE_CAP_GESTURE_MASK,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>+       LIBINPUT_DEVICE_CAP_KEYBOARD_POINTER = LIBINPUT_DEVICE_CAP_KEYBOARD_MASK | LIBINPUT_DEVICE_CAP_POINTER_MASK,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>+       LIBINPUT_DEVICE_CAP_KEYBOARD_TOUCH = LIBINPUT_DEVICE_CAP_KEYBOARD_MASK | LIBINPUT_DEVICE_CAP_TOUCH_MASK,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>+       LIBINPUT_DEVICE_CAP_TOUCH_GESTURE = LIBINPUT_DEVICE_CAP_TOUCH_MASK | LIBINPUT_DEVICE_CAP_GESTURE_MASK,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'> };<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'><o:p> </o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'> /**<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>With this kinds of modification,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>A wayland compositor is able to recognize the actual input device capabilities and able to interpret events properly.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'><o:p> </o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>Any ideas ?<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'><o:p> </o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>Thanks and regards,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;background:white;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='font-size:12.0pt;font-family:±¼¸²Ã¼;color:black'>Sung-Jin Park</span><span lang=EN-US style='font-family:±¼¸²Ã¼;color:black'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>