mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-20 03:25:58 +02:00
pch migration to modules [wip]
This commit is contained in:
29
launcher/keymapper.cppm
Normal file
29
launcher/keymapper.cppm
Normal file
@@ -0,0 +1,29 @@
|
||||
module;
|
||||
#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
|
||||
Reference in New Issue
Block a user