⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 drvkeyb.h

📁 可以学习
💻 H
字号:

#define KEYB_ALL_GPIO		(KEYB_GPIO_PLAY|KEYB_GPIO_RECORD)

// Key Status bit definition, only for software distuigushing the return key code 
// be careful this must be keep same sequence with the KeyCodeEvent.h key definition
// Key Status bit definition, only for software distuigushing the return key code 
#define KEYB_BIT_HOLD		0x100000000  //used as the hold key

//the key code must be continous to facilitate the software

#define KEYB_BIT_PLAY		0x000000001
#define KEYB_BIT_RECORD		0x000000002

#define KEYB_BIT_MENU		0x000000004
#define KEYB_BIT_VOLDOWN	0x000000008
#define KEYB_BIT_EQ			0x000000010
#define KEYB_BIT_VOLUP		0x000000020

#define KEYB_BIT_ESC		0x000000040
#define KEYB_BIT_NEXT		0x000000080
#define KEYB_BIT_MODE		0x000000100
#define KEYB_BIT_PREV		0x000000200


//SFC游戏按键定义
//常用键START、B、Y、UP、DOWN、LEFT、RIGHT
//非常用键A、X、TR、TL、SELECT

#define GAME_START	KEYB_BIT_ESC			//开始

#define GAME_B		KEYB_BIT_MODE			//发子弹
#define GAME_Y		KEYB_BIT_EQ				//放雷

#define GAME_UP		KEYB_BIT_VOLUP
#define GAME_DOWN	KEYB_BIT_VOLDOWN
#define GAME_LEFT	KEYB_BIT_PREV
#define GAME_RIGHT	KEYB_BIT_NEXT

#define GAME_A		KEYB_BIT_RECORD
#define GAME_X		KEYB_BIT_MENU

#define GAME_TR		0x000000400
#define GAME_TL		0x000000800
#define GAME_SELECT	KEYB_BIT_PLAY
#define GAME_EXIT   KEYB_BIT_ESC

⌨️ 快捷键说明

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