Commits (3)
......@@ -17,7 +17,8 @@ function(mirrage_copy_recursive src dst)
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${path}" "${dst}/"
OUTPUT_QUIET
)
list(APPEND local_copied_files "${dst}/${file}")
file(RELATIVE_PATH REL_PATH "${DST_DIR}/embed" "${dst}/${file}")
list(APPEND local_copied_files ${REL_PATH})
endif()
endforeach(path)
......
......@@ -322,7 +322,7 @@ namespace mirrage::ecs {
static_assert(util::dependent_false<T>(), "Iteration is not supported by Void_storage_policy.");
return &dummy_instance + 1;
}
auto size() const -> Component_index { return _size; }
auto size() const -> Component_index { return static_cast<Component_index>(_size); }
auto empty() const -> bool { return _size == 0; }
private:
......
......@@ -186,7 +186,7 @@ namespace mirrage::input {
using Context_id = util::Str_id;
using Input_source = int8_t;
enum class Reaction_type { none, once, continuous, range };
enum class Reaction_type { none, once, once_down, continuous, range };
#ifdef sf2_structDef
......@@ -332,7 +332,7 @@ namespace mirrage::input {
sf2_structDef(Mouse_click, button, clicks);
sf2_enumDef(Reaction_type, none, once, continuous, range);
sf2_enumDef(Reaction_type, none, once, once_down, continuous, range);
#endif
} // namespace mirrage::input
......
......@@ -112,6 +112,7 @@ namespace mirrage::input {
break;
case Reaction_type::once:
case Reaction_type::once_down: bus.send<Once_action>(action.action, src); break;
default: break;
}
}
......@@ -146,6 +147,7 @@ namespace mirrage::input {
case Reaction_type::once: bus.send<Once_action>(action.action, src); break;
case Reaction_type::once_down:
default: break;
}
}
......