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

📄 s3c2410kbd.hpp

📁 我自己编译的armv4i wince60模拟器的bps源文件,已经验证可以使用,欢迎下载
💻 HPP
字号:
//
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -