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

Extends the keyboard protocol and adds keyboard input to the Apple II.

This commit is contained in:
Thomas Harte
2018-04-15 21:11:30 -04:00
parent be05d51e07
commit 465c38f03c
7 changed files with 49 additions and 10 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ using namespace Inputs;
Keyboard::Keyboard() {}
void Keyboard::set_key_pressed(Key key, bool is_pressed) {
void Keyboard::set_key_pressed(Key key, char value, bool is_pressed) {
std::size_t key_offset = static_cast<std::size_t>(key);
if(key_offset >= key_states_.size()) {
key_states_.resize(key_offset+1, false);