mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
removed cout spam
This commit is contained in:
parent
5395721c26
commit
71a6ce2202
@ -387,16 +387,14 @@ namespace MWInput
|
|||||||
|
|
||||||
bool InputManager::keyPressed( const OIS::KeyEvent &arg )
|
bool InputManager::keyPressed( const OIS::KeyEvent &arg )
|
||||||
{
|
{
|
||||||
std::cout << "text received: " << arg.text << std::endl;
|
|
||||||
|
|
||||||
mInputCtrl->keyPressed (arg);
|
mInputCtrl->keyPressed (arg);
|
||||||
unsigned int text = arg.text;
|
unsigned int text = arg.text;
|
||||||
#ifdef __APPLE__ // filter \016 symbol for F-keys on OS X
|
#ifdef __APPLE__ // filter \016 symbol for F-keys on OS X
|
||||||
if ((arg.key >= OIS::KC_F1 && arg.key <= OIS::KC_F10) ||
|
if ((arg.key >= OIS::KC_F1 && arg.key <= OIS::KC_F10) ||
|
||||||
(arg.key >= OIS::KC_F11 && arg.key <= OIS::KC_F15)) {
|
(arg.key >= OIS::KC_F11 && arg.key <= OIS::KC_F15)) {
|
||||||
text = 0;
|
text = 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
MyGUI::InputManager::getInstance().injectKeyPress(MyGUI::KeyCode::Enum(arg.key), text);
|
MyGUI::InputManager::getInstance().injectKeyPress(MyGUI::KeyCode::Enum(arg.key), text);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user