Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 21, 2010, 10:20:09 PM (15 years ago)
Author:
landauf
Message:

LuaFunctor better doesn't inherit from Functor since it's used completely differently. Saves us the hassle of exporting FunctorPtr to Lua and a bunch of useless functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/consolecommands3/src/libraries/core/input/KeyBinderManager.cc

    r7198 r7199  
    3434#include "core/ConsoleCommand.h"
    3535#include "core/CoreIncludes.h"
     36#include "core/LuaState.h"
    3637#include "core/ScopedSingletonManager.h"
    3738#include "InputManager.h"
     
    187188        // else: A key was probably pressed within the same tick, ignore it.
    188189    }
     190
     191    void KeyBinderManager::registerKeybindCallback(LuaFunctor* function)
     192    {
     193        this->callbackFunction_ = function;
     194    }
    189195}
Note: See TracChangeset for help on using the changeset viewer.