---
name: "gii_cmddata_getdevinfo"
section: "3"
platform: "linux"
package: "libgii1"
version: "1:1.0.2-4.1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/gii_cmddata_getdevinfo"
---

# gii\_cmddata\_getdevinfo(3)

GII device capabilities description

## NAME

**gii\_cmddata\_getdevinfo** - GII device capabilities description

## SYNOPSIS

```
#include <ggi/events.h>
typedef struct {
    char              longname[75];
    char              shortname[5];
    gii_event_mask    can_generate;
    uint32_t          num_button;
    uint32_t          num_axes;
} gii_cmddata_getdevinfo;
```

## DESCRIPTION

This structure describe an input device.

## STRUCTURE MEMBERS

- **longname**

  A human-redable NULL terminated string identifying the device.

- **shortname**

  A 4 chars(+null) identifier for the device.

- **can\_generate**

  This mask tells what kind of events this device can generate.

- **num\_buttons**

  The number of button this device has.  **GII\_NUM\_UNKNOWN** means that the number of button is not known.

- **num\_axes**

  The number of axes this device has.

## SEE ALSO

`giiQueryDeviceInfo(3)`
