s3c2410kbd.hpp

来自「我自己编译的armv4i wince60模拟器的bps源文件,已经验证可以使用,」· HPP 代码 · 共 105 行

HPP
105
字号
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this sample source code is subject to the terms of the Microsoft
// license agreement under which you licensed this sample source code. If
// you did not accept the terms of the license agreement, you are not
// authorized to use this sample source code. For the terms of the license,
// please see the license agreement between you and Microsoft or, if applicable,
// see the LICENSE.RTF on your install media or the root of your tools installation.
// THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES.
//
/*++
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) 2002. Samsung Electronics, co. ltd  All rights reserved.

Module Name:  

Abstract:

    This file implements the S3C2410 Keyboard function

rev:
    2002.4.4    : First S3C2410 version (kwangyoon LEE, kwangyoon@samsung.com)

    2002.1.31   : Windows CE port (kwangyoon LEE, kwangyoon@samsung.com)

Notes: 
--*/

#ifndef __PS2KEYBD_HPP_INCLUDED__
#define __PS2KEYBD_HPP_INCLUDED__


#include <windows.h>

#define MATRIX_PDD 8

class Ps2Port;

class Ps2Keybd
    {
    HANDLE  m_hevInterrupt;
    HANDLE  m_ResumeEvent;

public:  
    BOOL
    Initialize(
        void
        );

    BOOL
    IsrThreadStart(
        void
        );

    BOOL
    IsrThreadProc(
        void
        );

    BOOL
    KeybdPowerOff(
        void
        );

    BOOL
    KeybdPowerOn(
        void
        );

    void ResumeThreadProc(
        void
        );

friend
    void
    KeybdPdd_PowerHandler(
        BOOL bOff
        );

friend
    int
    WINAPI
    KeybdPdd_GetEventEx(
        UINT32          VKeyBuf[16],
        UINT32          ScanCodeBuf[16],
        KEY_STATE_FLAGS KeyStateFlagsBuf[16]
        );

friend
    void
    WINAPI
    KeybdPdd_ToggleKeyNotification(
        KEY_STATE_FLAGS KeyStateFlags
        );

    };


#endif

⌨️ 快捷键说明

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