MODULE v1.8.0

gamepad

kn::gamepad

Declared in kraken/input/Gamepad.hpp

Reference

C++ API

isPressed

function
bool isPressed(GamepadButton button, int slot=0)

No description in the source header.

bool isJustPressed(GamepadButton button, int slot=0)

No description in the source header.

bool isJustReleased(GamepadButton button, int slot=0)

No description in the source header.

getLeftStick

function
Vec2 getLeftStick(int slot=0)

No description in the source header.

Vec2 getRightStick(int slot=0)

No description in the source header.

double getLeftTrigger(int slot=0)

No description in the source header.

double getRightTrigger(int slot=0)

No description in the source header.

setDeadZone

function
void setDeadZone(float deadZone, int slot=0)

No description in the source header.

getDeadZone

function
float getDeadZone(int slot=0)

No description in the source header.

const std::vector< int > getConnectedSlots()

No description in the source header.

getType

function
GamepadType getType(int slot=0)

No description in the source header.

Find your next step

Start typing to search the manual.