Scroll to navigation

XListInputDevices(3X11) X FUNCTIONS XListInputDevices(3X11)

̾??

XListInputDevices, XFreeDeviceList - ???Ѳ?ǽ?????ϥǥХ?????????

????

XDeviceInfo *XListInputDevices(display, ndevices_return)
Display *display;
int *ndevices_return;

XFreeDeviceList(list)
XDeviceInfo *list;

??????

X ?????Фؤ???³?????ꡣ
???Ѳ?ǽ?ʥǥХ????ο????֤??ΰ??ؤΥݥ??󥿤????ꡣ
?????????ǥХ????ο??????ꡣ ?ؿ? XFreeDeviceList ?ϡ????Ѳ?ǽ?ʳ?ĥ???ϤΥǥХ????Υꥹ?Ȥ? ???????롣

????

XListInputDevices ?ꥯ?????Ȥϡ????Ѳ?ǽ?ʳ?ĥ?ǥХ????Υꥹ?Ȥ??֤??????Υꥹ?Ȥˤϡ??? ??X ?????Ф??̤??????Ѳ?ǽ?? X ?Υݥ??󥿡?X ?Υ????ܡ??ɡ?????¾???? ?ϥǥХ??????ޤޤ??롣?????ˤ??Υꥹ?Ȥˤϡ????ߤ????Ѳ?ǽ?Ǥʤ????׵? ?????? X ?????Ф??̤??ƥ??????????뤳?Ȥ??Ǥ??????ϥǥХ??????ޤޤ??롣

?????Фμ????ˤ??äƤϡ??????Ф????????????Ȥ??????Ƥ????ϥǥХ??????? ?Ѳ?ǽ?ˤ??????Τ????뤫?⤷???ʤ??????뤤?ϡ????饤?????Ȥ????ϥǥХ? ???ؤΥ??????????׵᤹???Ȥ??ޤ??ԤĤ??Τ⤢?뤫?⤷???ʤ??????Ԥξ??? ?ˤϡ????????ˤ????ϥǥХ????????Ѳ?ǽ?Ȥ??ƥꥹ?Ȥ??졢?̤λ??ˤϥꥹ ?Ȥ????ʤ????Ȥ⤢?롣

?????Ф????Ѳ?ǽ?ʳ????ϥǥХ????ˤĤ??ơ?XListInputDevices ?ꥯ?????? ?? XDeviceInfo ??¤?Τ??֤??????ι?¤?ΤϹ?¤?ΤΥꥹ?ȤؤΥݥ??󥿤? ?ޤ??Ǥ??ꡢ?ꥹ?Ȥγ????ǤϥǥХ????????ݡ??Ȥ??Ƥ??????ϤΥ??饹1?? ?˴ؤ????????????äƤ??롣

XDeviceInfo ??¤?Τϰʲ??Τ褦???????????Ƥ??롣

typedef struct _XDeviceInfo
{
	XID		id;        
	Atom		type;
	char		*name;
	int		num_classes;
	int		use;
	XAnyClassPtr	inputclassinfo;
} XDeviceInfo;

id ?????Ф? 0-128 ???ϰϤο????ǡ??ǥХ????????դ????ꤹ?롣???ο????? ?????Ф??????????Ԥä??Ȥ??˳??????Ƥ????롣

type ?ե??????ɤ? Atom ???Ǥ??ꡢ?ǥХ??????????򼨤???

name ?ե??????ɤϡ??????????Ƥ????ǥХ????Υ????פ?1?Ĥ??б????롢 NULL ?ǽ???ʸ?????ؤΥݥ??󥿤????ġ?????̾???ϰʲ??˼???ʸ?????Τ??? ?줫?Ǥ???(?إå??ե????? XI.h ???????????Ƥ???):

XI_MOUSE XI_TABLET XI_KEYBOARD XI_TOUCHSCREEN XI_TOUCHPAD XI_BUTTONBOX XI_BARCODE XI_TRACKBALL XI_QUADRATURE XI_ID_MODULE XI_ONE_KNOB XI_NINE_KNOB XI_KNOB_BOX XI_SPACEBALL XI_DATAGLOVE XI_EYETRACKER XI_CURSORKEYS XI_FOOTMOUSE

????????̾???? XDeviceInfo ??¤?Τ? name ?ե??????ɤ?ľ?????Ӥ??뤳?? ???Ǥ????ޤ???XDeviceInfo ??¤?Τ? type ?ե??????ɤ????Ӥ??뤳?Ȥ??Ǥ? ?륢?ȥ??????????뤿???? XInternAtom ?ꥯ?????ȤǻȤ????Ȥ??Ǥ??롣

num_classes ?ե??????ɤ? 0-255 ???ϰϤ??ͤǤ??ꡢListInputDevices ???? ???????ˤĤ??ơ??ǥХ????????ݡ??Ȥ??Ƥ??????ϥ??饹?ο??򼨤??????ϥ? ?饹?ˤ??äƤϡ?ListInputDevices ?????????????֤??ʤ????Τ⤢??(Focus ???饹?? Proximiti ???饹?ʤ?)??

use ?ե??????ɤϥǥХ????????ߤɤΤ褦?˻??Ѥ????Ƥ??뤫?򼨤????????? ?? IsXKeyboard ?ʤ??С????ߤ??ΥǥХ????? X ?Υ????ܡ??ɤȤ??ƻ? ?????Ƥ??롣?ͤ? IsXPointer ?ʤ??С????ΥǥХ????ϸ??? X ?Υݥ? ?󥿤Ȥ??ƻȤ????Ƥ??롣?ޤ????ͤ? IsXExtensionDevice ?ʤ??С??? ?ΥǥХ????ϳ?ĥ?ǥХ????Ȥ??ƻ??Ѥ??뤳?Ȥ??Ǥ??롣

inputclassinfo ?ե??????ɤϡ????ϥ??饹?˰?¸?????ǽ??Υǡ????ؤΥݥ? ?󥿤????äƤ??롣???κǽ???2?ĤΥե??????ɤ????ƤΥ??饹?Ƕ??̤Ǥ??롣

class ?ե??????ɤ? 0-255 ???ϰϤο??Ǥ??롣???ο??Ͼ??????֤????????? ?Υ??饹?????դ˶??̤??롣?????????????Ƥ??륯?饹?ϡ?KeyClass, ButtonClass, ValuatorClass ?Ǥ??롣

length ?ե??????ɤ? 0-255 ???ϰϤο??Ǥ??롣???ο??ϡ????????ϥ??饹?? ?ޤޤ??Ƥ????ǡ????ΥХ??ȿ??򼨤???????Ĺ???? class ?ե??????ɤ? length ?ե??????ɤ??ޤ??Ǥ??롣

XKeyInfo ??¤?Τϡ??ǥХ??????Υ??????????򵭽Ҥ??롣?????ϰʲ??Τ褦 ???????????Ƥ???:

typedef struct _XKeyInfo {
	XID			class;
	int			length;
	unsigned short		min_keycode;
	unsigned short		max_keycode;
	unsigned short		num_keys;
} XKeyInfo;

min_keycode ?? KEYCODE ???Ǥ??롣?????ϥǥХ????????Τ????Ǿ??Υ??????? ?ɤ????ꤹ?롣?Ǿ??Υ????????ɤ?8̤???ˤϤʤ??ʤ???

min_keycode ?? KEYCODE ???Ǥ??롣?????ϥǥХ????????Τ????????Υ??????? ?ɤ????ꤹ?롣?????Υ????????ɤ?255?????礭???Ϥʤ??ʤ???

num_keys ?ϥǥХ????????äƤ??륭???ο??򼨤???

XButtonInfo ??¤?Τϡ??ǥХ??????Υܥ??????????????????롣?????ϰʲ??? ?褦???????????Ƥ???:

typedef struct _XButtonInfo {
	XID		class;
	int		length;
	short		num_buttons;
} XButtonInfo;

num_bottons ?ϥǥХ????????äƤ????ܥ????ο??򼨤???

XValuatorInfo ??¤?Τϡ??ǥХ??????ΥХ??奨???????????????????롣???? ?ϰʲ??Τ褦???????????Ƥ???:

typedef struct	_XValuatorInfo {
	XID			class;
	int			length;
	unsigned char		num_axes;
	unsigned char		mode;
	unsigned long		motion_buffer;
	XAxisInfoPtr		axes;
} XValuatorInfo;

num_axes ?ϥǥХ????????ݡ??Ȥ??Ƥ??뼴?ο??򼨤???

mode ???????Ǥ??ꡢAbsolute ?? Relative ?Τ????줫?Ǥ??롣?ǥХ????ˤ??? ?Ƥϡ?SetDeviceMode ?ꥯ?????Ȥˤ??ä? mode ??ưŪ???Ѥ??뤳?Ȥ??Ǥ??롣

motion_buffer_size ?ϥǥХ?????ư???????Хåե??????Ĥ??Ȥ??Ǥ??????? ???򼨤??????Ǥ??롣

axis ?ե??????ɤ? XAxisInfo ??¤?ΤؤΥݥ??󥿤????ġ?

XAxisInfo ??¤?Τϰʲ??Τ褦???????????Ƥ???:

typedef struct _XAxisInfo {
	int 	resolution;
	int 	min_value;
	int 	max_value;
} XAxisInfo;

?????٤ϡ????????ȿ?/?᡼?ȥ????ͤ????ġ?

min_value ?ե??????ɤϡ????μ????Ф??ƥǥХ????????Τ????Ǿ??ͤ򼨤??? ?⡼?ɤ? Relative ?Ǥ????ǥХ??????Ф??Ƥϡ?min_value ?ե??????ɤ? 0 ?Ȥʤ롣

max_value ?ե??????ɤϡ????μ????Ф??ƥǥХ????????Τ????????ͤ򼨤??? ?⡼?ɤ? Relative ?Ǥ????ǥХ??????Ф??Ƥϡ?max_value ?ե??????ɤ? 0 ?Ȥʤ롣

XListInputDevices ?ˤ??ä????????줿 XDeviceInfo ???????? ?????????ˤϡ?XFreeDeviceList ?????Ѥ??뤳?ȡ?

?֤???

̵????

??Ϣ????

Programming with Xlib

Release 6.5 X Version 11