Exemplo n.º 1
0
int InputSystem::Script_GetMappedKey(lua_State* L)
{
    InputSystem* pInputSystem = (InputSystem*)lua_tointeger(L, 1);

    string input = lua_tostring(L, 2);

    Keyboard::Key key = pInputSystem->GetMappedKey(input);

    lua_pushinteger(L, key);

    return 1;
}