> For the complete documentation index, see [llms.txt](https://sradnickdev.gitbook.io/netpad/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sradnickdev.gitbook.io/netpad/manual/components/input/netpadaccelerometer.md).

# NetPadAccelerometer

The `NetPadAccelerometer` class is a networked controller component that captures and synchronizes accelerometer data between a client device and a server. It inherits from `NetPadClientController` and uses `AccelerometerMessage` for data transfer.

* **Identifier**: A unique string to identify and separate different instances.
* **Threshold**: Minimum change for accelerometer data to be considered updated.
* **IsSupported()**: Checks if the device supports accelerometer functionality.
* **UpdateData(AccelerometerMessage message)**: Updates the `AccelerometerMessage` with the latest accelerometer data.
* **HasChanged()**: Determines if accelerometer data has changed beyond the specified threshold.

\
`NetPadAccelerometer` ensures efficient use of network resources and accurate synchronization of device accelerometer information in networked games or applications.
