IDirectInputEffectDriver::SetGain method (dinputd.h)

The IDirectInputEffectDriver::SetGain method sets the overall device gain.

Syntax

HRESULT SetGain(
  DWORD unnamedParam1,
  DWORD unnamedParam2
);

Parameters

unnamedParam1

Indicates the joystick ID number being used.

unnamedParam2

Specifies the new gain value (1 to 10,000).

Return value

Returns S_OK if successful; otherwise, returns an error code.

Requirements

Requirement Value
Target Platform Desktop
Header dinputd.h (include Dinputd.h)