Example #1
0
 public bool Equals(DeviceObjectId other)
 {
     return other._rawType == _rawType;
 }
Example #2
0
 public bool Equals(DeviceObjectId other)
 {
     return(other._rawType == _rawType);
 }
Example #3
0
 /// <summary>
 /// Gets the properties about a device object, such as a button or axis.
 /// </summary>
 /// <param name="objectId">The object type/instance identifier. This identifier is returned in the <see cref="DeviceObjectInstance.Type"/> member of the <see cref="DeviceObjectInstance"/> structure returned from a previous call to the <see cref="GetObjects()"/> method.</param>
 /// <returns>an ObjectProperties</returns>
 public ObjectProperties GetObjectPropertiesById(DeviceObjectId objectId)
 {
     return(new ObjectProperties(this, (int)objectId, PropertyHowType.Byid));
 }
Example #4
0
 /// <summary>
 /// Gets information about a device object, such as a button or axis.
 /// </summary>
 /// <param name="objectId">The object type/instance identifier. This identifier is returned in the <see cref="DeviceObjectInstance.ObjectId"/> member of the <see cref="DeviceObjectInstance"/> structure returned from a previous call to the <see cref="GetObjects()"/> method.</param>
 /// <returns>A <see cref="DeviceObjectInstance"/> information</returns>
 public DeviceObjectInstance GetObjectInfoById(DeviceObjectId objectId)
 {
     return(GetObjectInfo((int)objectId, PropertyHowType.Byid));
 }
Example #5
0
 /// <summary>
 /// Gets the properties about a device object, such as a button or axis.
 /// </summary>
 /// <param name="objectId">The object type/instance identifier. This identifier is returned in the <see cref="DeviceObjectInstance.Type"/> member of the <see cref="DeviceObjectInstance"/> structure returned from a previous call to the <see cref="GetObjects()"/> method.</param>
 /// <returns>an ObjectProperties</returns>
 public ObjectProperties GetObjectPropertiesById(DeviceObjectId objectId)
 {
     return new ObjectProperties(this, (int)objectId, PropertyHowType.Byid);
 }
Example #6
0
 /// <summary>
 /// Gets information about a device object, such as a button or axis.
 /// </summary>
 /// <param name="objectId">The object type/instance identifier. This identifier is returned in the <see cref="DeviceObjectInstance.ObjectId"/> member of the <see cref="DeviceObjectInstance"/> structure returned from a previous call to the <see cref="GetObjects()"/> method.</param>
 /// <returns>A <see cref="DeviceObjectInstance"/> information</returns>
 public DeviceObjectInstance GetObjectInfoById(DeviceObjectId objectId)
 {
     return GetObjectInfo((int)objectId, PropertyHowType.Byid);
 }