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

📄 keypadhwplat.cpp

📁 windows ce 6.0 keyboard driver
💻 CPP
字号:
//
// 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 OR INDEMNITIES.
//
//
// (C) Copyright 2006 Marvell International Ltd.
// All Rights Reserved

#include <windows.h>
#include "keypad_soc.h"


BOOL KbdPlatInterfaceParam(UINT32 *pulKpc, UINT32 *puKpKdi)
{
    if ((pulKpc == NULL) || (puKpKdi == NULL))
    {
        return FALSE;
    }

    *pulKpc =
        KPC_NUM_DIRECT_KEYS(2) |
        KPC_NUM_MATRIX_ROWS(8) |  
        KPC_NUM_MATRIX_COLUMNS(8) |
        KPC_BIT_MATRIX_SCAN_LINE0 | 
        KPC_BIT_MATRIX_SCAN_LINE1 | 
        KPC_BIT_MATRIX_SCAN_LINE2 | 
        KPC_BIT_MATRIX_SCAN_LINE3 | 
        KPC_BIT_MATRIX_SCAN_LINE4 | 
        KPC_BIT_MATRIX_SCAN_LINE5 | 
        KPC_BIT_MATRIX_SCAN_LINE6 | 
        KPC_BIT_MATRIX_SCAN_LINE7 | 
        KPC_BIT_AUTO_SCAN_ON_ACTIVITY |
        KPC_BIT_MATRIX_INTR_ENABLE | 
        KPC_BIT_MATRIX_KP_ENABLE | 
        KPC_BIT_DIRECT_DEBOUNCE_CS_DIRECT |
        KPC_BIT_ROTARY_ENCODER_ZERO_DEB |
        KPC_BIT_DIRECT_KP_INTR_ENABLE | 
        KPC_BIT_DIRECT_KP_ENABLE;

    *puKpKdi = 
        KPKDI_DIRECT_KEY_DEBOUNCE_INTERVAL(0) | 
        KPKDI_MATRIX_KEY_DEBOUNCE_INTERVAL(30);

    return TRUE;
}

⌨️ 快捷键说明

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