QtCraft API C++ classes QML types Handbook

QcGamepadInfo Struct

A connected pad: the id stays the same while it is connected and is not reused by the source. More...

Header: #include <clientcore/input/QcGamepadState.h>

Public Variables

QString guid
int id
QString name
bool rumble
QcGamepadType type

Detailed Description

Member Variable Documentation

QString QcGamepadInfo::guid

The pad's model as SDL's GUID (32 hex digits; the same for every pad of one model on one connection type): the key of its stored profile (decision E-611). Empty when unknown.

int QcGamepadInfo::id

The pad's id while it is connected.

QString QcGamepadInfo::name

The pad's name as the backend reports it.

bool QcGamepadInfo::rumble

Whether the pad can vibrate (decision E-615).

QcGamepadType QcGamepadInfo::type

The pad's family.