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

Improves documentation within the new parts.

This commit is contained in:
Thomas Harte
2018-02-19 16:03:17 -05:00
parent 9728bea0a7
commit 8265f289bd
7 changed files with 80 additions and 19 deletions
@@ -18,10 +18,17 @@
namespace Analyser {
namespace Dynamic {
class MultiKeyboardMachine: public ::KeyboardMachine::Machine {
/*!
Provides a class that multiplexes the keyboard machine interface to multiple machines.
Makes a static internal copy of the list of machines; makes no guarantees about the
order of delivered messages.
*/
class MultiKeyboardMachine: public KeyboardMachine::Machine {
public:
MultiKeyboardMachine(const std::vector<std::unique_ptr<::Machine::DynamicMachine>> &machines);
// Below is the standard KeyboardMachine::Machine interface; see there for documentation.
void clear_all_keys() override;
void set_key_state(uint16_t key, bool is_pressed) override;
void type_string(const std::string &) override;