Win32RawInput.cs
changeset 40 b3e177062849
parent 23 743cadfacda0
child 45 b044174a8d7b
     1.1 --- a/Win32RawInput.cs	Mon Dec 22 12:46:22 2014 +0100
     1.2 +++ b/Win32RawInput.cs	Tue Dec 23 21:17:17 2014 +0100
     1.3 @@ -190,7 +190,7 @@
     1.4  
     1.5  
     1.6      [StructLayout(LayoutKind.Sequential, Pack = 1)]
     1.7 -    internal struct RAWINPUTDEVICE
     1.8 +    public struct RAWINPUTDEVICE
     1.9      {
    1.10          [MarshalAs(UnmanagedType.U2)]
    1.11          public ushort usUsagePage;
    1.12 @@ -203,7 +203,7 @@
    1.13  
    1.14  
    1.15      [StructLayout(LayoutKind.Sequential, Pack = 1)]
    1.16 -    internal struct RAWINPUTHEADER
    1.17 +    public struct RAWINPUTHEADER
    1.18      {
    1.19          [MarshalAs(UnmanagedType.U4)]
    1.20          public int dwType;
    1.21 @@ -216,7 +216,7 @@
    1.22  
    1.23  
    1.24      [StructLayout(LayoutKind.Sequential, Pack = 1)]
    1.25 -    internal struct RAWHID
    1.26 +    public struct RAWHID
    1.27      {
    1.28          [MarshalAs(UnmanagedType.U4)]
    1.29          public uint dwSizeHid;
    1.30 @@ -228,7 +228,7 @@
    1.31  
    1.32  
    1.33      [StructLayout(LayoutKind.Sequential, Pack = 1)]
    1.34 -    internal struct BUTTONSSTR
    1.35 +    public struct BUTTONSSTR
    1.36      {
    1.37          [MarshalAs(UnmanagedType.U2)]
    1.38          public ushort usButtonFlags;
    1.39 @@ -238,7 +238,7 @@
    1.40  
    1.41  
    1.42      [StructLayout(LayoutKind.Explicit, Pack = 1)]
    1.43 -    internal struct RAWMOUSE
    1.44 +    public struct RAWMOUSE
    1.45      {
    1.46          [MarshalAs(UnmanagedType.U2)]
    1.47          [FieldOffset(0)]
    1.48 @@ -263,7 +263,7 @@
    1.49      }
    1.50  
    1.51      [StructLayout(LayoutKind.Sequential, Pack = 1)]
    1.52 -    internal struct RAWKEYBOARD
    1.53 +    public struct RAWKEYBOARD
    1.54      {
    1.55          [MarshalAs(UnmanagedType.U2)]
    1.56          public ushort MakeCode;
    1.57 @@ -281,7 +281,7 @@
    1.58  
    1.59  
    1.60      [StructLayout(LayoutKind.Explicit, Pack = 1)]
    1.61 -    internal struct RAWINPUT
    1.62 +    public struct RAWINPUT
    1.63      {
    1.64          [FieldOffset(0)]
    1.65          public RAWINPUTHEADER header;
    1.66 @@ -295,7 +295,7 @@
    1.67  
    1.68  
    1.69      [StructLayout(LayoutKind.Sequential, Pack = 1)]
    1.70 -    internal struct RID_DEVICE_INFO_MOUSE
    1.71 +    public struct RID_DEVICE_INFO_MOUSE
    1.72      {
    1.73          public uint dwId;
    1.74          public uint dwNumberOfButtons;
    1.75 @@ -305,7 +305,7 @@
    1.76  
    1.77  
    1.78      [StructLayout(LayoutKind.Sequential, Pack = 1)]
    1.79 -    internal struct RID_DEVICE_INFO_KEYBOARD
    1.80 +    public struct RID_DEVICE_INFO_KEYBOARD
    1.81      {
    1.82          public uint dwType;
    1.83          public uint dwSubType;
    1.84 @@ -316,7 +316,7 @@
    1.85      }
    1.86  
    1.87      [StructLayout(LayoutKind.Sequential, Pack = 1)]
    1.88 -    internal struct RID_DEVICE_INFO_HID
    1.89 +    public struct RID_DEVICE_INFO_HID
    1.90      {
    1.91          public uint dwVendorId;
    1.92          public uint dwProductId;
    1.93 @@ -326,7 +326,7 @@
    1.94      }
    1.95  
    1.96      [StructLayout(LayoutKind.Explicit, Pack = 1)]
    1.97 -    internal struct RID_DEVICE_INFO
    1.98 +    public struct RID_DEVICE_INFO
    1.99      {
   1.100          [FieldOffset(0)]
   1.101          public uint cbSize;