25 static void Init() { m_Instace->InitImpl(); }
33 m_Instace->ShutdownImpl();
40 static void Poll() { m_Instace->PollImpl(); }
42 static bool IsKeyDown(
const std::string& t_KeyName) {
return m_Instace->IsKeyDownImpl(t_KeyName); }
43 static bool IsKeyHeld(
const std::string& t_KeyName) {
return m_Instace->IsKeyHelpImpl(t_KeyName); }
45 static bool IsMouseButtonPressed(
const std::string& t_KeyName) {
return m_Instace->IsMouseButtonPressedImpl(t_KeyName); }
46 static bool IsMouseDown(
const std::string& t_KeyName) {
return m_Instace->IsMouseDownImpl(t_KeyName); }
54 typedef std::map<std::string, Fling::Key>
KeyMap;
55 typedef std::pair<std::string, Fling::Key>
KeyPair;
73 m_KeyMap.insert( KeyPair(t_Name,
Fling::Key(t_Name, t_KeyCode)) );
76 virtual void InitImpl() = 0;
77 virtual void ShutdownImpl() = 0;
80 virtual void PollImpl() = 0;
82 virtual void InitKeyMap() = 0;
84 virtual bool IsKeyDownImpl(
const std::string& t_KeyName) = 0;
85 virtual bool IsKeyHelpImpl(
const std::string& t_KeyName) = 0;
87 virtual bool IsMouseButtonPressedImpl(
const std::string& t_KeyName) = 0;
88 virtual bool IsMouseDownImpl(
const std::string& t_KeyName) = 0;
89 virtual MousePos GetMousePosImpl() = 0;
represents the current mouse position in screen space
Definition: Input.h:11
float Y
Definition: Input.h:14
Class that removes the copy operator and constructor.
Definition: NonCopyable.hpp:10
uint32_t UINT32
Definition: FlingTypes.h:10
float X
Definition: Input.h:13