WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
InputManager.h
Go to the documentation of this file.
1
#pragma once
2
3
// ---- Input Manager --------------------------------------------------------
4
// Owns a set of InputBindings and resolves them against ImGui IO state each
5
// frame to produce an InputState. The bindings are configurable data;
6
// loadDefaults() reproduces the original hardcoded viewer controls.
7
8
#include "
InputAction.h
"
9
10
#include <vector>
11
12
class
InputManager
13
{
14
public
:
15
InputManager
();
16
18
void
loadDefaults
();
19
22
void
update
();
23
25
const
InputState
&
state
() const noexcept {
return
m_state
; }
26
28
std::vector<InputBinding>&
bindings
() noexcept {
return
m_bindings
; }
29
const
std::vector<InputBinding>&
bindings
() const noexcept {
return
m_bindings
; }
30
31
private
:
32
std::vector<InputBinding>
m_bindings
;
33
InputState
m_state
;
34
};
InputAction.h
InputManager
Definition
InputManager.h:13
InputManager::update
void update()
Definition
InputManager.cpp:97
InputManager::loadDefaults
void loadDefaults()
Populate the binding table with default viewer controls.
Definition
InputManager.cpp:14
InputManager::bindings
std::vector< InputBinding > & bindings() noexcept
Mutable access to bindings (for future settings UI / serialisation).
Definition
InputManager.h:28
InputManager::state
const InputState & state() const noexcept
Resolved state from the most recent update().
Definition
InputManager.h:25
InputManager::InputManager
InputManager()
Definition
InputManager.cpp:5
InputManager::m_bindings
std::vector< InputBinding > m_bindings
Definition
InputManager.h:32
InputManager::m_state
InputState m_state
Definition
InputManager.h:33
InputManager::bindings
const std::vector< InputBinding > & bindings() const noexcept
Definition
InputManager.h:29
InputState
Definition
InputAction.h:72
Source
App
InputManager.h
Generated by
1.9.8