native.h

来自「在ecos 下mingui 的移植开发」· C头文件 代码 · 共 59 行

H
59
字号
//// $Id: native.h,v 1.1 2000/11/26 07:18:59 ymwei Exp $//// native.h: the head file of native Low Level Input Engine //// Copyright (C) 2000,Song Lixin // Copyright (C) 2000, BluePoint Software.//// Created by Song Lixin, 2000/10/17//#ifndef GUI_IAL_NATIVE_H    #define GUI_IAL_NATIVE_H#ifdef __cplusplusextern "C" {#endif  /* __cplusplus */BOOL    InitNativeInput (INPUT* input, const char* mdev, const char* mtype);void    TermNativeInput (void);/* Interface to Mouse Device Driver*/typedef struct _mousedevice {	int	(*Open)(void);	void	(*Close)(void);	int	(*GetButtonInfo)(void);	void	(*GetDefaultAccel)(int *pscale,int *pthresh);	int	(*Read)(int *dx,int *dy,int *dz,int *bp);} MOUSEDEVICE;extern MOUSEDEVICE * mousedev;extern MOUSEDEVICE mousedev_GPM;extern MOUSEDEVICE mousedev_PS2;/* Interface to Keyboard Device Driver*/typedef struct _kbddevice {	int  (*Open)(void);	void (*Close)(void);	void (*GetModifierInfo)(int *modifiers);	int  (*Read)(unsigned char *buf,int *modifiers);} KBDDEVICE;extern KBDDEVICE kbddev;/* Mouse button bits*/#define	BUTTON_L	04#define BUTTON_M	02#define BUTTON_R	01#define 	MIN_COORD 	-32767#define		MAX_COORD	32767#ifdef __cplusplus}#endif  /* __cplusplus */#endif  /* GUI_IAL_NATIVE_H*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?