DeviceProperties.GetGranularity Method

Language:

Retrieves the input granularity. Granularity represents the smallest distance over which the object reports movement. Most axis objects have a granularity of one; that is, all values are possible. Some axes have a larger granularity. For example, the wheel axis on a mouse can have a granularity of 20; that is, all reported changes in position are multiples of 20. In other words, when the user turns the wheel slowly, the device reports a position of 0, then 20, then 40, and so on. This is a read-only property.

Definition

Visual Basic Public Function GetGranularity( _
    ByVal how As ParameterHow, _
    ByVal objectId As Integer _
) As Integer
C# public int GetGranularity(
    ParameterHow how,
    int objectId
);
C++ public:
int GetGranularity(
    ParameterHow how,
    int objectId
);
JScript public function GetGranularity(
    how : ParameterHow,
    objectId : int
) : int;

Parameters

how Microsoft.DirectX.DirectInput.ParameterHow
objectId System.Int32

Return Value

System.Int32


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center