joyReleaseCapture function (joystickapi.h)
The joyReleaseCapture function releases the specified captured joystick.
Syntax
MMRESULT joyReleaseCapture(
UINT uJoyID
);
Parameters
uJoyID
Identifier of the joystick to be released. Valid values for uJoyID range from zero (JOYSTICKID1) to 15.
Return value
Returns JOYERR_NOERROR if successful or one of the following error values.
| Return code | Description |
|---|---|
|
The joystick driver is not present. |
|
The specified joystick device identifier uJoyID is invalid. |
|
The specified joystick device identifier uJoyID is invalid. |
Remarks
This method returns JOYERR_NOERROR when passed a valid joystick identifier that has not been captured.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 2000 Professional [desktop apps only] |
| Minimum supported server | Windows 2000 Server [desktop apps only] |
| Target Platform | Windows |
| Header | joystickapi.h (include Windows.h) |
| Library | Winmm.lib |
| DLL | Winmm.dll |
See also
Feedback
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see: https://aka.ms/ContentUserFeedback.
Submit and view feedback for