Polyphase Game Engine
Loading...
Searching...
No Matches
InputState Struct Reference

#include <InputTypes.h>

Public Attributes

bool mKeys [INPUT_MAX_KEYS] = { }
 
bool mMouseButtons [MOUSE_BUTTON_COUNT] = { }
 
bool mTouches [INPUT_MAX_TOUCHES] = { }
 
GamepadState mGamepads [INPUT_MAX_GAMEPADS]
 
bool mPrevKeys [INPUT_MAX_KEYS] = { }
 
bool mPrevMouseButtons [MOUSE_BUTTON_COUNT] = { }
 
bool mPrevTouches [INPUT_MAX_TOUCHES] = { }
 
GamepadState mPrevGamepads [INPUT_MAX_GAMEPADS]
 
bool mRepeatKeys [INPUT_MAX_KEYS] = { }
 
int32_t mScrollWheelDelta = 0
 
int32_t mMouseDeltaX = 0
 
int32_t mMouseDeltaY = 0
 
int32_t mPointerX [INPUT_MAX_TOUCHES] = { 0 }
 
int32_t mPointerY [INPUT_MAX_TOUCHES] = { 0 }
 
int32_t mNumControllers = 0
 
std::vector< int32_t > mJustDownKeys
 
bool mCursorLocked = false
 
bool mCursorTrapped = false
 
bool mCursorShown = true
 

Member Data Documentation

◆ mCursorLocked

bool InputState::mCursorLocked = false

◆ mCursorShown

bool InputState::mCursorShown = true

◆ mCursorTrapped

bool InputState::mCursorTrapped = false

◆ mGamepads

GamepadState InputState::mGamepads[INPUT_MAX_GAMEPADS]

◆ mJustDownKeys

std::vector<int32_t> InputState::mJustDownKeys

◆ mKeys

bool InputState::mKeys[INPUT_MAX_KEYS] = { }

◆ mMouseButtons

bool InputState::mMouseButtons[MOUSE_BUTTON_COUNT] = { }

◆ mMouseDeltaX

int32_t InputState::mMouseDeltaX = 0

◆ mMouseDeltaY

int32_t InputState::mMouseDeltaY = 0

◆ mNumControllers

int32_t InputState::mNumControllers = 0

◆ mPointerX

int32_t InputState::mPointerX[INPUT_MAX_TOUCHES] = { 0 }

◆ mPointerY

int32_t InputState::mPointerY[INPUT_MAX_TOUCHES] = { 0 }

◆ mPrevGamepads

GamepadState InputState::mPrevGamepads[INPUT_MAX_GAMEPADS]

◆ mPrevKeys

bool InputState::mPrevKeys[INPUT_MAX_KEYS] = { }

◆ mPrevMouseButtons

bool InputState::mPrevMouseButtons[MOUSE_BUTTON_COUNT] = { }

◆ mPrevTouches

bool InputState::mPrevTouches[INPUT_MAX_TOUCHES] = { }

◆ mRepeatKeys

bool InputState::mRepeatKeys[INPUT_MAX_KEYS] = { }

◆ mScrollWheelDelta

int32_t InputState::mScrollWheelDelta = 0

◆ mTouches

bool InputState::mTouches[INPUT_MAX_TOUCHES] = { }

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