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

📄 svkremap.cpp

📁 Ep93XX TionProV2 BSP
💻 CPP
字号:
//**********************************************************************
//                                                                      
// Filename: 	svkremap.cpp
//                                                                      
// Description: This file implements stubs for the virtual key remapping 
//              part of the platform independent code of the keyboard driver.
//              This is provided as a sample to platform driver writers 
//              and is expected to be able to be used without major 
//              modification on most hardware platforms.    
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Use of this source code is subject to the terms of the Cirrus end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to 
// use this source code. For a copy of the EULA, please see the 
// EULA.RTF on your install media.
//
// Copyright(c) Cirrus Logic Corporation 2005, All Rights Reserved
//                                                                      
//**********************************************************************

#include <windows.h>
#include <keybddr.h>


/*++

KeybdDriverRemapVKeyDown:

This is a stub routine which just sends back the same virtual key
that was passed in.


Return Value:

The number of keys mapped, which in this case is always 1.

--*/
int
KeybdDriverRemapVKeyDown(
	UINT32			VirtualKey,
	UINT32			VKeyBuf[16],
	KEY_STATE_FLAGS	KeyStateFlagsBuf[16]
	)
{
	VKeyBuf[0] = VirtualKey;
	KeyStateFlagsBuf[0] = KeyStateDownFlag;
	return 1;
}


/*++

KeybdDriverRemapKeyUp:

This is a stub routine which just sends back the same virtual key
that was passed in.


Return Value:

The number of keys mapped, which in this case is always 1.

--*/
int
KeybdDriverRemapVKeyUp(
	UINT32			VirtualKey,
	UINT32			VKeyBuf[16],
	KEY_STATE_FLAGS	KeyStateFlagsBuf[16]
	)
{
	VKeyBuf[0] = VirtualKey;
	KeyStateFlagsBuf[0] = 0;
	return 1;
}

⌨️ 快捷键说明

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