17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 16:49:21 +02:00
Files
maszyna/launcher/keymapper.cppm
maj00r 6550c88536 give importers the headers module templates need
A template defined in a module interface is instantiated in the importing
unit, where its body's types must be complete. A declaration reaching the
importer only through the interface's global module fragment is not
enough for MSVC: cParser::operator>> uses std::stringstream, and every
unit that parsed a float got an incomplete type.

526 headers across 161 units, derived from what each interface's template
bodies actually name.
2026-09-10 01:20:33 +02:00

32 lines
568 B
C++

module;
#include <deque>
#include <unordered_map>
#include <string>
export module eu07.launcher.keymapper;
import eu07.input.command;
import eu07.application.uilayer;
import eu07.input.driverkeyboardinput;
export {
namespace ui
{
class keymapper_panel : public ui_panel
{
public:
keymapper_panel();
void render_contents() override;
bool key(int key);
private:
driverkeyboard_input keyboard;
user_command bind_active = user_command::none;
const std::string panelname = (title.empty() ? m_name : title) + "###" + m_name;
};
} // namespace ui
} // export