From 6dcae14a9ab2b2b48c5c412c37f11f142684be94 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Tue, 16 May 2023 20:03:24 +0300 Subject: [PATCH] Inputdevice internalevent enable/disable configuration --- inputdevice.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inputdevice.cpp b/inputdevice.cpp index e9dc1dfb..800370a7 100644 --- a/inputdevice.cpp +++ b/inputdevice.cpp @@ -1752,6 +1752,10 @@ void read_inputdevice_config (struct uae_prefs *pr, const TCHAR *option, TCHAR * tid->disabled = getnum(&p); tid->joystick = joystick; tid->devtype = devtype; + if (tid->devtype == IDTYPE_INTERNALEVENT && devnum < INTERNALEVENT_COUNT) { + id = &pr->internalevent_settings[idnum][devnum]; + id->enabled = tid->disabled == 0; + } return; } -- 2.47.3