Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions ZEngine/ZEngine/Windows/Inputs/KeyCode.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#include <fmt/format.h>
#include <cstdint>
#include <iostream>

namespace ZEngine::Windows::Inputs
{
Expand Down Expand Up @@ -138,9 +138,8 @@ namespace ZEngine::Windows::Inputs

} GlfwKey;

inline std::ostream& operator<<(std::ostream& stream, GlfwKeyCode f)
inline auto format_as(GlfwKey f)
{
stream << static_cast<int32_t>(f);
return stream;
return fmt::underlying(f);
}
} // namespace ZEngine::Windows::Inputs
2 changes: 1 addition & 1 deletion __externals/fmt
Submodule fmt updated 222 files
2 changes: 1 addition & 1 deletion __externals/spdlog
Submodule spdlog updated 172 files
Loading