Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

SCA_KeyboardManager.cpp

Go to the documentation of this file.
00001 
00006 
00007 #include "BoolValue.h"
00008 #include "SCA_KeyboardManager.h"
00009 #include "SCA_KeyboardSensor.h"
00010 #include "SCA_ISystem.h"
00011 #include "IntValue.h"
00012 #include <vector>
00013 
00014 void SCA_KeyboardManager::NextFrame(double curtime,double deltatime)

00015 {
00016         //const SCA_InputEvent& event = GetEventValue(SCA_IInputDevice::KX_EnumInputs inputcode)=0;
00017         
00018         for (int i=0;i<m_sensors.size();i++)
00019         {
00020                 SCA_KeyboardSensor* keysensor = (SCA_KeyboardSensor*)m_sensors[i];
00021                 keysensor->Activate(m_logicmanager,NULL);
00022         }
00023 
00024 }
00025 
00026 void  SCA_KeyboardManager::RegisterSensor(SCA_ISensor* keysensor)

00027 {
00028         m_sensors.push_back(keysensor);
00029 }
00030 
00031 
00032 bool SCA_KeyboardManager::IsPressed(SCA_IInputDevice::KX_EnumInputs inputcode)

00033 {
00034         return false;
00035         //return m_kxsystem->IsPressed(inputcode);
00036 }
00037 

Generated at Thu Feb 1 13:03:10 2001 for Ketsji Game Engine by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000