<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>I wrote a x driver, it read some data from serial
line, then i parse data and post some events:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>xf86PostButtonEvent work well:</FONT></DIV>
<DIV><FONT size=2>//////////////////////////////////////////</FONT></DIV>
<DIV><FONT size=2>if (priv->zzzOldPush != push)
{<BR> int delta;</FONT></DIV>
<DIV><FONT size=2><BR> delta = push -
priv->zzzOldPush;</DIV>
<DIV> </DIV>
<DIV> if (priv->zzzOldPush != push)
{<BR>
xf86PostButtonEvent(device, 1, 1, (delta > 0), 0, 3, x, y,
pressure);<BR> <BR>
}<BR> }</FONT></DIV>
<DIV><FONT size=2>//////////////////////////////////////////</FONT></DIV>
<DIV><FONT size=2>but xf86PostButtonEvent can not work, it caused server
aborting:</FONT></DIV>
<DIV><FONT size=2>/////////////////////////////////////////</FONT></DIV>
<DIV><FONT size=2>if ( (priv->zzzOldX != x) || (priv->zzzOldY != y))
{<BR> xf86PostMotionEvent(device, 1, 0, 3, x, y,
pressure);<BR>}</FONT></DIV>
<DIV><FONT size=2>/////////////////////////////////////////</FONT></DIV>
<DIV><FONT size=2>anybody who can help me? many
thanks!!!!!!!!</FONT></DIV></BODY></HTML>