getKey Irrwizard Problem

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
house
Posts: 5
Joined: Wed May 17, 2006 1:04 am

getKey Irrwizard Problem

Post by house »

In GameStateLevel01.cpp:

Code: Select all

void CGameStateLevel01::KeyboardEvent(CGameManager * pManager)
{
	if(pManager->geyKey(irr::KEY_F12))
			SetConsole(pManager,!console);
}
I receive the compile error:

Code: Select all

Compiling...
GameStateLevel01.cpp
c:\f\gamestatelevel01.cpp(46) : error C2039: 'geyKey' : is not a member of 'CGameManager'
        c:\f\gamemanager.h(20) : see declaration of 'CGameManager'
The declarations of CGameManager (GameManager.h) include:

Code: Select all

class CGameState;

class CGameManager : public IEventReceiver
{
public:
	void Update();
	IrrlichtDevice* getDevice();
	IVideoDriver* getDriver();
	ISceneManager* getSceneManager();
	IGUIEnvironment* getGUIEnvironment();
	bool getKey(char key);

	CGameManager();
	virtual ~CGameManager();
	virtual bool OnEvent(SEvent event);
I cleaned before building. What could be the problem ?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Not every 'y' is taken as a 't', so you should write getKey, not geyKey.
Post Reply