1.1 --- a/Form1.cs Thu Nov 06 21:57:53 2014 +0100
1.2 +++ b/Form1.cs Fri Nov 07 20:49:51 2014 +0100
1.3 @@ -132,7 +132,7 @@
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), (int)e.MceButton))
1.8 + if (Enum.IsDefined(typeof(Hid.UsageTables.HpMceButton), (ushort)e.MceButton))
1.9 {
1.10 //Also display HP button name
1.11 label1.Text += " / HP:" + ((Hid.UsageTables.HpMceButton)e.MceButton).ToString();