wip: AglaisInterface => LogProtocolInterface

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/851/head
Gergely Nagy 4 years ago
parent 507bf61b26
commit 8f7be391e5
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

@ -20,4 +20,4 @@
#pragma once #pragma once
#include "kaleidoscope/simulator/Simulator.h" #include "kaleidoscope/simulator/Simulator.h"
#include "kaleidoscope/simulator/AglaisInterface.h" #include "kaleidoscope/simulator/LogProtocolInterface.h"

@ -18,7 +18,7 @@
#ifdef KALEIDOSCOPE_VIRTUAL_BUILD #ifdef KALEIDOSCOPE_VIRTUAL_BUILD
#include "kaleidoscope/simulator/AglaisInterface.h" #include "kaleidoscope/simulator/LogProtocolInterface.h"
#include "kaleidoscope/simulator/reports/KeyboardReport.h" #include "kaleidoscope/simulator/reports/KeyboardReport.h"
#include "kaleidoscope/simulator/reports/BootKeyboardReport.h" #include "kaleidoscope/simulator/reports/BootKeyboardReport.h"
#include "kaleidoscope/simulator/reports/MouseReport.h" #include "kaleidoscope/simulator/reports/MouseReport.h"
@ -147,7 +147,7 @@ class SimulatorConsumerAdaptor : public log_protocol::Consumer_ {
}; };
void processAglaisDocument(const char *code, interface::Simulator_ &simulator) { void processLogDocument(const char *code, interface::Simulator_ &simulator) {
auto rwqa_state = simulator.getErrorIfReportWithoutQueuedActions(); auto rwqa_state = simulator.getErrorIfReportWithoutQueuedActions();
log_protocol::LogProtocol a; log_protocol::LogProtocol a;

@ -26,7 +26,7 @@ namespace interface {
class Simulator_; class Simulator_;
} // namespace interface } // namespace interface
void processAglaisDocument(const char *code, interface::Simulator_ &sim); void processLogDocument(const char *code, interface::Simulator_ &sim);
} // namespace simulator } // namespace simulator
} // namespace kaleidoscope } // namespace kaleidoscope

@ -41,7 +41,7 @@ uint8_t toKeycode(Key key) {
#include "kaleidoscope/simulator/Interface.h" #include "kaleidoscope/simulator/Interface.h"
#include "kaleidoscope/simulator/Executor.h" #include "kaleidoscope/simulator/Executor.h"
#include "kaleidoscope/simulator/AglaisInterface.h" #include "kaleidoscope/simulator/LogProtocolInterface.h"
#include "kaleidoscope/simulator/interface/Visualization.h" #include "kaleidoscope/simulator/interface/Visualization.h"
#include "kaleidoscope/simulator/actions/AssertLayerIsActive.h" #include "kaleidoscope/simulator/actions/AssertLayerIsActive.h"

@ -48,7 +48,7 @@ void runSimulator(Executor &simulator) {
// simulator.permanentMouseReportActions().add(GenerateHostEvent<MouseReport>{}); // simulator.permanentMouseReportActions().add(GenerateHostEvent<MouseReport>{});
// simulator.permanentAbsoluteMouseReportActions().add(GenerateHostEvent<AbsoluteMouseReport>{}); // simulator.permanentAbsoluteMouseReportActions().add(GenerateHostEvent<AbsoluteMouseReport>{});
processAglaisDocument(aglais_test_recording, simulator); processLogDocument(aglais_test_recording, simulator);
} }
const char aglais_test_recording[] = const char aglais_test_recording[] =

Loading…
Cancel
Save