pl050keybd.hpp

来自「WinCE 3.0 BSP, 包含Inter SA1110, Intel_815」· HPP 代码 · 共 58 行

HPP
58
字号
/* -*-C-*-
 *
 * $Revision: 1.3 $
 *   $Author: kwelton $
 *     $Date: 2000/06/14 03:38:21 $
 *
 * 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.
 *
 * Copyright (c) 1995-1998  Microsoft Corporation
 * Copyright (c) 2000 ARM Limited
 * All Rights Reserved
 */

#ifndef integrator_pl050keybd_hpp
#define integrator_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" INT WINAPI pl050KeybdPdd_GetEventEx(UINT32 VirtualKeys[16],
                                               UINT32 ScanCodes[16],
                                               KEY_STATE_FLAGS KeyEvents[16],
                                               UINT8 ui8ScanCode);

class pl050Port;

class pl050Keybd
{
    pl050Port *m_pp2p;

  public:
    bool Initialise(pl050Port *pp2p);
    bool IsrThreadStart(void);

    bool IsrThreadProc(void);

    friend int WINAPI pl050KeybdPdd_GetEventEx(UINT32 VKeyBuf[16],
                                               UINT32 ScanCodeBuf[16],
                                               KEY_STATE_FLAGS KeyStateFlagsBuf[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 integrator_pl050keybd_hpp */

/* EOF pl050keybd.hpp */

⌨️ 快捷键说明

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