Share via


SetGain routine

The SetGain callback sets the overall device gain.

Syntax

HRESULT SetGain(
   DWORD dwDeviceID,
   DWORD dwGain
);

Parameters

  • dwDeviceID
    Indicates the external joystick number being addressed.

  • dwGain
    Indicates the device gain level. This value can be a number between 1 and 10,000.

Return value

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

 

 

Send comments about this topic to Microsoft