---
name: "JSClose"
section: "3"
platform: "linux"
package: "libjsw-dev"
version: "1:1.5.5-1+b1"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/JSClose"
---

# JSClose(3)

Joystick device closing

## NAME

JSClose - Joystick device closing

## SYNTAX

\#include \<jsw.h\>

int JSClose(\
\
         js\_data\_struct \**jsd*\
 )

## ARGUMENTS

- *jsd*

  Specifies the pointer to the joystick data structure, which should have been set up by a prior call to [JSInit(3)](/JSInit/3.md).

## DESCRIPTION

The JSClose function closes the joystick device referenced by the given *jsd* structure. Once this function has been called, the given *jsd* structure should never be referenced again. The structure itself will not be deallocated, it is up to the calling function to do that.

## SEE ALSO

[JSIntro(3)](/JSIntro/3.md) [JSInit(3)](/JSInit/3.md) [JSUpdate(3)](/JSUpdate/3.md)
