OSDN Git Service
(root)
/
csp-qt
/
common_source_project-fm7.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2b4f88
)
[VM][FMTOWNS][KEYBOARD][OOPS] Fix wrong reset after keys-pressed-reset.
author
K.Ohta
<whatisthis.sowhat@gmail.com>
Sun, 1 Aug 2021 15:51:39 +0000
(
00:51
+0900)
committer
K.Ohta
<whatisthis.sowhat@gmail.com>
Sun, 1 Aug 2021 15:51:39 +0000
(
00:51
+0900)
source/src/vm/fmtowns/keyboard.cpp
patch
|
blob
|
history
diff --git
a/source/src/vm/fmtowns/keyboard.cpp
b/source/src/vm/fmtowns/keyboard.cpp
index
b708011
..
c7d5e71
100644
(file)
--- a/
source/src/vm/fmtowns/keyboard.cpp
+++ b/
source/src/vm/fmtowns/keyboard.cpp
@@
-34,7
+34,6
@@
void KEYBOARD::initialize()
special_boot_num = -1;
boot_seq = false;
- memset(table, 0, sizeof(table));
memset(boot_code, 0x00, sizeof(boot_code));
}
@@
-50,6
+49,15
@@
void KEYBOARD::release()
void KEYBOARD::reset()
{
// reset_device();
+ if(boot_seq) {
+ repeat_start_ms = 400;
+ repeat_tick_ms = 30;
+ special_boot_num = -1;
+ boot_seq = false;
+ reset_device();
+ memset(boot_code, 0x00, sizeof(boot_code));
+ memset(table, 0, sizeof(table));
+ }
}
void KEYBOARD::reset_device()