XGetDeviceControl(3X11) | X FUNCTIONS | XGetDeviceControl(3X11) |
̾??¶
XGetDeviceControl, XChangeDeviceControl - ???ϥǥХ??????????䤤???碌???ѹ????Ԥʤ?
????¶
XDeviceControl * XGetDeviceControl(display, device,
control)
Display *display;
XDevice *device;
int *controlType;
int XChangeDeviceControl(display, device,
controlType, control)
Display *display;
XDevice *device;
int controlType;
XDeviceControl *control;
??????¶
- display
- X ?????Фؤ???³?????ꤹ?롣
- device
- ?????ˤĤ??Ƥ??䤤???碌???ѹ????Ԥ??ǥХ????????ꤹ?롣
- controlType
- ?䤤???碌???ѹ????Ԥ??????Υ????פ????ꤹ?롣
- control
- ?ǥХ??????Ф??뿷?????ͤ???Ǽ???Ƥ??? XDeviceControl ??¤?Τ? ???ɥ쥹?????ꤹ?롣
????¶
???????Υꥯ?????Ȥˤ??ꡢ?ǥХ????????ݡ??Ȥ??Ƥ??????ϥǥХ????? ?????Ǥ??롣 ?ꥯ?????Ȥ??Ф????ǥХ??????ǥХ??????????ݡ??Ȥ??Ƥ??ʤ????硢 BadMatch ???顼???????롣
???????Υꥯ?????Ȥǻ??ѤǤ???ͭ???ʥǥХ????????Υ????פ??ʲ??˼?????
- DEVICE_RESOLUTION
- ???ϥǥХ??????ΥХ??奨?????β????٤??䤤???碌???ѹ????Ԥ???
XGetDeviceControl ?ꥯ?????Ȥ? XDeviceControl ??¤?Τؤ? ?ݥ????֤???
XGetDeviceControl ?ϥ??顼 BadDevice, BadMatch ?? ?????????Ȥ????롣
XChangeDeviceControl ?ꥯ?????Ȥϡ????ꤷ???ǥХ?????1?Ĥ??????? ?ؤ????ͤ??ѹ????롣?????ϥꥯ?????Ȥȶ????Ϥ????? XDeviceControl ??¤?Τ? id ?ե??????ɤˤ??äƼ??̤????롣
XChangeDeviceControl ?ϥ??顼 BadDevice, BadMatch, BadValue ???????Ȥ????롣
??¤??¶
???줾?????????ϡ?????????????ͭ?ι?¤?Τˤ??äƵ??Ҥ????롣 ???????ι?¤?Τϥե????? XInput.h ?????????????Ƥ??롣
XDeviceControl ??2?ĤΥե??????ɤ?????????Ū?ʹ?¤?ΤǤ??롣 ???ι?¤?Τϡ????줾???????楯?饹?λϤ?2?ĤΥե??????ɤ????ġ?
typedef struct {
XID class;
int length;
} XDeviceControl;
XDeviceResolutionState ??¤?ΤϥХ??奨?????????ĥǥХ??????Ф? ?ơ??ǥХ????β????٤ˤĤ????֤??????????????????롣
typedef struct { XID control; int length; int num_valuators; int *resolutions; int *min_resolutions; int *max_resolutions; } XDeviceResolutionState;
XDeviceResolutionControl ??¤?Τϡ??????ܡ??ɥǥХ??????Ф??? ?????Ǥ???°???????????롣
typedef struct { XID control; int length; int first_valuator; int num_valuators; int *resolutions; } XDeviceResolutionControl;
?֤???¶
- BadDevice
- ?????ʥǥХ????????ꤵ?줿?? ???ꤵ?줿?ǥХ?????¸?ߤ??ʤ????????饤?????Ȥ? XOpenInputDevice ???Ȥäƥ????ץƤ??ʤ??? ???Υ??顼?ϻ??ꤷ???ǥХ???????¾?Υ??饤?????Ȥ? XChangeKeyboardDevice ?ꥯ?????Ȥ? XChangePointerDevice ?ꥯ?????Ȥˤ??ä? X ?Υ????ܡ??ɤ? X ?Υݥ??ǥХ????ˤʤä??? ?ˤⵯ???롣
- BadMatch
- ???Υ??顼?ϡ??????Ǥ??ʤ??ǥХ????????ꤷ?? XGetDeviceControl ?ꥯ?????Ȥ??Ԥʤä????䡢?????ʥǥХ????Υ????פ????? XDeviceControl ??¤?Τ? XChangeDeviceControl ?ꥯ?????Ȥ? ?Ԥä????˵????롣 ?ޤ??????Υ??顼?ϥޥ????ӥåȤ????????ȹ礻?????ꤵ?줿?Ȥ?(?????ܡ??? ?ǥХ??????Ф??? DvKey ?????ꤷ?Ƥ??뤬 DvAutoRepeatMode ?????ꤵ???Ƥ??ʤ???)??ʸ?????ǥХ??????Ф??? ?????? KeySym ?????ꤵ?줿?Ȥ??ˤⵯ???롣
- BadValue
- ???ꤵ?줿???ͤ????ˡ?XChangeDeviceControl ?ꥯ?????Ȥε????ϰϤ? ?ۤ??Ƥ??????Τ????롣 ?????????Ф??????????ϰϤ????ꤵ???Ƥ??ʤ????С????????η????????????Ƥ??? ???Ƥ??ϰϤ????????롣???????Ȥ????????????Ƥ??????????Ϥ??Υ??顼?? ?????Ȥ????롣
??Ϣ????¶
Programming With Xlib
Release 6.5 | X Version 11 |