carb::input::toCurrentButtonState

Defined in carb/input/InputUtils.h

inline CurrentButtonState carb::input::toCurrentButtonState(bool isDown)

Converts a button state to a CurrentButtonState.

Parameters

isDowntrue if the down; false if up.

Returns

a CurrentButtonState conversion of the state.