Added AddInputCallback and RemoveInputCallback to Lua API for screen. ScreenManager now passes input to the lua side of each screen in addition to the engine side.

This commit is contained in:
Kyzentun
2014-06-26 21:33:54 -06:00
parent 0b7ca07576
commit 27c6a54d82
9 changed files with 204 additions and 1 deletions
+12
View File
@@ -1,4 +1,5 @@
#include "global.h"
#include "LocalizedString.h"
#include "InputFilter.h"
#include "RageLog.h"
#include "RageInput.h"
@@ -11,6 +12,17 @@
#include "ScreenDimensions.h"
#include <set>
static const char *InputEventTypeNames[] = {
"FirstPress",
"Repeat",
"Release"
};
XToString(InputEventType);
XToLocalizedString(InputEventType);
LuaXType(InputEventType);
struct ButtonState
{
ButtonState();