Scroll to navigation

XGrabDeviceKey(3X11) X FUNCTIONS XGrabDeviceKey(3X11)

̾??


XGrabDeviceKey, XUngrabDeviceKey - ??ĥ???ϥǥХ??????????Υ?????/?????ֲ??????Ԥʤ?

????

XGrabDeviceKey(display, device, Key, modifiers, modifier_device, grab_window, owner_events,
event_count, event_list, this_device_mode, other_devices_mode)
Display *display;
XDevice *device;
unsigned int Key;
unsigned int modifiers;
XDevice *modifier_device;
Window grab_window;
Bool owner_events;
unsigned int event_count;
XEventClass event_list;
int this_device_mode, other_devices_mode;

XUngrabDeviceKey(display, device, Key, modifiers, modifier_device, grab_window)
Display *display;
XDevice *device;
unsigned int Key;
unsigned int modifiers;
XDevice *modifier_device;
Window grab_window;

??????

X ?????Фؤ???³?????ꤹ?롣
?????֤??뤤?ϲ????????ǥХ????????ꤹ?롣
?????֤??뤤?ϲ????????ǥХ????Υܥ????????ꤹ?롣 ?ޤ??? AnyButton ?????ꤹ?롣
?????ޥ????ͤ? AnyModifier ?????ꤹ?롣 ?ޥ????ͤϡ?ͭ???ʥ????ޥ????ӥå??ͤΥӥåȤ??Ȥ??????¤????ä????Τ? ???롣ͭ???ʥӥåȤϼ??Τ??ΤǤ???: ShiftMask, LockMask, ControlMask, Mod1Mask, Mod2Mask, Mod3Mask, Mod4Mask, Mod5Mask.
???ǥ??ե??????????Ѥ??????ǥХ????????ꤹ?롣modifier_device ?? NULL ?ξ? ?硢X ?Υ????ܡ??ɤ? modifier_device ?Ȥ??ƻ??Ѥ????롣
?????֥??????ɥ??????ꤹ?롣
?ǥХ????Υ??٥??Ȥ??̾??̤????𤹤뤫?????٥??ȥꥹ?Ȥ????򤵤??Ƥ??? ?ʤ??Х????֥??????ɥ??˴ؤ??????𤹤뤫?򼨤??????ͤ????ꤹ?롣
???٥??ȥꥹ?Ȥ˴ޤޤ??륤?٥??ȿ??????ꤹ?롣
???饤?????Ȥ????𤹤륤?٥??Ȥ????ꤹ?롣
?ǥХ??????????????ä????٥??Ȥθ??????????ꤹ?롣 GrabModeSync ?ޤ??? GrabModeAsync ?????ꤹ?롣
¾?????ƤΥǥХ??????????????ä????٥??Ȥθ??????????ꤹ?롣 GrabModeSync ?ޤ??? GrabModeAsync ?????ꤹ?롣

????

XGrabDeviceKey ?ϥѥå??֤ʥ????֤???Ω???롣 ???ǰʲ??ξ??郎???????????줿?ʤ??С??ǥХ????ϥ????ƥ??֤˥????֤??? (XGrabDevice ?ξ????Τ褦??)???ǽ??ǥХ????????ֻ????˥????????? ?줿???郎???åȤ???(DeviceKeyPress ???٥??Ȥ?????????)?? DeviceKeyPress ???٥??Ȥ????𤵤??롣

  • ???ꤵ?줿???ǥ??ե??????ǥХ??????λ??ꤵ?줿???ǥ??ե??????????????? Ū?˲??????Ƥ??ꡢ¾?Υ????????ǥ??ե??????????Ϥɤ???????Ū?˲??????? ???ʤ??Ȥ????ǥХ??????????֤????Ƥ??餺?????ꤵ?줿??????????Ū?˲??? ???Ƥ??롣
  • grab_window ???ե??????????????ɥ??????????襦?????ɥ??Ǥ??롣???뤤?ϡ? grab_window ???ե??????????????ɥ??Ǥ??ꡢ???ΥǥХ??????ޤ??Ǥ??롣
  • confine_window(?⤷??????)??ɽ????ǽ?Ǥ??롣
  • Ʊ??????/???ǥ??ե????????ȹ礻?ˤ??????ѥå??֤ʥ????֤???grab_window ?Τɤ????襦?????ɥ????ˤ?¸?ߤ??ʤ???

?Ĥ??ΰ??????β????ϡ?XGrabDevice ??Ʊ???Ǥ??롣 ?ǥХ??????λ??ꤵ?줿??????????Ū??Υ???줿???֤ˤʤä??Ȥ????????ƥ? ?֤ʥ????֤ϼ?ưŪ?˽?λ???롣

?ǥХ????Υץ??????????????뤵???Ƥ??????硢?ǥХ?????????Ū?ʾ???(?? ?饤?????ȥ??ץꥱ???????󤬸???)??ʪ??Ū?ʾ??֤δ֤ˤϤ??줬???뤫?? ?????ʤ????????դ??뤳?ȡ?

?????? AnyKey ?Ǥʤ????硢?????? XListInputDevices ?ꥯ?? ???Ȥ??֤? min_keycode ?? max_keycode ?Ǽ????????ϰϤ??ͤǤʤ????Фʤ? ?ʤ????????Ǥʤ??????ˤϡ????顼 BadValue ?Ȥʤ롣

???Υꥯ?????Ȥϡ?Ʊ?????饤?????Ȥˤ???Ʊ?????????ɥ???Ʊ??????/???ǥ? ?ե????????ȹ礻???Ф????????Υ????֤????񤭤??롣 ???ǥ??ե??????? AnyModifier ?????ꤹ?뤳?Ȥϡ???ǽ?ʥ??ǥ??ե? ???????ȹ礻???Ƥ??Ф??ƥ????֥ꥯ?????Ȥ?ȯ?Ԥ??뤳??(???ǥ??ե????? ???ʤ??ȹ礻???ޤ?)???????Ǥ??롣 ???ꤵ?줿???ƤΥ??ǥ??ե????????Ф??ơ????λ????? KeyCode ?????????? ?Ƥ????Ƥ???ɬ?פ?ɬ???????ʤ??? ?????? AnyKey ?????ꤹ?뤳?Ȥϡ???ǽ?ʥ??????Ƥ??ȹ礻???Ф??ƥ? ???????Ȥ?ȯ?Ԥ??뤳?Ȥ??????Ǥ??롣 ???ꤵ?줿?????????λ?????ʪ??Ū?ʥ????˳??????Ƥ????Ƥ???ɬ?פϤʤ???

?ͤ? NULL ?Ǥ??? modifier_device ?ϡ?X ?Υ????ܡ??ɤ? modifier_device ?Ȥ??ƻȤ????Ȥ????ꤹ?롣

¾?Υ??饤?????Ȥ???????Ʊ?????????ɥ?????Ʊ??????/???ǥ??ե????????? ?礻???Ф??? XGrabDeviceKey ??ȯ?Ԥ??Ƥ????????ϡ????顼 BadAccess ?Ȥʤ롣 AnyModifier ???뤤?? AnyButton ???Ѥ??????硢?ߤ??˴??Ĥ????ȹ礻??1?ĤǤ⤢???С??ꥯ?????Ȥϴ????? ???Ԥ??????顼 BadAccess ?Ȥʤ?(?????ʤ륰???֤???Ω?????ʤ?)?? XGrabDeviceKey ?ϥ????ƥ??֤ʥ????֤??Ф??Ƥ?̵???Ǥ??롣

XGrabDeviceKey ?ϡ????顼 BadAccess, BadClass, BadDevice, BadMatch, BadValue, BadWindow ?򵯤??????Ȥ????롣???δؿ??ϥꥯ?????Ȥ????ェλ???ˤ? Success ???֤???

XUngrabDeviceKey ?ꥯ?????Ȥϡ????ꤷ?????????ɥ????Υ???/???ǥ??ե????????ȹ礻???Ф? ?ơ????Υ??饤?????Ȥ??????ȹ礻???ѥå??֤˥????֤??Ƥ????ʤ??С????? ?????????롣 ???ǥ??ե??????? AnyModifier ?????ꤹ?뤳?Ȥϡ???ǽ?Ǥ??????ǥ? ?ե????????ȹ礻?????Ƥ??Ф??ƥ????ֲ????Υꥯ?????Ȥ?ȯ?Ԥ??뤳?Ȥ??? ???Ǥ??롣?????ȹ礻?ϡ????ǥ??ե????????ʤ??ȹ礻???ޤࡣ ?????? AnyButton ?????ꤹ?뤳?Ȥϡ???ǽ?Ǥ??륭?????ȹ礻?????? ???Ф??ƥꥯ?????Ȥ????뤳?Ȥ??????Ǥ??롣 XUngrabDeviceKey ?ϥ????ƥ??֤ʥ????֤??Ф??Ƥ?̵???Ǥ??롣

?ͤ? NULL ?Ǥ??? modifier_device ?ϡ?modifier_device ?Ȥ??? X ?Υ????ܡ? ?ɤ??Ȥ????Ȥ????ꤹ?롣

XUngrabDeviceKey ?ϡ????顼 BadDevice, BadMatch, BadValue , BadWindow ?򵯤??????Ȥ????롣

?֤???

?????ʥǥХ????????ꤵ?줿?????ꤵ?줿?ǥХ?????¸?ߤ??ʤ????????饤?? ???Ȥ? XOpenInputDevice ???Ȥäƥ????ץ󤷤Ƥ??ʤ??????Υ??顼?? ???ꤷ???ǥХ???????X ?Υ????ܡ??ɥǥХ????? X ?Υݥ??󥿥ǥХ????Ǥ? ???????ˤⵯ???롣
???Υ??顼?ϡ??????Τʤ??ǥХ????????ꤷ?? XGrabDeviceKey ?ꥯ?? ???Ȥ??Ԥä??????䡢???????????ʤ????ǥ??ե??????ǥХ????????ꤷ?????? ?˵????롣
???ꤵ?줿???ͤˡ??ꥯ?????Ȥε????ϰϤ??ۤ??Ƥ??????Τ????롣?????????? ???????????ϰϤ????ꤵ???Ƥ??ʤ????С????????η????????????Ƥ??????Ƥ??? ?Ϥ????????롣???????Ȥ????????????Ƥ??????????Ϥ??Υ??顼?򵯤??????Ȥ? ???롣
?????? Window ???ͤ????????????Ƥ??? Window ???ؤ??Ƥ??ʤ???

??Ϣ????

XAllowDeviceEvents(3X),
XGrabDevice(3X),
XGrabDeviceButton(3X),
Programming with Xlib

Release 6.5 X Version 11