Used notify for reporting the keypressing to the commandline.

This commit is contained in:
Robert Osfield 2003-04-01 18:35:31 +00:00
parent b63a49ca3f
commit d820449931

View File

@ -43,7 +43,7 @@ protected:
void KeyboardModel::keyChange(int key,int value) void KeyboardModel::keyChange(int key,int value)
{ {
std::cout << "key value change, code="<<std::hex << key << "\t value="<< value << std::dec << std::endl; osg::notify(osg::INFO) << "key value change, code="<<std::hex << key << "\t value="<< value << std::dec << std::endl;
// toggle the keys graphical representation on or off via osg::Swithc // toggle the keys graphical representation on or off via osg::Swithc
KeyModelMap::iterator itr = _keyModelMap.find(key); KeyModelMap::iterator itr = _keyModelMap.find(key);