Scroll to navigation

XGetDeviceMotionEvents(3X11) X FUNCTIONS XGetDeviceMotionEvents(3X11)

̾??

XGetDeviceMotionEvents, XDeviceTimeCoord - ?ǥХ?????ư????????????????

????

XDeviceTimeCoord *XGetDeviceMotionEvents(display, device, start, stop,
nevents_return, mode_return, axis_count_return)
Display *display;
XDevice *device;
Time start, stop;
int *nevents_return;
int *mode_return;
int *axis_count_return;

??????

X ?????Фؤ???³?????ꤹ?롣
ư?????????䤤???碌???ǥХ????????ꤹ?롣

ư???????Хåե????饤?٥??Ȥ??֤????????ֳִ֤????ꤹ?롣 ?????ॹ?????פ? CurrentTime ?????ꤹ?롣
ư???????Хåե??????????줿???٥??Ȥο????֤????롣
?ǥХ????Υ⡼??(Absolute ?ޤ??? Relative)???֤????롣
???Τ????Ƥ??뼴?ο????֤????롣

????

X ?????Фˤ??äƤϡ??ǥХ?????ư???κǶ??????????ݻ????Ƥ??ơ? DeviceMotionNotify ???٥??Ȥ????Τ??????????٤????ǥХ?????ư????Ĵ?٤????????Τ? ???롣 XGetDeviceMotionEvents ?Ϥ????????????Ѳ?ǽ?ˤ??롣

XGetDeviceMotionEvents ?ꥯ?????Ȥϡ????ꤷ?????ϻ????Ƚ?λ???? ?δ֤˵?????ư???????Хåե????????ƤΥ??٥??Ȥ??֤??? ξü?λ??֤Ϥ????˴ޤޤ??롣 ???ϻ??郎??λ???????????٤??????䡢???ϻ??郎̤???Ǥ????????ˤϡ? ???٥??Ȥ??????֤????ʤ??? ??λ???郎̤???ξ????ϡ?CurrentTime ?????ꤷ????????Ʊ???ˤʤ롣

mode ?ϥǥХ????????а??֥ǡ???(mode=Absolute)?????а??֥ǡ? ??(mode=Relative)?Τ??????????Τ??Ƥ??뤫?????? ?ǥХ????ˤ??äƤϡ?XSetDeviceMode ?ꥯ?????Ȥ??ȤäƤ??Υ⡼?? ???ѹ??Ǥ??롣 ?????????????ϥե????? XI.h ???????????Ƥ??롣 axis_count ?ϡ??ǥХ????????Τ??Ƥ??뼴???Х??奨?????ο????֤???

XGetDeviceMotionEvents ?ϥ??顼 BadDevice, BadMatch ?򵯤??????Ȥ????롣

??¤??

XDeviceTimeCoord ??¤?Τ????Ƥ򼨤???

typedef struct {
	Time time;
	int *data;
} XDeviceTimeCoord;

time ?????Фˤϡ??ߥ???ñ?̤ǻ??郎???ꤵ???롣 data ?????Фˤϡ????????????ؤΥݥ??󥿤????ꤵ???롣 ?????????????ˤϡ??ǥХ????????Τ????ƥХ??奨?????伴???ͤ????ꤵ???롣 ?????????Ǥ??ͤϥǥХ????Υ⡼?ɤ˰?¸???롣?⡼?ɤ? Absolute ?ʤ??С??ͤϥǥХ??????????????????ͤǤ??롣???饤???? ?Ȥϡ??ǥХ??????????Ǥ????????ͤ??Ѥ??ơ??????????ͤΥ???????Ĵ?????? ?롣?ǥХ????γƼ??κ????ͤϡ?XListInputDevices ?ꥯ?????Ȥ??֤? XAxisInfo ??¤?Τ? max_val ?ե??????ɤȤ??????Τ????롣?⡼?ɤ? Relative ?ʤ??С??ǡ??????ͤϥǥХ??????????????????ͤǤ??롣

???饤?????Ȥ? XFreeDeviceMotionEvents ?????Ѥ??ơ????Υꥯ???? ?Ȥ??֤????ǡ????????????뤳?ȡ?

???Υ??饤?????Ȥϡ????顼 BadDevice, BadMatch ?򵯤????? ?Ȥ????롣

?֤???

?????ʥǥХ????????ꤵ?줿?????ꤵ?줿?ǥХ?????¸?ߤ??ʤ????? ???Υ??饤?????Ȥ? XOpenInputDevice ?ǥǥХ????򥪡??ץ󤷤Ƥ??ʤ??? ???Υ??顼?ϡ????ꤵ?줿?ǥХ????? X ?Υ????ܡ??ɥǥХ????? X ?Υݥ????? ?ǥХ????Ǥ????????ˤⵯ???롣
???Υ??顼?ϡ??Х??奨??????????????ư???μ??????Τ??ʤ??ǥХ????????? ???? XGetDeviceMotionEvents ?ꥯ?????Ȥ??Ԥʤä??????˵????롣 ???롣

??Ϣ????

Programming with Xlib

Release 6.5 X Version 11