DataMainItemFlags.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #region License
  2. /* Copyright 2011 James F. Bellinger <http://www.zer7.com/software/hidsharp>
  3. Permission to use, copy, modify, and/or distribute this software for any
  4. purpose with or without fee is hereby granted, provided that the above
  5. copyright notice and this permission notice appear in all copies.
  6. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  7. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  8. MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  9. ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  10. WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  11. ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  12. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
  13. #endregion
  14. using System;
  15. namespace HidSharp.ReportDescriptors
  16. {
  17. [Flags]
  18. public enum DataMainItemFlags : uint
  19. {
  20. /// <summary>
  21. /// No flags are set.
  22. /// </summary>
  23. None = 0,
  24. /// <summary>
  25. /// Constant values cannot be changed.
  26. /// </summary>
  27. Constant = 1 << 0,
  28. /// <summary>
  29. /// Each variable field corresponds to a particular value.
  30. /// The alternative is an array, where each field specifies an index.
  31. /// For example, with eight buttons, a variable field would have eight bits.
  32. /// An array would have an index of which button is pressed.
  33. /// </summary>
  34. Variable = 1 << 1,
  35. /// <summary>
  36. /// Mouse motion is in relative coordinates.
  37. /// Most sensors -- joysticks, accelerometers, etc. -- output absolute coordinates.
  38. /// </summary>
  39. Relative = 1 << 2,
  40. /// <summary>
  41. /// The value wraps around in a continuous manner.
  42. /// </summary>
  43. Wrap = 1 << 3,
  44. Nonlinear = 1 << 4,
  45. NoPreferred = 1 << 5,
  46. NullState = 1 << 6,
  47. Volatile = 1 << 7,
  48. BufferedBytes = 1 << 8
  49. }
  50. }