All pastes #507775 Raw Edit

Something

public cpp v1 · immutable
·published 2007-05-24 18:58 UTC
rendered paste body
#include "Global.h"class SpaceControl{ public:        SpaceControl(ISceneNode* n, ISceneManager* mgr);        ~SpaceControl();                void updateMovement();        virtual bool OnEvent(SEvent event)        {         if(event.EventType == EET_KEY_INPUT_EVENT)         {           keys[event.KeyInput.Key] = event.KeyInput.PressedDown;           return true;          }                  return false;        }         private:         ISceneNode* tn;         ISceneNode* en;         ICameraSceneNode* tcam;         ISceneManager* tmgr;         bool keys[KEY_KEY_CODES_COUNT]; };