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

📄 icekeyboard.h

📁 使用stl技术,(还没看,是听说的)
💻 H
字号:
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
 *	Contains key codes.
 *	\file		IceKeyboard.h
 *	\author		Pierre Terdiman
 *	\date		April, 4, 2000
 */
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Include Guard
#ifndef __ICEKEYBOARD_H__
#define __ICEKEYBOARD_H__

	class ICECORE_API KeyboardMapping
	{
		public:
		// Constructor/Destructor
								KeyboardMapping();
								~KeyboardMapping();

				bool			CreateAccelerator(udword keycode, const char* command);
				bool			CreateAccelerator(const char* key, const char* command);
				void			DeleteAccelerators();
				const String*	GetCommand(udword keycode);
		protected:
				SymbolicList	mList;
				String			mInternal;
	};

	ICECORE_API udword			GetKeyCode(const char* key);
	// For Windows
	ICECORE_API bool			IsKeyPressed(udword key);
	// For a DOS console
	ICECORE_API bool			IsConsoleKeyPressed();
	ICECORE_API int				GetConsoleKeyPressed();

	// Accelerators
	ICECORE_API bool			SetMapping(const KeyboardMapping* mapping);
	ICECORE_API bool			CreateAccelerator(udword keycode, const char* command);
	ICECORE_API bool			CreateAccelerator(const char* key, const char* command);
	ICECORE_API void			DeleteAccelerators();
	ICECORE_API const String*	GetCommand(udword keycode);

#endif // __ICEKEYBOARD_H__

⌨️ 快捷键说明

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