Title: Samsung Enterprise Portal mySingle

Hello, Dears.

 

I'm planning to add a touch cancel event(like ACTION_CANCEL in Android) in X11 protocol.

 

So I invested XI events and I found a variable named "flags" in DeviceEvent structure.

The "flags" variable can get values like below.

 

(defined in XI2.h)

/* Device event flags (common) */

/* Device event flags (key events only) */

#define XIKeyRepeat                             (1 << 16)

/* Device event flags (pointer events only) */

#define XIPointerEmulated                       (1 << 16)

/* Device event flags (touch events only) */

#define XITouchPendingEnd                       (1 << 16)

#define XITouchEmulatingPointer                 (1 << 17)

 

So I think how about insert "Device event flags" for a touch cancel event like below.

#define XITouchCancel  (1 << 18)

or

#define XIPointerCancel (1 << 18)

we can distinguish Normal touch events and a touch cancel event using XITouchCancel definition.

 

Another way is make new events: struct TouchCancelEvent( have a type "XI_TouchCancel")

 

Each method has its advantages and disadvantages.

 

So I hope to hear opinions.

Would you give me some advice or opinion?

 

I will wait your reply.

Best regards,

Jeonghyun Kang.


강 정 현 JeongHyun Kang

System S/W Lab

Software Center

SAMSUNG ELECTRONICS CO.,LTD.

Mobile : +82-10-2050-7469

E-Mail : [email protected]


 

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to