Foundation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
ExampleInputState Struct Reference

#include <Examples.hpp>

Public Member Functions

 ExampleInputState ()
 
bool KeyPressed (SDL_Keycode key) const
 

Public Attributes

bool wantResizeOrRebuild {true}
 
bool keyForward {}
 
bool keyBack {}
 
bool keyLeft {}
 
bool keyRight {}
 
bool keyFast {}
 
bool mouseCapturedByHud {}
 
bool pointerDown {}
 
float2 orbitDelta {}
 
float2 panDelta {}
 
float2 move {}
 
float zoomDelta {}
 
SDL_Event lastEvent {}
 
uint32_t clickedControl {}
 
uint32_t activeControl {}
 
uint32_t nextControlId = 1u
 
uint32_t pressedKeyCount {}
 
float2 pointerPosition {}
 
float2 clickPosition {}
 
int uiX = 16
 
int uiY = 16
 
int uiStartX = 16
 
int uiLineHeight = 24
 
int uiYSpacing = 2
 
int uiSameLineSpacing = 16
 
int uiLastItemWidth {}
 
int uiLastItemHeight {}
 
int uiLastItemX {}
 
int uiLastItemY {}
 
bool uiSameLine {}
 
int uiScale = 2
 
int uiColor = -1
 
size_t uiScaleStackCount {}
 
size_t uiColorStackCount {}
 
Array< int, kMaxUiStyleStackuiScaleStack {}
 
Array< int, kMaxUiStyleStackuiColorStack {}
 
Array< RenderUtils::CSDebugTextData, kMaxHudLineshud {}
 
size_t hudCount {}
 
Array< SDL_Keycode, kMaxPressedKeyspressedKeys {}
 
Array< ExampleTouchState, 4 > touches {}
 
Vector< ExampleClickableRegionclickableRegions {GLOBAL_ALLOC}
 
Vector< ExampleClickableRegionnextClickableRegions {GLOBAL_ALLOC}
 

Static Public Attributes

static constexpr size_t kMaxPressedKeys = 16
 
static constexpr size_t kMaxHudLines = 64
 
static constexpr size_t kMaxClickableRegions = kMaxHudLines
 
static constexpr size_t kMaxUiStyleStack = 8
 

Constructor & Destructor Documentation

◆ ExampleInputState()

ExampleInputState::ExampleInputState ( )
inline

Member Function Documentation

◆ KeyPressed()

bool ExampleInputState::KeyPressed ( SDL_Keycode  key) const
inline

Member Data Documentation

◆ activeControl

uint32_t ExampleInputState::activeControl {}

◆ clickableRegions

Vector<ExampleClickableRegion> ExampleInputState::clickableRegions {GLOBAL_ALLOC}

◆ clickedControl

uint32_t ExampleInputState::clickedControl {}

◆ clickPosition

float2 ExampleInputState::clickPosition {}

◆ hud

Array<RenderUtils::CSDebugTextData, kMaxHudLines> ExampleInputState::hud {}

◆ hudCount

size_t ExampleInputState::hudCount {}

◆ keyBack

bool ExampleInputState::keyBack {}

◆ keyFast

bool ExampleInputState::keyFast {}

◆ keyForward

bool ExampleInputState::keyForward {}

◆ keyLeft

bool ExampleInputState::keyLeft {}

◆ keyRight

bool ExampleInputState::keyRight {}

◆ kMaxClickableRegions

constexpr size_t ExampleInputState::kMaxClickableRegions = kMaxHudLines
staticconstexpr

◆ kMaxHudLines

constexpr size_t ExampleInputState::kMaxHudLines = 64
staticconstexpr

◆ kMaxPressedKeys

constexpr size_t ExampleInputState::kMaxPressedKeys = 16
staticconstexpr

◆ kMaxUiStyleStack

constexpr size_t ExampleInputState::kMaxUiStyleStack = 8
staticconstexpr

◆ lastEvent

SDL_Event ExampleInputState::lastEvent {}

◆ mouseCapturedByHud

bool ExampleInputState::mouseCapturedByHud {}

◆ move

float2 ExampleInputState::move {}

◆ nextClickableRegions

Vector<ExampleClickableRegion> ExampleInputState::nextClickableRegions {GLOBAL_ALLOC}

◆ nextControlId

uint32_t ExampleInputState::nextControlId = 1u

◆ orbitDelta

float2 ExampleInputState::orbitDelta {}

◆ panDelta

float2 ExampleInputState::panDelta {}

◆ pointerDown

bool ExampleInputState::pointerDown {}

◆ pointerPosition

float2 ExampleInputState::pointerPosition {}

◆ pressedKeyCount

uint32_t ExampleInputState::pressedKeyCount {}

◆ pressedKeys

Array<SDL_Keycode, kMaxPressedKeys> ExampleInputState::pressedKeys {}

◆ touches

Array<ExampleTouchState, 4> ExampleInputState::touches {}

◆ uiColor

int ExampleInputState::uiColor = -1

◆ uiColorStack

Array<int, kMaxUiStyleStack> ExampleInputState::uiColorStack {}

◆ uiColorStackCount

size_t ExampleInputState::uiColorStackCount {}

◆ uiLastItemHeight

int ExampleInputState::uiLastItemHeight {}

◆ uiLastItemWidth

int ExampleInputState::uiLastItemWidth {}

◆ uiLastItemX

int ExampleInputState::uiLastItemX {}

◆ uiLastItemY

int ExampleInputState::uiLastItemY {}

◆ uiLineHeight

int ExampleInputState::uiLineHeight = 24

◆ uiSameLine

bool ExampleInputState::uiSameLine {}

◆ uiSameLineSpacing

int ExampleInputState::uiSameLineSpacing = 16

◆ uiScale

int ExampleInputState::uiScale = 2

◆ uiScaleStack

Array<int, kMaxUiStyleStack> ExampleInputState::uiScaleStack {}

◆ uiScaleStackCount

size_t ExampleInputState::uiScaleStackCount {}

◆ uiStartX

int ExampleInputState::uiStartX = 16

◆ uiX

int ExampleInputState::uiX = 16

◆ uiY

int ExampleInputState::uiY = 16

◆ uiYSpacing

int ExampleInputState::uiYSpacing = 2

◆ wantResizeOrRebuild

bool ExampleInputState::wantResizeOrRebuild {true}

◆ zoomDelta

float ExampleInputState::zoomDelta {}

The documentation for this struct was generated from the following file: