Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1285 for code


Ignore:
Timestamp:
May 15, 2008, 3:06:52 PM (17 years ago)
Author:
rgrieder
Message:
  • bugfix in InputManager
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/merge/src/core/InputManager.cc

    r1273 r1285  
    818818  bool InputManager::addKeyHandler(KeyHandler* handler, const std::string& name)
    819819  {
     820    if (!handler)
     821      return false;
    820822    if (_getSingleton().keyHandlers_.find(name) == _getSingleton().keyHandlers_.end())
    821823    {
     
    944946  bool InputManager::addMouseHandler(MouseHandler* handler, const std::string& name)
    945947  {
     948    if (!handler)
     949      return false;
    946950    if (_getSingleton().mouseHandlers_.find(name) == _getSingleton().mouseHandlers_.end())
    947951    {
     
    10711075  bool InputManager::addJoyStickHandler(JoyStickHandler* handler, const std::string& name)
    10721076  {
     1077    if (!handler)
     1078      return false;
    10731079    if (_getSingleton().joyStickHandlers_.find(name) == _getSingleton().joyStickHandlers_.end())
    10741080    {
Note: See TracChangeset for help on using the changeset viewer.