1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-07-24 22:24:23 +00:00

Shifts essential modifiers up to the Keyboard class.

I had forgotten that mappers are not exposed.
This commit is contained in:
Thomas Harte
2019-09-22 13:48:50 -04:00
parent 8f88addf9f
commit 077c7d767f
8 changed files with 27 additions and 20 deletions

View File

@@ -101,7 +101,7 @@ class ConcreteMachine:
audio_queue_,
sn76489_divider),
speaker_(sn76489_),
keyboard_({Inputs::Keyboard::Key::Enter, Inputs::Keyboard::Key::Escape}) {
keyboard_({Inputs::Keyboard::Key::Enter, Inputs::Keyboard::Key::Escape}, {}) {
// Pick the clock rate based on the region.
const double clock_rate = target.region == Target::Region::Europe ? 3546893.0 : 3579540.0;
speaker_.set_input_rate(static_cast<float>(clock_rate / sn76489_divider));