Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
442 B
C++
Raw Permalink Normal View History

2022-05-03 03:07:22 -07:00
#pragma once
#include "common.hh"
class InputManager
{
protected:
ImVec2 m_last_mouse_pos;
bool m_navigating_with_controller;
uint32_t m_buttons;
bool m_mouse_moved;
public:
InputManager();
void Update();
inline bool IsNavigatingWithController() { return m_navigating_with_controller; }
inline bool MouseMoved() { return m_mouse_moved; }
inline uint32_t CombinedButtons() { return m_buttons; }
};
extern InputManager g_input_mgr;