• R/O
  • HTTP
  • SSH
  • HTTPS

common_source_project-fm7: Commit

Common Source Code Project for Qt (a.k.a for FM-7).


Commit MetaInfo

Revisiondab3a4cd1c2f084c4ced29e82edec8d0fb146351 (tree)
Zeit2018-02-20 04:52:39
AutorK.Ohta <whatisthis.sowhat@gmai...>
CommiterK.Ohta

Log Message

[VM][FM7][KEYBOARD] Fix initial key code value.

Ändern Zusammenfassung

Diff

--- a/source/src/vm/fm7/keyboard.cpp
+++ b/source/src/vm/fm7/keyboard.cpp
@@ -617,6 +617,7 @@ void KEYBOARD::reset_unchange_mode(void)
617617 autokey_backup = 0x00;
618618
619619 if(override_break_key) write_signals(&break_line, (break_pressed) ? 0xff : 0);
620+ key_fifo->clear();
620621 #if defined(_FM77AV_VARIANTS)
621622 cmd_fifo->clear();
622623 data_fifo->clear();
@@ -650,9 +651,10 @@ void KEYBOARD::reset(void)
650651 scancode = 0x00;
651652
652653 keycode_7 = 0xffffffff;
654+ //keycode_7 = 0;
653655 reset_unchange_mode();
654656 this->write_signals(&int_line, 0x00000000);
655- key_fifo->clear();
657+
656658 #if defined(_FM77AV_VARIANTS)
657659 adjust_rtc();
658660 did_hidden_message_av_1 = false;
@@ -663,8 +665,8 @@ void KEYBOARD::reset(void)
663665
664666 if(event_int >= 0) cancel_event(this, event_int);
665667 register_event(this,
666- ID_KEYBOARD_INT,
667- 20000.0, true, &event_int);
668+ ID_KEYBOARD_INT,
669+ 20000.0, true, &event_int);
668670 }
669671
670672
Show on old repository browser