XSetDeviceButtonMapping(3X11) | X FUNCTIONS | XSetDeviceButtonMapping(3X11) |
̾??¶
XSetDeviceButtonMapping, XGetDeviceButtonMapping - ?ǥХ????Υܥ??????????Ƥ??䤤???碌???ѹ????Ԥʤ?
????¶
int XSetDeviceButtonMapping(display, device,
map, nmap)
Display *display;
XDevice *device;
unsigned char map[];
int nmap;
int XGetDeviceButtonMapping(display, device,
map_return, nmap)
Display *display;
XDevice *device;
unsigned char map_return[];
int nmap;
??????¶
- display
- X ?????Фؤ???³?????ꤹ?롣
- device
- ?ܥ????γ??????Ƥ??䤤???碌???뤤???ѹ????Ԥʤ??ǥХ????????ꤹ?롣
- map
- ???????ƥꥹ?Ȥ????ꤹ?롣
- map_return
- ???????ƥꥹ?Ȥ??֤????롣
- nmap
- ???????ƥꥹ?????????ǿ??????ꤹ?롣
????¶
XSetDeviceButtonMapping
?ꥯ?????Ȥϻ??ꤷ???ǥХ????γ??????Ƥ????ꤹ?롣
?????????????ˤϡ?X ?????Ф? DeviceMappingNotify
???٥??Ȥ????????? XSetDeviceButtonMapping ??
MappingSuccess ???֤??? ???? map[i]
??ʪ??Ū?ʥܥ??? i+1
???Ф???????Ū?ʥܥ????ֹ??????????롣
?ꥹ?Ȥ?Ĺ???? XGetDeviceButtonMapping
???֤??ͤ?Ʊ???Ǥʤ????Фʤ餺???????Ǥʤ??????ϥ??顼
BadValue ?Ȥʤ롣
???Ǥ?1?Ĥ??ʤ??????ϥܥ?????̵???Ȥʤ롣?ޤ??????Ǥ??ͤ?ʪ??Ū??
?ܥ????ο????????ϼ????ʤ??? ????????0
?ʳ???Ʊ???ͤ????????Ǥ? 2
?Ĥ??äƤϤʤ??ʤ??????ä???????
?ϥ??顼
BadValue ?Ȥʤ롣
?ѹ????褦?Ȥ????ܥ????Τ????줫??????Ū?˲????줿???֤ʤ??С?
XSetDeviceButtonMapping ?? MappingBusy ???֤???????????
???ѹ??????ʤ???
XSetDeviceButtonMapping ?ϥ??顼 BadDevice, BadMatch, BadValue ???????? ?????롣
XGetDeviceButtonMapping ?ꥯ?????Ȥϻ??ꤷ???ǥХ????θ??ߤγ??????Ƥ??֤??? ?ܥ??????ֹ???1?????Ϥޤ롣 XGetDeviceButtonMapping ?ϡ??ǥХ??????μºݤ?ʪ??Ū?ʥܥ????????֤??? ?ǥХ??????Ф???̾?????б??? map[i] = i+1 ?Ǥ??롣 ?????? nmap ?ϥǥХ????γ??????Ƥ??֤???????????Ĺ???????ꤹ?롣 ?ǽ??? nmap ?Ĥ????Ǥ????? map_return ???֤????롣
XGetDeviceButtonMapping ?ϥ??顼 BadDevice , BadMatch ???????Ȥ????롣
?֤???¶
- BadDevice
- ?????ʥǥХ????????ꤵ?줿?????ꤷ???ǥХ?????¸?ߤ??ʤ????????饤???? ?Ȥ? XOpenInputDevice ?ǥ????ץƤ??ʤ??????ꤷ???ǥХ????? X ?Υ????ܡ??ɥǥХ????? X ?Υݥ??ǥХ????Ǥ????????ˤ⡢???Υ??顼 ???????롣
- BadMatch
- ???Υ??顼?ϥܥ?????̵???ǥХ??????Ф??? XGetDeviceButtonMapping ?ꥯ?????Ȥ? XSetDeviceButtonMapping ?ꥯ?????Ȥ??Ԥä??Ȥ????? ?뤳?Ȥ????롣
- BadValue
- ???ꤵ?줿???ͤˡ??ꥯ?????Ȥε????ϰϤ??ۤ??Ƥ??????Τ????롣?????????? ???????????ϰϤ????ꤵ???Ƥ??ʤ????С????????η????????????Ƥ??????Ƥ??? ?Ϥ????????롣???????Ȥ????????????Ƥ??????????Ϥ??Υ??顼???????Ȥ? ???롣
??Ϣ????¶
XChangeDeviceKeyboardControl(3X),
XChangeDeviceKeyMapping(3X)
XChangeDeviceModifierMapping(3X)
Programming With Xlib
Release 6.5 | X Version 11 |