Minor usage table renaming.
authorsl
Thu, 18 Dec 2014 22:43:32 +0100
changeset 31958ed29f977c
parent 30 8ce9bdc9c5b5
child 32 634ac38db225
Minor usage table renaming.
Form1.cs
HidEvent.cs
HidUsageTables.cs
     1.1 --- a/Form1.cs	Sun Dec 14 18:17:40 2014 +0100
     1.2 +++ b/Form1.cs	Thu Dec 18 22:43:32 2014 +0100
     1.3 @@ -136,10 +136,10 @@
     1.4                  //Display MCE button name
     1.5                  label1.Text = e.MceButton.ToString();
     1.6                  //Check if this is an HP extension
     1.7 -                if (Enum.IsDefined(typeof(Hid.UsageTables.HpMceButton), (ushort)e.MceButton))
     1.8 +                if (Enum.IsDefined(typeof(Hid.UsageTables.HpWindowsMediaCenterRemoteControl), (ushort)e.MceButton))
     1.9                  {
    1.10                      //Also display HP button name
    1.11 -                    label1.Text += " / HP:" + ((Hid.UsageTables.HpMceButton)e.MceButton).ToString();
    1.12 +                    label1.Text += " / HP:" + ((Hid.UsageTables.HpWindowsMediaCenterRemoteControl)e.MceButton).ToString();
    1.13                  }
    1.14  
    1.15                  processed = true;
     2.1 --- a/HidEvent.cs	Sun Dec 14 18:17:40 2014 +0100
     2.2 +++ b/HidEvent.cs	Thu Dec 18 22:43:32 2014 +0100
     2.3 @@ -28,6 +28,7 @@
     2.4  
     2.5          public ushort UsagePage { get; private set; }
     2.6          public ushort UsageCollection { get; private set; }
     2.7 +        public uint UsageId { get { return ((uint)UsagePage << 16 | (uint)UsageCollection); } }
     2.8          public List<ushort> Usages { get; private set; }
     2.9  
    2.10  
     3.1 --- a/HidUsageTables.cs	Sun Dec 14 18:17:40 2014 +0100
     3.2 +++ b/HidUsageTables.cs	Thu Dec 18 22:43:32 2014 +0100
     3.3 @@ -230,7 +230,7 @@
     3.4          /// <summary>
     3.5          /// Those codes come from experimenting with HP remotes.
     3.6          /// </summary>
     3.7 -        public enum HpMceButton: ushort
     3.8 +        public enum HpWindowsMediaCenterRemoteControl : ushort
     3.9          {
    3.10              /// <summary>
    3.11              /// Displays visual imagery that is synchronized to the sound of your music tracks.
    3.12 @@ -266,7 +266,7 @@
    3.13              /// Notably sent by the 'Eject' button of HP Windows Media Center Remote (TSGH-IR08).
    3.14              /// Also interpreted as 'Eject' action by SoundGraph iMON Manager in MCE mode (OrigenAE VF310).
    3.15              /// </summary>
    3.16 -            Eject = WindowsMediaCenterRemoteControl.Ext2,
    3.17 +            HpEject = WindowsMediaCenterRemoteControl.Ext2,
    3.18              /// <summary>
    3.19              /// Not sure what this should do.
    3.20              /// <para />