From 0f74d13b9ef02303c92a1f7c4c80023c7b3909ac Mon Sep 17 00:00:00 2001 From: tracer-ysyx Date: Wed, 10 Jan 2024 17:11:08 +0800 Subject: [PATCH] =?UTF-8?q?>=20build=5Fnpc=5FVSegHandler=5Fnvboard=20=20ys?= =?UTF-8?q?yx=5F22040000=20=E6=9D=8E=E5=BF=83=E6=9D=A8=20=20Linux=20calcit?= =?UTF-8?q?e=206.1.69=20#1-NixOS=20SMP=20PREEMPT=5FDYNAMIC=20Wed=20Dec=202?= =?UTF-8?q?0=2016:00:29=20UTC=202023=20x86=5F64=20GNU/Linux=20=20=2017:11:?= =?UTF-8?q?08=20=20up=202=20days=2016:11,=20=202=20users,=20=20load=20aver?= =?UTF-8?q?age:=201.70,=200.98,=200.69?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- npc/csrc_nvboard/SegHandler/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/npc/csrc_nvboard/SegHandler/main.cpp b/npc/csrc_nvboard/SegHandler/main.cpp index 76ba884..7ee423c 100644 --- a/npc/csrc_nvboard/SegHandler/main.cpp +++ b/npc/csrc_nvboard/SegHandler/main.cpp @@ -45,8 +45,8 @@ int main(int argc, char **argv, char **env) { while (true) { nvboard_update(); cycle(top, [&] { - if (keycode != top->io_ps2_data) { - keycode = top->io_ps2_data; + if (keycode != top->io_keycode_bits){ + keycode = top->io_keycode_bits; printf("%d\n", keycode); } });