Posted on 2010-01-08 22:52
S.l.e!ep.¢% 閱讀(919)
評(píng)論(0) 編輯 收藏 引用 所屬分類:
RootKit
原始輸入[第一次翻譯msdn,保留原文,歡迎指正] 收藏
?
Raw Input
原始輸入
--------------------------------------------------------------------------------
This section describes how the system provides raw input to your application and how an application receives and processes that input. Raw input is sometimes referred to as generic input.
?
這一節(jié)描述了系統(tǒng)如何為你的應(yīng)用程序提供原始輸入以及應(yīng)用程序如何接受和處理這些輸入,原始輸入有時(shí)跟常規(guī)輸入相提并論。
Overviews
預(yù)覽
About Raw Input
關(guān)于Raw Input(原始輸入)
This topic discusses user-input from devices such as joysticks, touch screens, and microphones.
該主題討論了來(lái)自設(shè)備的用戶輸入,比如游戲桿,觸摸屏,以及麥克風(fēng)。
Using Raw Input
使用Raw Input
This section includes sample code for tasks relating to raw input.
這一節(jié)包含與原始輸入相關(guān)的任務(wù)示例代碼。
Functions
DefRawInputProc
The DefRawInputProc function calls the default raw input procedure to provide default processing for any
DefRawInputProc函數(shù)調(diào)用默認(rèn)的原始輸入處理過(guò)程為應(yīng)用程序沒(méi)有處理的原始輸入消息提供默認(rèn)的處理。
raw input messages that an application does not process. This function ensures that every message is
該函數(shù)確保每個(gè)消息都是處理過(guò)的。
processed. DefRawInputProc is called with the same parameters received by the window procedure.
DefRawInputProc 使用從窗體過(guò)程接受來(lái)的參數(shù)進(jìn)行調(diào)用。
GetRawInputBuffer
The GetRawInputBuffer function does a buffered read of the raw input data.
GetRawInputBuffer函數(shù)對(duì)原始輸入數(shù)據(jù)進(jìn)行帶緩沖區(qū)的讀操作。
GetRawInputData
The GetRawInputData function gets the raw input from the specified device.
GetRawInputData函數(shù)從指定的設(shè)備獲取原始輸入。
GetRawInputDeviceInfo
The GetRawInputDeviceInfo function gets information about the raw input device.
GetRawInputDeviceInfo函數(shù)獲取獲取原始輸入設(shè)備的相關(guān)信息。
GetRawInputDeviceList
The GetRawInputDeviceList function enumerates the raw input devices attached to the system.
GetRawInputDeviceList函數(shù)列舉連接在系統(tǒng)上的原始輸入設(shè)備。
GetRegisteredRawInputDevices
The GetRegisteredRawInputDevices function gets the information about the raw input devices for the current application.
GetRegisteredRawInputDevices獲取當(dāng)前應(yīng)用程序的原始輸入設(shè)備的相關(guān)信息。
RegisterRawInputDevices
The RegisterRawInputDevices function registers the devices that supply the raw input data.
RegisterRawInputDevices函數(shù)對(duì)提供原始輸入數(shù)據(jù)的設(shè)備進(jìn)行注冊(cè)。
Macros
GET_RAWINPUT_CODE_WPARAM
The GET_RAWINPUT_CODE_WPARAM macro gets the input code from wParam in WM_INPUT.
GET_RAWINPUT_CODE_WPARAM宏從WM_INPUT消息的wParam參數(shù)中獲取輸入碼。
NEXTRAWINPUTBLOCK
The NEXTRAWINPUTBLOCK macro gets the location of the next structure in an array of RAWINPUT structures.
NEXTRAWINPUTBLOCK宏獲取RAWINPUT結(jié)構(gòu)體數(shù)組中下一個(gè)結(jié)構(gòu)體的地址。
Notifications
WM_INPUT
The WM_INPUT message is sent to the window that is getting raw input.
獲得原始輸入后WM_INPUT消息被發(fā)送到窗口。
A window receives this message through its WindowProc function.
一個(gè)窗口通過(guò)他的WindowProc函數(shù)接收這個(gè)消息。
Structures
RAWHID
The RAWHID structure describes the format of the raw input from a Human Interface Device (HID).
RAWHID結(jié)構(gòu)描述從HID(Human Interface Device,人機(jī)接口設(shè)備)獲取的原始輸入的格式。
RAWINPUT
The RAWINPUT structure contains the raw input from a device.
RAWINPUT結(jié)構(gòu)包含從設(shè)備獲取的原始輸入。
RAWINPUTDEVICE
The RAWINPUTDEVICE structure defines information for the raw input devices.
RAWINPUTDEVICE結(jié)構(gòu)定義了原始輸入設(shè)備的信息。
RAWINPUTDEVICELIST
The RAWINPUTDEVICELIST structure contains information about a raw input device.
RAWINPUTDEVICELIST結(jié)構(gòu)包含原始輸入設(shè)備的相關(guān)信息。
RAWINPUTHEADER
The RAWINPUTHEADER structure contains the header information that is part of the raw input data.
RAWINPUTHEADER結(jié)構(gòu)包含了原始輸入數(shù)據(jù)的頭部信息。
RAWKEYBOARD
The RAWKEYBOARD structure contains information about the state of the keyboard.
RAWKEYBOARD結(jié)構(gòu)包含了鍵盤(pán)的狀態(tài)信息。
RAWMOUSE
The RAWMOUSE structure contains information about the state of the mouse.
RAWMOUSE結(jié)構(gòu)包含了鼠標(biāo)的狀態(tài)信息。
RID_DEVICE_INFO
The RID_DEVICE_INFO structure defines the raw input data coming from any device.
RID_DEVICE_INFO結(jié)構(gòu)定義了來(lái)自任意設(shè)備的原始輸入數(shù)據(jù)。
RID_DEVICE_INFO_HID
The RID_DEVICE_INFO_HID structure defines the raw input data coming from the specified HID.
RID_DEVICE_INFO_HID結(jié)構(gòu)定義了來(lái)自特定HID的原始輸入數(shù)據(jù)。
RID_DEVICE_INFO_KEYBOARD
The RID_DEVICE_INFO_KEYBOARD structure defines the raw input data coming from the specified keyboard.
RID_DEVICE_INFO_KEYBOARD結(jié)構(gòu)定義了來(lái)自特定鍵盤(pán)的原始輸入數(shù)據(jù)。
RID_DEVICE_INFO_MOUSE
The RID_DEVICE_INFO_MOUSE structure defines the raw input data coming from the specified mouse.
RID_DEVICE_INFO_MOUSE結(jié)構(gòu)定義了來(lái)自指定鼠標(biāo)的原始輸入數(shù)據(jù)。
本文來(lái)自CSDN博客,轉(zhuǎn)載請(qǐng)標(biāo)明出處:http://blog.csdn.net/bingdian37/archive/2006/12/07/1434149.aspx