Return Values

Errors are represented by negative values and cannot be combined. This table lists the failures that can be returned by all DirectInput functions. For a list of the error codes each function is capable of returning, see the individual function descriptions.

JOYERR_NOCANDO

The joystick driver cannot update the device information from the registry.

JOYERR_NOERROR

The request completed successfully.

JOYERR_REGISTRYNOTVALID

One or more registry joystick entries contain invalid data.

JOYERR_UNPLUGGED

The specified joystick is not connected to the computer.

MMSYSERR_BADDEVICEID

The specified joystick identifier is invalid.

MMSYSERR_INVALPARAM

An invalid parameter was passed.

MMSYSERR_NODRIVER

The joystick driver is not present.