| deviceId | number | Yes | ID of the input device. |
| callback | AsyncCallback<[InputDeviceData](#inputdevicedata)> | Yes | Callback used to return the result, which is an **InputDeviceData** object.|
**Example**
```js
// Obtain the name of the device whose ID is 1.
inputDevice.getDevice(1,(inputDevice)=>{
console.log("The device name is: "+inputDevice.name);
| id | number | Unique identifier of an input device. If the same physical device is repeatedly inserted and removed, its ID changes. |
| id | number | Unique ID of the input device. If the same physical device is repeatedly inserted and removed, its ID changes. |
| name | string | Name of the input device. |
| name | string | Name of the input device. |
| sources | Array<[SourceType](#sourcetype)> | Source types of the input device. For example, if a keyboard is attached with a touchpad, the device has two input sources: keyboard and touchpad. |
| sources | Array<[SourceType](#sourcetype)> | Source type of the input device. For example, if a keyboard is attached with a touchpad, the device has two input sources: keyboard and touchpad.|
| axisRanges | Array<[axisRanges](#axisrange)> | Axis information of the input device. |
| axisRanges | Array<[axisRanges](#axisrange)> | Axis information of the input device. |
| bus | number | Bus type of the input device. |
| bus<sup>9+</sup> | number | Bus type of the input device. |
| product | number | Product information of the input device. |
| product<sup>9+</sup> | number | Product information of the input device. |
| vendor | number | Vendor information of the input device. |
| vendor<sup>9+</sup> | number | Vendor information of the input device. |
| version | number | Version information of the input device. |
| version<sup>9+</sup> | number | Version information of the input device. |
| phys | string | Physical address of the input device. |
| phys<sup>9+</sup> | string | Physical address of the input device. |
| uniq | string | Unique ID of the input device. |
| uniq<sup>9+</sup> | string | Unique ID of the input device. |
## AxisType<sup>9+</sup>
## AxisType
Defines the axis type of an input device.
Defines the axis type of an input device, which is **NULL**.