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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user