📄 pl050keybd.hpp
字号:
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft 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 LICENSE.RTF on your
// install media.
//
/* -*-C-*-
*
* 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.
*
* Release Status:OS005-SW-70002-r0p0-00REL0
* $Copyright:
* ----------------------------------------------------------------
* This confidential and proprietary software may be used only as
* authorised by a licensing agreement from ARM Limited
* (C) COPYRIGHT 2004 ARM Limited
* ALL RIGHTS RESERVED
* The entire notice above must be reproduced on all authorised
* copies and copies may only be made to the extent permitted
* by a licensing agreement from ARM Limited.
* ----------------------------------------------------------------
* File: pl050keybd.hpp,v
* Revision: 1.2
* ----------------------------------------------------------------
* $
*/
#ifndef _pl050keybd_hpp
#define _pl050keybd_hpp
#include <windows.h>
#include <keybddr.h>
/*
* we have a slightly different take on the PDD call to process
* a key event (it is passed the scancode, rather than having to
* call the generic port code to read it), so declare it here
*/
extern "C" UINT WINAPI pl050KeybdPdd_GetEventEx2(UINT32 rguiScanCode[16],
BOOL rgfKeyUp[16],
UINT8 ui8ScanCode);
class pl050Port;
class pl050Keybd
{
pl050Port *m_pp2p;
public:
bool Initialise(pl050Port *pp2p);
bool IsrThreadStart(void);
bool IsrThreadProc(void);
friend UINT WINAPI pl050KeybdPdd_GetEventEx2(UINT32 rguiScanCode[16],
BOOL rgfKeyUp[16],
UINT8 ui8ScanCode);
friend void WINAPI KeybdPdd_ToggleKeyNotification(KEY_STATE_FLAGS KeyStateFlags);
friend void KeybdDriverInitializeEx(PFN_KEYBD_EVENT_CALLBACK_EX pfnKeybdEventCallbackEx);
friend void pl050KeybdIsrThread(pl050Keybd *pp2k);
};
#endif /* ndef _pl050keybd_hpp */
/* EOF pl050keybd.hpp */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -