<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 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:±¼¸²;
        panose-1:2 11 6 0 0 1 1 1 1 1;}
@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 5 3 2 0 0 2 0 4;}
@font-face
        {font-family:"\@±¼¸²";
        panose-1:2 11 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:"\@±¼¸²Ã¼";
        panose-1:2 11 6 9 0 1 1 1 1 1;}
/* 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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:9.0pt;
        font-family:±¼¸²Ã¼;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"¸¼Àº °íµñ";
        color:windowtext;}
.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;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>Hello, Dears.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>I send this email again. Because of HTML (not text)<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'><o:p> </o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>I'm planning to add a touch cancel event(like ACTION_CANCEL in Android) in X11 protocol.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'> <o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>So I invested XI events and I found a variable named "flags" in DeviceEvent structure.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>The "flags" variable can get values like below.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'> <o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>==========================================================<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>(defined in XI2.h)<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>/* Device event flags (common) */<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>/* Device event flags (key events only) */<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>#define XIKeyRepeat                             (1 << 16)<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>/* Device event flags (pointer events only) */<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>#define XIPointerEmulated                       (1 << 16)<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>/* Device event flags (touch events only) */<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>#define XITouchPendingEnd                       (1 << 16)<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>#define XITouchEmulatingPointer                 (1 << 17)<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>==========================================================<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'><o:p> </o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>So I think how about insert "Device event flags" for a touch cancel event like below.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>#define XITouchCancel  (1 << 18)<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>or<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>#define XIPointerCancel (1 << 18)<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>we can distinguish Normal touch events and a touch cancel event using XITouchCancel definition.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'> <o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>Another way is make new events: struct TouchCancelEvent( have a type "XI_TouchCancel")<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'> <o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>Each method has its advantages and disadvantages.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'> <o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>So I hope to hear opinions.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>Would you give me some advice or opinion?<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'> <o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>I will wait your reply.<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>Best regards,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:150%;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all'><span lang=EN-US style='line-height:150%'>Jeonghyun Kang.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>