// <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)); }
/// <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)); }
public bool Equals(DeviceObjectId other) { return(other._rawType == _rawType); }