Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than Structures, prefix the name with the module name and a period.
RAWINPUT (Structures)
.
C# Definition:
/// <summary>
/// Value type for raw input.
/// </summary>
[StructLayout(LayoutKind.Explicit)]
public struct RawInput
{
/// <summary>Header for the data.</summary>
[FieldOffset(0)]
public RawInputHeader Header;
/// <summary>Mouse raw input data.</summary>
[FieldOffset(16)]
public RawInputMouse Mouse;
/// <summary>Keyboard raw input data.</summary>
[FieldOffset(16)]
public RawKeyboard Keyboard;
/// <summary>HID raw input data.</summary>
[FieldOffset(16)]
public RawInputHid Hid;
}
x86/x64 safe version:
/// <summary>
/// Contains the raw input from a device.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct RawInput
{
/// <summary>
/// Header for the data.
/// </summary>
public RawInputHeader Header;
public Union Data;
[StructLayout(LayoutKind.Explicit)]
public struct Union
{
/// <summary>
/// Mouse raw input data.
/// </summary>
[FieldOffset(0)]
public RawMouse Mouse;
/// <summary>
/// Keyboard raw input data.
/// </summary>
[FieldOffset(0)]
public RawKeyboard Keyboard;
/// <summary>
/// HID raw input data.
/// </summary>
[FieldOffset(0)]
public RawHID HID;
}
}
VB Definition:
''' <summary>Contains the raw input from a device.</summary>
<StructLayout(LayoutKind.Sequential)>
Public Structure RawInput
''' <summary>Header for the data.</summary>
Public Header As RAWINPUTHEADER
Public Data As Union
<StructLayout(LayoutKind.Explicit)>
Public Structure Union
''' <summary>Mouse raw input data.</summary>
<FieldOffset(0)>
Public Mouse As RAWMOUSE
''' <summary>Keyboard raw input data.</summary>
<FieldOffset(0)>
Public Keyboard As RAWKEYBOARD
''' <summary>HID raw input data.</summary>
<FieldOffset(0)>
Public HID As RAWHID
End Structure
End Structure
User-Defined Field Types:
None.
Notes:
On 64bit platform use offset size 24.
Function to read raw data from an input device such as a keyboard, mouse or other HID.
10/1/2018 11:10:07 AM - tkirk9155@gmail.com-74.4.30.222
Please edit this page!
Do you have...
helpful tips?
corrections to the existing content?
alternate definitions?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.