From 6d173657a90b442273c84682c14d11d4e98ca52e Mon Sep 17 00:00:00 2001 From: kyoubate-haruka <46010460+kyoubate-haruka@users.noreply.github.com> Date: Thu, 24 Sep 2026 11:09:00 +0200 Subject: [PATCH] hkb: fix system buttons --- games/hkbio/hkbio.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/games/hkbio/hkbio.c b/games/hkbio/hkbio.c index e760f13..46415c2 100644 --- a/games/hkbio/hkbio.c +++ b/games/hkbio/hkbio.c @@ -14,9 +14,6 @@ #include "util/str.h" static uint8_t hkb_opbtn; -static uint8_t hkb_gamebtn; -static int16_t hkb_stick_x; -static int16_t hkb_stick_y; static struct hkb_io_config hkb_io_cfg; static const struct hkb_io_backend* hkb_io_backend; static bool hkb_io_coin; @@ -55,9 +52,6 @@ HRESULT hkb_io_poll(void) { assert(hkb_io_backend != NULL); hkb_opbtn = 0; - hkb_gamebtn = 0; - hkb_stick_x = 0; - hkb_stick_y = 0; if (GetAsyncKeyState(hkb_io_cfg.vk_test) & 0x8000) { hkb_opbtn |= HKB_IO_OPBTN_TEST; @@ -86,6 +80,8 @@ void hkb_io_get_opbtns(uint8_t* opbtn) { if (hkb_io_backend->get_opbtns != NULL) { hkb_io_backend->get_opbtns(opbtn); } + + *opbtn |= hkb_opbtn; } void hkb_io_get_gamebtns(uint16_t* btn) {