Scroll to navigation

XGrabDeviceButton(3X11) X FUNCTIONS XGrabDeviceButton(3X11)

̾??

XGrabDeviceButton, XUngrabDeviceButton - ??ĥ???ϥǥХ????ܥ????Υ?????/?????ֲ??????Ԥʤ?

????

XGrabDeviceButton(display, device, button, modifiers, modifier_device, grab_window,
owner_events, event_count, event_list, this_device_mode, other_devices_mode)

Display *display;
XDevice *device;
unsigned int button;
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; XUngrabDeviceButton(display, device, button, modifiers, modifier_device, grab_window)
Display *display;
XDevice *device;
unsigned int button;
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 ?????ꤹ?롣

????

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

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

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

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

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

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

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

XGrabDeviceButton ?ϥ??顼 BadClass, BadDevice, BadMatch, BadValue, BadWindow ?򵯤??????Ȥ????롣

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

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

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

?֤???

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

??Ϣ????

XAllowDeviceEvents(3X),
XGrabDevice(3X),
XGrabDeviceKey(3X),
Programming With Xlib

Release 6.5 X Version 11