###### (This is the legacy documentation for SDL2, the previous stable version; [SDL3](https://wiki.libsdl.org/SDL3/) is the current stable version.) # SDL_hid_close Close a HID device. ## Header File Defined in [SDL_hidapi.h](https://github.com/libsdl-org/SDL/blob/SDL2/include/SDL_hidapi.h) ## Syntax ```c void SDL_hid_close(SDL_hid_device *dev); ``` ## Function Parameters | | | | | ---------------------------------- | ------- | ------------------------------------------------------------- | | [SDL_hid_device](SDL_hid_device) * | **dev** | A device handle returned from [SDL_hid_open](SDL_hid_open)(). | ## Version This function is available since SDL 2.0.18. ---- [CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction), [CategoryHIDAPI](CategoryHIDAPI)