31 using namespace AngelScript;
43 result = engine->RegisterObjectType(
"InputEngineClass",
sizeof(
InputEngine), asOBJ_REF | asOBJ_NOCOUNT);
ROR_ASSERT(result>=0);
46 result = engine->RegisterObjectMethod(
"InputEngineClass",
"void setEventSimulatedValue(inputEvents ev, float value)", asMETHOD(
InputEngine,setEventSimulatedValue), asCALL_THISCALL);
ROR_ASSERT(result>=0);
47 result = engine->RegisterObjectMethod(
"InputEngineClass",
"void setEventStatusSupressed(inputEvents ev, bool supressed)", asMETHOD(
InputEngine,setEventStatusSupressed), asCALL_THISCALL);
ROR_ASSERT(result>=0);
50 result = engine->RegisterObjectMethod(
"InputEngineClass",
"string getEventCommand(inputEvents ev)", asMETHOD(
InputEngine,getEventCommand), asCALL_THISCALL);
ROR_ASSERT(result>=0);
51 result = engine->RegisterObjectMethod(
"InputEngineClass",
"string getEventCommandTrimmed(inputEvents ev)", asMETHOD(
InputEngine,getEventCommandTrimmed), asCALL_THISCALL);
ROR_ASSERT(result>=0);
54 result = engine->RegisterObjectMethod(
"InputEngineClass",
"bool getEventBoolValue(inputEvents ev)", asMETHOD(
InputEngine,getEventBoolValue), asCALL_THISCALL);
ROR_ASSERT(result>=0);
55 result = engine->RegisterObjectMethod(
"InputEngineClass",
"bool getEventBoolValueBounce(inputEvents ev, float time = 0.2f)", asMETHOD(
InputEngine,getEventBoolValueBounce), asCALL_THISCALL);
ROR_ASSERT(result>=0);
56 result = engine->RegisterObjectMethod(
"InputEngineClass",
"bool isKeyDownEffective(keyCodes keycode)", asMETHOD(
InputEngine,isKeyDownEffective), asCALL_THISCALL);
ROR_ASSERT(result>=0);
57 result = engine->RegisterObjectMethod(
"InputEngineClass",
"bool isKeyDownValueBounce(keyCodes keycode, float time = 0.2f)", asMETHOD(
InputEngine,isKeyDownValueBounce), asCALL_THISCALL);
ROR_ASSERT(result>=0);
60 result = engine->RegisterObjectMethod(
"InputEngineClass",
"bool isKeyDown(keyCodes keycode)", asMETHOD(
InputEngine,isKeyDown), asCALL_THISCALL);
ROR_ASSERT(result>=0);
68 result = engine->RegisterEnum(
"inputEvents");
ROR_ASSERT(result >= 0);
117 result = engine->RegisterEnumValue(
"inputEvents",
"EV_CAMERA_UP",
EV_CAMERA_UP );
ROR_ASSERT(result >= 0);
279 result = engine->RegisterEnumValue(
"inputEvents",
"EV_MENU_DOWN",
EV_MENU_DOWN );
ROR_ASSERT(result >= 0);
280 result = engine->RegisterEnumValue(
"inputEvents",
"EV_MENU_LEFT",
EV_MENU_LEFT );
ROR_ASSERT(result >= 0);
283 result = engine->RegisterEnumValue(
"inputEvents",
"EV_MENU_UP",
EV_MENU_UP );
ROR_ASSERT(result >= 0);
402 result = engine->RegisterEnum(
"keyCodes");
ROR_ASSERT(result >= 0);
405 result = engine->RegisterEnumValue(
"keyCodes",
"KC_NUMPAD1",
KC_NUMPAD1);
ROR_ASSERT(result >= 0);
406 result = engine->RegisterEnumValue(
"keyCodes",
"KC_NUMPAD2",
KC_NUMPAD2);
ROR_ASSERT(result >= 0);
407 result = engine->RegisterEnumValue(
"keyCodes",
"KC_NUMPAD3",
KC_NUMPAD3);
ROR_ASSERT(result >= 0);
408 result = engine->RegisterEnumValue(
"keyCodes",
"KC_NUMPAD4",
KC_NUMPAD4);
ROR_ASSERT(result >= 0);
409 result = engine->RegisterEnumValue(
"keyCodes",
"KC_NUMPAD5",
KC_NUMPAD5);
ROR_ASSERT(result >= 0);
410 result = engine->RegisterEnumValue(
"keyCodes",
"KC_NUMPAD6",
KC_NUMPAD6);
ROR_ASSERT(result >= 0);
411 result = engine->RegisterEnumValue(
"keyCodes",
"KC_NUMPAD7",
KC_NUMPAD7);
ROR_ASSERT(result >= 0);
412 result = engine->RegisterEnumValue(
"keyCodes",
"KC_NUMPAD8",
KC_NUMPAD8);
ROR_ASSERT(result >= 0);
413 result = engine->RegisterEnumValue(
"keyCodes",
"KC_NUMPAD9",
KC_NUMPAD9);
ROR_ASSERT(result >= 0);
414 result = engine->RegisterEnumValue(
"keyCodes",
"KC_NUMPAD0",
KC_NUMPAD0);
ROR_ASSERT(result >= 0);
417 result = engine->RegisterEnumValue(
"keyCodes",
"KC_1",
KC_1);
ROR_ASSERT(result >= 0);
418 result = engine->RegisterEnumValue(
"keyCodes",
"KC_2",
KC_2);
ROR_ASSERT(result >= 0);
419 result = engine->RegisterEnumValue(
"keyCodes",
"KC_3",
KC_3);
ROR_ASSERT(result >= 0);
420 result = engine->RegisterEnumValue(
"keyCodes",
"KC_4",
KC_4);
ROR_ASSERT(result >= 0);
421 result = engine->RegisterEnumValue(
"keyCodes",
"KC_5",
KC_5);
ROR_ASSERT(result >= 0);
422 result = engine->RegisterEnumValue(
"keyCodes",
"KC_6",
KC_6);
ROR_ASSERT(result >= 0);
423 result = engine->RegisterEnumValue(
"keyCodes",
"KC_7",
KC_7);
ROR_ASSERT(result >= 0);
424 result = engine->RegisterEnumValue(
"keyCodes",
"KC_8",
KC_8);
ROR_ASSERT(result >= 0);
425 result = engine->RegisterEnumValue(
"keyCodes",
"KC_9",
KC_9);
ROR_ASSERT(result >= 0);
426 result = engine->RegisterEnumValue(
"keyCodes",
"KC_0",
KC_0);
ROR_ASSERT(result >= 0);
429 result = engine->RegisterEnumValue(
"keyCodes",
"KC_F1",
KC_F1);
ROR_ASSERT(result >= 0);
430 result = engine->RegisterEnumValue(
"keyCodes",
"KC_F2",
KC_F2);
ROR_ASSERT(result >= 0);
431 result = engine->RegisterEnumValue(
"keyCodes",
"KC_F3",
KC_F3);
ROR_ASSERT(result >= 0);
432 result = engine->RegisterEnumValue(
"keyCodes",
"KC_F4",
KC_F4);
ROR_ASSERT(result >= 0);
433 result = engine->RegisterEnumValue(
"keyCodes",
"KC_F5",
KC_F5);
ROR_ASSERT(result >= 0);
434 result = engine->RegisterEnumValue(
"keyCodes",
"KC_F6",
KC_F6);
ROR_ASSERT(result >= 0);
435 result = engine->RegisterEnumValue(
"keyCodes",
"KC_F7",
KC_F7);
ROR_ASSERT(result >= 0);
436 result = engine->RegisterEnumValue(
"keyCodes",
"KC_F8",
KC_F8);
ROR_ASSERT(result >= 0);
437 result = engine->RegisterEnumValue(
"keyCodes",
"KC_F9",
KC_F9);
ROR_ASSERT(result >= 0);
438 result = engine->RegisterEnumValue(
"keyCodes",
"KC_F10",
KC_F10);
ROR_ASSERT(result >= 0);
439 result = engine->RegisterEnumValue(
"keyCodes",
"KC_F11",
KC_F11);
ROR_ASSERT(result >= 0);
440 result = engine->RegisterEnumValue(
"keyCodes",
"KC_F12",
KC_F12);
ROR_ASSERT(result >= 0);
443 result = engine->RegisterEnumValue(
"keyCodes",
"KC_INSERT",
KC_INSERT);
ROR_ASSERT(result >= 0);
444 result = engine->RegisterEnumValue(
"keyCodes",
"KC_DELETE",
KC_DELETE);
ROR_ASSERT(result >= 0);
445 result = engine->RegisterEnumValue(
"keyCodes",
"KC_BACKSPACE", KC_BACK);
ROR_ASSERT(result >= 0);
446 result = engine->RegisterEnumValue(
"keyCodes",
"KC_CAPSLOCK", KC_CAPITAL);
ROR_ASSERT(result >= 0);
447 result = engine->RegisterEnumValue(
"keyCodes",
"KC_NUMLOCK",
KC_NUMLOCK);
ROR_ASSERT(result >= 0);
448 result = engine->RegisterEnumValue(
"keyCodes",
"KC_SCROLLLOCK", KC_SCROLL );
ROR_ASSERT(result >= 0);
449 result = engine->RegisterEnumValue(
"keyCodes",
"KC_TAB",
KC_TAB);
ROR_ASSERT(result >= 0);
452 result = engine->RegisterEnumValue(
"keyCodes",
"KC_ESCAPE",
KC_ESCAPE);
ROR_ASSERT(result >= 0);
453 result = engine->RegisterEnumValue(
"keyCodes",
"KC_RETURN",
KC_RETURN);
ROR_ASSERT(result >= 0);
454 result = engine->RegisterEnumValue(
"keyCodes",
"KC_LEFT",
KC_LEFT);
ROR_ASSERT(result >= 0);
455 result = engine->RegisterEnumValue(
"keyCodes",
"KC_RIGHT",
KC_RIGHT);
ROR_ASSERT(result >= 0);
456 result = engine->RegisterEnumValue(
"keyCodes",
"KC_HOME",
KC_HOME);
ROR_ASSERT(result >= 0);
457 result = engine->RegisterEnumValue(
"keyCodes",
"KC_UP",
KC_UP);
ROR_ASSERT(result >= 0);
458 result = engine->RegisterEnumValue(
"keyCodes",
"KC_PGUP",
KC_PGUP);
ROR_ASSERT(result >= 0);
459 result = engine->RegisterEnumValue(
"keyCodes",
"KC_END",
KC_END);
ROR_ASSERT(result >= 0);
460 result = engine->RegisterEnumValue(
"keyCodes",
"KC_DOWN",
KC_DOWN);
ROR_ASSERT(result >= 0);
461 result = engine->RegisterEnumValue(
"keyCodes",
"KC_PGDOWN",
KC_PGDOWN);
ROR_ASSERT(result >= 0);
462 result = engine->RegisterEnumValue(
"keyCodes",
"KC_PAUSE",
KC_PAUSE);
ROR_ASSERT(result >= 0);
465 result = engine->RegisterEnumValue(
"keyCodes",
"KC_LCTRL",KC_LCONTROL );
ROR_ASSERT(result >= 0);
466 result = engine->RegisterEnumValue(
"keyCodes",
"KC_RCTRL",KC_RCONTROL );
ROR_ASSERT(result >= 0);
467 result = engine->RegisterEnumValue(
"keyCodes",
"KC_LSHIFT",
KC_LSHIFT );
ROR_ASSERT(result >= 0);
468 result = engine->RegisterEnumValue(
"keyCodes",
"KC_RSHIFT",
KC_RSHIFT );
ROR_ASSERT(result >= 0);
469 result = engine->RegisterEnumValue(
"keyCodes",
"KC_LALT",KC_LMENU);
ROR_ASSERT(result >= 0);
470 result = engine->RegisterEnumValue(
"keyCodes",
"KC_RALT",KC_RMENU);
ROR_ASSERT(result >= 0);
471 result = engine->RegisterEnumValue(
"keyCodes",
"KC_LWIN",
KC_LWIN);
ROR_ASSERT(result >= 0);
472 result = engine->RegisterEnumValue(
"keyCodes",
"KC_RWIN",
KC_RWIN);
ROR_ASSERT(result >= 0);
475 result = engine->RegisterEnumValue(
"keyCodes",
"KC_MINUS",
KC_MINUS);
ROR_ASSERT(result >= 0);
476 result = engine->RegisterEnumValue(
"keyCodes",
"KC_EQUALS",
KC_EQUALS);
ROR_ASSERT(result >= 0);
477 result = engine->RegisterEnumValue(
"keyCodes",
"KC_LBRACKET",
KC_LBRACKET );
ROR_ASSERT(result >= 0);
478 result = engine->RegisterEnumValue(
"keyCodes",
"KC_RBRACKET",
KC_RBRACKET );
ROR_ASSERT(result >= 0);
481 result = engine->RegisterEnumValue(
"keyCodes",
"KC_GRAVE",
KC_GRAVE);
ROR_ASSERT(result >= 0);
483 result = engine->RegisterEnumValue(
"keyCodes",
"KC_COMMA",
KC_COMMA);
ROR_ASSERT(result >= 0);
484 result = engine->RegisterEnumValue(
"keyCodes",
"KC_PERIOD",
KC_PERIOD );
ROR_ASSERT(result >= 0);
485 result = engine->RegisterEnumValue(
"keyCodes",
"KC_SLASH",
KC_SLASH);
ROR_ASSERT(result >= 0);
486 result = engine->RegisterEnumValue(
"keyCodes",
"KC_MULTIPLY",
KC_MULTIPLY );
ROR_ASSERT(result >= 0);
487 result = engine->RegisterEnumValue(
"keyCodes",
"KC_SPACE",
KC_SPACE);
ROR_ASSERT(result >= 0);
488 result = engine->RegisterEnumValue(
"keyCodes",
"KC_SUBTRACT",
KC_SUBTRACT );
ROR_ASSERT(result >= 0);
489 result = engine->RegisterEnumValue(
"keyCodes",
"KC_ADD",
KC_ADD);
ROR_ASSERT(result >= 0);