📄 xhplib.h
字号:
#define KB_Swiss_German 6 /* For use with HP46020AP : HIL-ID(lower 5 bits)=19h */#define KB_Canada_French 7 /* For use with HP46021AC */#define KB_UK_English 8 /* For use with HP46021AU */#define KB_Finnish 9 /* For use with HP46021AX */#define KB_Belgian 10 /* For use with HP46021AW */#define KB_Swiss_German2 11 /* For use with HP46021AP */#define KB_Euro_Spanish 12 /* For use with HP46021AE */#define KB_Swiss_French2 13 /* For use with HP46021AQ */#define KB_T_Chinese 14 /* Trad. Chinese (ROC): For HP46021W#ZAA */#define KB_S_Chinese 15 /* Simp. Chinese (PROC): For HP40621W#ZAC */#define KB_German 16 /* For use with HP46021AD */#define KB_Swedish 17 /* For use with HP46021AS */#define KB_Dutch 18 /* For use with HP46021AH */#define KB_Korean 19 /* Korean: For HP40621W#ZAB */ #define KB_Italian 20 /* For use with HP46021AZ */#define KB_Canada_English 21 /* For use with HP46021AL */#define KB_Swiss_French 22 /* For use with HP46020AQ : HIL-ID(lower 5 bits)=03h */#define KB_Japanese 23 /* For use with HP46021W#ZAL */ /* ITF ethereal keyboards */#define KB_Hebrew 100 /* Hebrew Keymap - NO KEYBOARD */#define KB_Cyrillic 101 /* Cyrillic Keymap - NO KEYBOARD */#define KB_Czech 102 /* Czech Keymap - NO KEYBOARD */#define KB_Hungarian 103 /* Hungarian Keymap - NO KEYBOARD */#define KB_SerboCroatian 104 /* SerboCroatian Keymap - NO KEYBOARD */#define KB_Polish 105 /* Polish Keymap - NO KEYBOARD */#define KB_Romanian 106 /* Romanian Keymap - NO KEYBOARD */#define KB_Rumanian 106 /* alternate spelling */#define KB_Turkish 107 /* Turkey Keymap - NO KEYBOARD */#define KB_Greek 108 /* Greek Keymap - NO KEYBOARD */#define KB_Arabic 109 /* Greek Keymap - NO KEYBOARD */ /* PS2 ethereal keyboards (which may never exist) */#define KB_PS2_Hebrew 150 /* Hebrew Keymap - NO KEYBOARD */#define KB_PS2_Cyrillic 151 /* Cyrillic Keymap - NO KEYBOARD */#define KB_PS2_Czech 152 /* Czech Keymap - NO KEYBOARD */#define KB_PS2_Hungarian 153 /* Hungarian Keymap - NO KEYBOARD */#define KB_PS2_SerboCroatian 154 /* SerboCroatian Keymap - NO KEYBOARD */#define KB_PS2_Polish 155 /* Polish Keymap - NO KEYBOARD */#define KB_PS2_Romanian 156 /* Romanian Keymap - NO KEYBOARD */#define KB_PS2_Rumanian 156 /* alternate spelling */#define KB_PS2_Turkish 157 /* Turkey Keymap - NO KEYBOARD */#define KB_PS2_Greek 158 /* Greek Keymap - NO KEYBOARD */#define KB_PS2_Arabic 159 /* Greek Keymap - NO KEYBOARD *//* ******************** HP hil PS2 keyboards *************** */#define KB_PS2_US_English 60#define KB_PS2_Latin_Spanish 61#define KB_PS2_Katakana 62#define KB_PS2_Danish 63#define KB_PS2_French 64#define KB_PS2_Norwegian 65#define KB_PS2_Swiss_German 66#define KB_PS2_Canada_French 67#define KB_PS2_UK_English 68#define KB_PS2_Finnish 69#define KB_PS2_Belgian 70#define KB_PS2_Swiss_German2 71#define KB_PS2_Euro_Spanish 72#define KB_PS2_Swiss_French2 73#define KB_PS2_T_Chinese 74#define KB_PS2_S_Chinese 75#define KB_PS2_German 76#define KB_PS2_Swedish 77#define KB_PS2_Dutch 78#define KB_PS2_Korean 79#define KB_PS2_Italian 80#define KB_PS2_Canada_English 84#define KB_PS2_Swiss_French 88#define KB_PS2_Japanese 89#define KB_NULL 201 /* Device that needs a null keymap, modmap */#define KB_BUTTON_BOX 202 /* HP button box(es) */#define KB_BARCODE_WAND 203 /* HP barcode reader */#define KB_HPUNSUPP -1 /* For unsupported HP keyboards */#define KB_NONHP -2 /* For non-HP keyboards (for internal use) */typedef int KEYBOARD_ID;/* Function definitions for clients. */Status XHPSetKeyboardMapping();KEYBOARD_ID XHPGetKeyboardID();/* End of entries required for XHPSetKeyboardMapping. */typedef struct { unsigned char * iso7to8; unsigned char * iso8to7; char ** mute8to7; unsigned int mutekey;} _XHP_transptrs;#define _XHP_ISO7To8(status,index) \ ((_XHP_transptrs *) ((status)->compose_ptr)) -> iso7to8 [index]#define _XHP_ISO8To7(status,index) \ ((_XHP_transptrs *) ((status)->compose_ptr)) -> iso8to7 [index]#define _XHP_MUTE8To7(status,index) \ ((_XHP_transptrs *) ((status)->compose_ptr)) -> mute8to7[index-128]#define XHPInputInit(dpy,status) XHPNlioctl(dpy,status,K16_EXEC_PROC)#define XHPSetKbdMapInit(dpy,kbd,frc,status) \ { \ XHPNlioctl(dpy,status,K16_KILL_PROC); \ XHPSetKeyboardMapping(dpy,kbd,frc); \ XHPNlioctl(dpy,status,K16_EXEC_PROC); \ } /* These are the tags in the compose structure for the different convert * routines */#define _XHP_INP_NLIO 0x81000000#define _XHP_INP_ROM8 0x82000000#define _XHP_INP_7SUB 0x84000000/* Function definitions for client programs */PtrFuncInt XHPSetErrorHandler();XFontStruct *XHPGet16bitMixedFontStruct();#ifdef _NO_PROTOextern PtrFuncInt XHPGetEurasianCvt() ;extern int XGetHpKeyboardId() ;extern int XHPAcknowledge() ;extern int XHPDeviceAutoRepeatOff() ;extern int XHPDeviceAutoRepeatOn() ;extern int XHPChangeDeviceControl() ;extern int XHPChangeDeviceKeyMapping() ;extern int XHPDisableReset() ;extern int XHPDisableReset() ;extern int XHPFreeDeviceList() ;extern XHPTimeCoord * XHPGetDeviceMotionEvents() ;extern KeySym * XHPGetDeviceKeyMapping() ;extern XModifierKeymap * XHPGetDeviceModifierMapping() ;extern int XHPGetServerMode() ;extern int XHPGrabDeviceButton() ;extern int XHPGrabDeviceKey() ;extern int XHPGrabReset() ;extern int XHPGrabDevice() ;extern int XHPGetCurrentDeviceMask() ;extern int XHPGetExtEventMask() ;extern int XHPGetDeviceFocus() ;extern int XHPGetDeviceControl() ;extern XHPDeviceList * XHPListInputDevices() ;extern int XHPPrompt() ;extern XHPFilterId XHPRegisterEventFilter();extern int XHPSetInputDevice() ;extern int XHPSelectExtensionEvent() ;extern int XHPUngrabDevice() ;extern int XHPUngrabDeviceButton() ;extern int XHPUngrabDeviceKey() ;extern int XHPSetDeviceFocus() ;extern int XHPSetDeviceModifierMapping() ;extern Cursor XHPGetWindowCursor() ;extern int XHPConvertLookup() ;extern int input_isolatin1() ;extern KEYBOARD_ID XHPGetKeyboardID() ;extern void XHPUpdateKIDList() ;extern KEYBOARD_ID XHPGetCvtLang() ;extern KEYBOARD_ID XHPGetHILandCvt() ;extern int _XHPInitKbdState() ;extern int _XHP_alt_on() ;extern void _XHP_GetAltKeys() ;extern void _XHP_SetAltKeys() ;extern int _XHPIgnoreLang() ;extern int XHPInputRoman8() ;extern int XHPInputLatin1() ;extern int XHPInputISO8859_8() ;#elseextern PtrFuncInt XHPGetEurasianCvt( Display *dpy) ;extern int XGetHpKeyboardId( register Display *dpy, unsigned char *kbd_id) ;extern int XHPAcknowledge( register Display *dpy, XID device, int ack) ;extern int XHPDeviceAutoRepeatOff( register Display *dpy, XID device) ;extern int XHPDeviceAutoRepeatOn( register Display *dpy, XID device, int rate) ;extern int XHPChangeDeviceControl( register Display *dpy, XID deviceid, unsigned long mask, XHPDeviceControl *vlist) ;extern int XHPChangeDeviceKeyMapping( register Display *dpy, XID deviceid, int first, int syms_per_code, KeySym *keysyms, int count) ;extern int XHPDisableReset( register Display *dpy );extern int XHPDisableReset( register Display *dpy );extern int XHPFreeDeviceList( XHPDeviceList *list) ;extern XHPTimeCoord * XHPGetDeviceMotionEvents( register Display *dpy, XID deviceid, Window window, Time start, Time stop, int *nEvents) ;extern KeySym * XHPGetDeviceKeyMapping( register Display *dpy, XID deviceid, KeyCode first, int keycount, int *syms_per_code) ;extern XModifierKeymap * XHPGetDeviceModifierMapping( register Display *dpy, XID deviceid) ;extern int XHPGetServerMode( register Display *dpy, register int screen) ;extern int XHPGrabDeviceButton( register Display *dpy, XID device, unsigned int button, unsigned int modifiers, Window grab_window, Bool owner_events, unsigned int event_mask, int pointer_mode, int keyboard_mode) ;extern int XHPGrabDeviceKey( register Display *dpy, XID device, unsigned int key, unsigned int modifiers, Window grab_window, Bool owner_events, int pointer_mode, int keyboard_mode) ;extern int XHPGrabReset( register Display *dpy, Atom *type) ;extern int XHPGrabDevice( register Display *dpy, XID id, Window window, Bool ownerEvents, int pointer_mode, int device_mode, Time time) ;extern int XHPGetCurrentDeviceMask( register Display *dpy, Window w, XID device, Mask *mask) ;extern int XHPGetExtEventMask( register Display *dpy, long evconst, int *type, Mask *mask) ;extern int XHPGetDeviceFocus( register Display *dpy, XID deviceid, Window *focus, int *revert_to) ;extern int XHPGetDeviceControl( register Display *dpy, XID deviceid, XHPDeviceState *values) ;extern XHPDeviceList * XHPListInputDevices( register Display *dpy, int *ndevices) ;extern int XHPPrompt( register Display *dpy, XID device, int prompt) ;extern XHPFilterId XHPRegisterEventFilter( register Display *dpy, Window window, int device, Mask mask, int (*routine)(), int state_info) ;extern int XHPSetInputDevice( register Display *dpy, register XID id, register int mode) ;extern int XHPSelectExtensionEvent( register Display *dpy, Window w, XID device, Mask mask) ;extern int XHPUngrabDevice( register Display *dpy, XID device, Time time) ;extern int XHPUngrabDeviceButton( register Display *dpy, XID device, unsigned int button, unsigned int modifiers, Window grab_window) ;extern int XHPUngrabDeviceKey( register Display *dpy, XID device, unsigned int key, unsigned int modifiers, Window grab_window) ;extern int XHPSetDeviceFocus( register Display *dpy, XID deviceid, Window focus, int revert_to, Time time) ;extern int XHPSetDeviceModifierMapping( register Display *dpy, XID deviceid, XModifierKeymap *modmap) ;extern Cursor XHPGetWindowCursor( register Display *dpy, Window window) ;extern int XHPConvertLookup( register XKeyEvent *event, char *buffer, int nbytes, KeySym *keysym, XComposeStatus *status, int (*convert_routine)()) ;extern int input_isolatin1( KeySym keysym, int modifiers, char *buffer_return, int bytes_buffer, XComposeStatus *status_in_out) ;extern KEYBOARD_ID XHPGetKeyboardID( Display *dpy) ;extern void XHPUpdateKIDList( Display *dpy, KEYBOARD_ID kbd_id) ;extern KEYBOARD_ID XHPGetCvtLang( Display *dpy) ;extern KEYBOARD_ID XHPGetHILandCvt( Display *dpy) ;extern int _XHPInitKbdState( Display *dpy) ;extern int _XHP_alt_on( Display *dpy) ;extern void _XHP_GetAltKeys( Display *dpy, K16_state *state) ;extern void _XHP_SetAltKeys( Display *dpy, K16_state *state) ;extern int _XHPIgnoreLang( int value) ;extern int XHPInputRoman8( Display *display, KeySym *keysym, int modifiers, unsigned char *buffer_return, int bytes_buffer, register XComposeStatus *status_in_out) ;extern int XHPInputLatin1( Display *display, register KeySym *keysym, int modifiers, unsigned char *buffer_return, int bytes_buffer, register XComposeStatus *status_in_out) ;extern int XHPInputISO8859_8( Display *display, KeySym *keysym, unsigned int modifiers, char *buffer_return, int bytes_buffer, XComposeStatus *status_in_out) ;#endif /* _NO_PROTO */#ifdef __cplusplus} /* Close scope of 'extern "C"' declaration that encloses file */#endif /* __cplusplus */#endif /* XHPLIB_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -