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

📄 mouhid.h

📁 YLP270的Windows CE5.0 bsp源码。
💻 H
字号:
//
// 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.
//

#ifndef _MOUHID_H_
#define _MOUSEHID_H_

#include "hidpi.h"
#include "hiddi.h"


#define HID_MOUSE_SIG 'uoMH' // "HKbd"


// Hid mouse data structure. One for each mouse TLC.
typedef struct _HID_MOUSE {
    DWORD dwSig;
    HID_HANDLE hDevice;
    PCHID_FUNCS pHidFuncs;
    PHIDP_PREPARSED_DATA phidpPreparsedData;
    HIDP_CAPS hidpCaps;
    HANDLE hThread;

    DWORD dwMaxUsages;
    PUSAGE puPrevUsages;
    PUSAGE puCurrUsages;
    PUSAGE puBreakUsages;
    PUSAGE puMakeUsages;

    USAGE usageWheel; // The usage used to get the wheel movement.

#ifdef DEBUG
    BOOL fhThreadInited;
#endif
} HID_MOUSE, *PHID_MOUSE;

#define VALID_HID_MOUSE( p ) \
   ( p && (HID_MOUSE_SIG == p->dwSig) )

#define HAS_NO_WHEEL 0


#define dim(x) (sizeof(x)/sizeof(x[0]))


#ifdef DEBUG

extern DBGPARAM dpCurSettings;

#define SETFNAME(name)          const TCHAR * const pszFname = (name)

#define ZONE_ERROR              DEBUGZONE(0)
#define ZONE_WARNING            DEBUGZONE(1)
#define ZONE_INIT               DEBUGZONE(2)
#define ZONE_FUNCTION           DEBUGZONE(3)

#define ZONE_USAGES             DEBUGZONE(4)

#else

#define SETFNAME(name)

#endif // DEBUG


#endif

⌨️ 快捷键说明

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