QtCraft API C++ classes QML types Handbook

QcGamepadMapping::Walk Struct

struct QcGamepadMapping::Walk

Forward (positive) and strafe right (positive) from the shaped left stick (y positive down). More...

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

Public Functions

bool moving() const

Public Variables

float forward
float strafe

Detailed Description

Member Function Documentation

bool Walk::moving() const

Returns whether the stick walks at all.

Member Variable Documentation

float Walk::forward

Forward share, -1..1 (negative: backwards).

float Walk::strafe

Strafe share, -1..1 (negative: left).