Cleaned some tools up
This commit is contained in:
@@ -45,16 +45,10 @@ int moduleInputBind(lua_State *L) {
|
||||
}
|
||||
|
||||
void moduleInput(scriptcontext_t *context) {
|
||||
char_t buffer[128];
|
||||
assertNotNull(context, "Script context cannot be NULL");
|
||||
|
||||
// Set input information
|
||||
for(inputaction_t act = INPUT_ACTION_NULL + 1; act < INPUT_ACTION_COUNT; act++) {
|
||||
const char_t *actId = INPUT_ACTION_IDS[act];
|
||||
assertStrLenMax(actId, 64, "Input action name too long for buffer");
|
||||
snprintf(buffer, sizeof(buffer), "INPUT_ACTION_%s = %d\n", actId, act);
|
||||
scriptContextExec(context, buffer);
|
||||
}
|
||||
// Setup enums.
|
||||
scriptContextExec(context, INPUT_ACTION_SCRIPT);
|
||||
|
||||
// Input values.
|
||||
scriptContextExec(context,
|
||||
|
||||
Reference in New Issue
Block a user