資源描述:
《linux多點(diǎn)觸控協(xié)議》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫。
1、linux多點(diǎn)觸控協(xié)議briefintroductionInordertouseapowerfulmultitouchdevice,onesolutionistoreportdetailedfingertouchdatatotheuserlayer?Themultitouchprotocoldescribedinthisdocumentallowsthekerneldrivertoreportanymultifingerdatatotheuserlayer?InstructionsAnyonefingertouchdatais
2、packagedintoaABSeventpackageinordertosendonlyABSMTeventpacketscanbeidentifiedasthemultitouchdata,callinputmtsync()functioncangenerateaSYNMTREPORTevent,thefunctionofreceivingandprocessingtheinformationandfingertouchinformationreadytoreceivetheotherfingers?Finally,cal
3、ltheinput_sync()functiontoreporttoEVSYN/SYNREPORTEventcompletesthestartofapackageandpreparestoprocessthenextpackage?TheABS_MTprotocoldefinestheattributesofevents,theseeventsaredividedintoseveralcategories,allowingonlyapartoftheapplication,multitoucheventsshouldbemin
4、imumincludingABSMTPOSITIONXandABSMTPOSITIONX,thesetwoeventsareusedtodescribethemultitouchfingertouchtrajectory.Ifthedevicesupportsthetwoevents,thenABS_MT_TOUCH_MAJORandABS_MT_WIDTH_MAJORareusedtoprovidefingersizeandtouchareasize,respective!y.TheTOUCHandWIDTHparamete
5、rsaregiven,ifonefingerontheglassthroughtheglass,youwillseetworegions,oneisthecontactfingerandtheglassarea,describedbyABS_MT_TOUCH_MAJOR,isanareathesizeofthefingeritself,ABS_MT_WIDTH_IAJORdescription,contactfingersandtheglassareaissmallerthanthefingeritselfthesize,t
6、hroughthesetwoparameters,canbeconvertedtopressureshot?ThefingerpressurecanalsobesupplieddirectlythroughtheABS_MT_PRESSUREparameter?InadditiontotheMAJORparameters,canalsoprovideaMINORparameter,thefingercanbethoughtofasanellipse,MAJORandMINORcanbeconsideredandtheshort
7、axisofthelongaxisoftheellipse,theellipsecentercanbedescribedORIENTATIONthisparameter?TheABS_MT_TOOL_TYPEparameterisusedtodescribethetypeoftouchtool(finger,touchpen,etc?)?Differentdevicesmayhavesomeotherinformationthatneedstobepassedtotheuserlayer?Forexample,ABS_MT_B
8、LOB_IDisusedtodescribethecollectionofedgesofrectangles.Atpresent,onlyafewdevicescanbesupported,andtheABS_MT_TRACKING_IDeventisusedtoreport