/* ========================================================================== * ÀÛ ¼º ÀÚ : À̼ø±Ô * ÀÛ ¼º ÀÏ : 2006.12.20 * ³» ¿ë : ÀÔ·Â ½Ã½ºÅÛ * ÁÖÀÇ»çÇ× : *===========================================================================*/ #pragma once #include "MouseAgent.h" #include "KeyAgent.h" /// ÀÔ·Â ½Ã½ºÅÛ class cInputSystem { friend class Application; static cInputSystem* mSingleton; public: cInputSystem(); ~cInputSystem(); /// ó¸® void Process(); /// ¸¶¿ì½º Áß°³ÀÚ¸¦ ¸®ÅÏ cMouseAgent* GetMouseAgent(); /// Űº¸µå Áß°³ÀÚ¸¦ ¸®ÅÏ cKeyAgent* GetKeyAgent(); public: /// ´ÜÀÏü¸¦ ¸®ÅÏ static cInputSystem* GetSingleton(); protected: /// ¸¶¿ì½º Áß°³ÀÚ cMouseAgent mMouseAgent; /// Űº¸µå Áß°³ÀÚ cKeyAgent mKeyAgent; }; inline cMouseAgent* cInputSystem::GetMouseAgent() { return &mMouseAgent; } inline cKeyAgent* cInputSystem::GetKeyAgent() { return &mKeyAgent; } inline cInputSystem* cInputSystem::GetSingleton() { return mSingleton; }