public void SetValue(InputDeviceDriverType value)
 {
     this.value = value;
     hasValue   = true;
 }
 public InputDeviceDriverType GetValueOrDefault(InputDeviceDriverType defaultValue)
 {
     return(hasValue ? value : defaultValue);
 }
 public OptionalInputDeviceDriverType(InputDeviceDriverType value)
 {
     this.value = value;
     hasValue   = true;
 }
 public void Clear()
 {
     value    = 0;
     hasValue = false;
 }
 public bool Equals(InputDeviceDriverType other)
 {
     return(hasValue &&
            value == other);
 }