1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-20 10:17:05 +00:00

Adds type recipient as a dynamic type, and accepts paste and fullscreen toggle in SDL.

This commit is contained in:
Thomas Harte
2017-11-21 21:44:29 -05:00
parent 89c3e2ba5a
commit 3365ff0200
3 changed files with 24 additions and 0 deletions
+4
View File
@@ -41,6 +41,10 @@ template<typename T> class TypedDynamicMachine: public ::Machine::DynamicMachine
return get<Configurable::Device>();
}
Utility::TypeRecipient *type_recipient() override {
return get<Utility::TypeRecipient>();
}
private:
template <typename Class> Class *get() {
return dynamic_cast<Class *>(machine_.get());