WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
InputManager Class Reference

#include <InputManager.h>

Collaboration diagram for InputManager:
[legend]

Public Member Functions

 InputManager ()
 
void loadDefaults ()
 Populate the binding table with default viewer controls.
 
void update ()
 
const InputStatestate () const noexcept
 Resolved state from the most recent update().
 
std::vector< InputBinding > & bindings () noexcept
 Mutable access to bindings (for future settings UI / serialisation).
 
const std::vector< InputBinding > & bindings () const noexcept
 

Private Attributes

std::vector< InputBindingm_bindings
 
InputState m_state
 

Detailed Description

Definition at line 12 of file InputManager.h.

Constructor & Destructor Documentation

◆ InputManager()

InputManager::InputManager ( )

Definition at line 5 of file InputManager.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ bindings() [1/2]

const std::vector< InputBinding > & InputManager::bindings ( ) const
inlinenoexcept

Definition at line 29 of file InputManager.h.

◆ bindings() [2/2]

std::vector< InputBinding > & InputManager::bindings ( )
inlinenoexcept

Mutable access to bindings (for future settings UI / serialisation).

Definition at line 28 of file InputManager.h.

◆ loadDefaults()

void InputManager::loadDefaults ( )

Populate the binding table with default viewer controls.

Definition at line 14 of file InputManager.cpp.

Here is the caller graph for this function:

◆ state()

const InputState & InputManager::state ( ) const
inlinenoexcept

Resolved state from the most recent update().

Definition at line 25 of file InputManager.h.

Here is the caller graph for this function:

◆ update()

void InputManager::update ( )

Read current ImGui IO state and resolve all bindings into m_state. Call once per frame, after ImGui::NewFrame().

Definition at line 97 of file InputManager.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ m_bindings

std::vector<InputBinding> InputManager::m_bindings
private

Definition at line 32 of file InputManager.h.

◆ m_state

InputState InputManager::m_state
private

Definition at line 33 of file InputManager.h.


The documentation for this class was generated from the following files: