# HG changeset patch # User StephaneLenclud # Date 1422911535 -3600 # Node ID 1eb878505ae1e126fee6722f10ca53ad2302aaef # Parent bd068db7779a4fe0de13489ac0d471e6287da904 Adding editor config and some Win32 struct. diff -r bd068db7779a -r 1eb878505ae1 .editorconfig --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.editorconfig Mon Feb 02 22:12:15 2015 +0100 @@ -0,0 +1,12 @@ +; Top-most EditorConfig file +root = true + +; Unix-style newlines +[*] +end_of_line = crlf + +; 4-column tab indentation +[*.cs] +indent_style = tab +indent_size = 4 + diff -r bd068db7779a -r 1eb878505ae1 Win32RawInput.cs --- a/Win32RawInput.cs Mon Dec 29 11:45:33 2014 +0100 +++ b/Win32RawInput.cs Mon Feb 02 22:12:15 2015 +0100 @@ -178,12 +178,18 @@ public const int FAPPCOMMAND_MASK = 0xF000; public const int FAPPCOMMAND_MOUSE = 0x8000; public const int FAPPCOMMAND_KEY = 0; - public const int FAPPCOMMAND_OEM = 0x1000; - + public const int FAPPCOMMAND_OEM = 0x1000; } [StructLayout(LayoutKind.Sequential, Pack = 1)] + public struct RAWINPUTDEVICELIST + { + public IntPtr hDevice; + public uint dwType; + } + + [StructLayout(LayoutKind.Sequential, Pack = 1)] public struct RAWINPUTDEVICE { [MarshalAs(UnmanagedType.U2)]