> compile NEMU
221220000 张三 Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 20:33:58 up 2 days, 10:47, 1 user, load average: 0.30, 0.40, 0.41
This commit is contained in:
@ -4,7 +4,8 @@
|
||||
#define KEYDOWN_MASK 0x8000
|
||||
|
||||
void __am_input_keybrd(AM_INPUT_KEYBRD_T *kbd) {
|
||||
kbd->keycode = inl(KBD_ADDR);
|
||||
kbd->keydown = 0; // kbd->keycode & KEYDOWN_MASK;
|
||||
PNT_BITS(kbd->keycode, 32, 'K');
|
||||
uint32_t val = inl(KBD_ADDR);
|
||||
kbd->keycode = val & ~KEYDOWN_MASK;
|
||||
kbd->keydown = val & KEYDOWN_MASK;
|
||||
// PNT_BITS(kbd->keycode, 32, 'K');
|
||||
}
|
||||
|
Reference in New Issue
Block a user