Scroll to navigation

XQueryDeviceState(3X11) X FUNCTIONS XQueryDeviceState(3X11)

̾??

XQueryDeviceState - ??ĥ???ϥǥХ????ξ??֤??䤤???碌??

????

XQueryDeviceState(display, device)
Display *display;
XDevice *device;

??????

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

????

XQueryDeviceState ?ꥯ?????Ȥ????ϥǥХ????ξ??֤??䤤???碌?롣 ???Υꥯ?????Ȥˤ??äƥǥХ??????Υ??????ܥ???(???????Ƥ??뤫?ɤ???)?? ?Х??奨????(???ߤ???)?θ??ߤξ??֤????Τ????롣 ?ǥХ??????ΥХ??奨?????ϡ??????ͤξ????ξ????ˤ? 0 ?????Τ????????? ?ξ????ξ????ˤϸ??ߤ??ͤ????Τ??롣

XQueryDeviceState ?ϥ??顼 BadDevice ?򵯤??????Ȥ????롣

??¤??

XDeviceState ??¤?Τ????Ƥ??ʲ??˼?????

typedef struct {
	XID device_id;
	int num_classes;
	XInputClass *data;
} XDeviceState;

XValuatorState ??¤?Τ????Ƥ??ʲ??˼?????

typedef struct {
	unsigned char class;
	unsigned char length;
	unsigned char num_valuators;
	unsigned char mode;
	int *valuators;
} XValuatorState;

XKeyState ??¤?Τ????Ƥ??ʲ??˼?????

typedef struct {
	unsigned char class;
	unsigned char length;
	short         num_keys;
	char keys[32];
} XKeyState;

XButtonState ??¤?Τ????Ƥ??ʲ??˼?????

typedef struct {
	unsigned char class;
	unsigned char length;
	short         num_buttons;
	char buttons[32];
} XButtonState;

?֤???

?????ʥǥХ????????ꤵ?줿?????ꤵ?줿?ǥХ?????¸?ߤ??ʤ????????Υ??? ???????Ȥ? XOpenInputDevice ???ȤäƥǥХ????򥪡??ץ󤷤Ƥ??ʤ??? ???Υ??顼?ϡ????ꤷ???ǥХ?????¾?Υ??饤?????Ȥ? XChangeKeyboardDevice ?ꥯ?????Ȥ? XChangePointerDevice ?? ???????Ȥˤ??ä? X ?Υ????ܡ??ɥǥХ????? X ?Υݥ??󥿥ǥХ????ˤ??줿 ???ˤⵯ???롣

??Ϣ????

Programming with Xlib

Release 6.5 X Version 11