From b15942881dca7c850c7f3052c452fb34cb4bc4d0 Mon Sep 17 00:00:00 2001 From: qfox Date: Mon, 21 Aug 2006 13:40:13 +0000 Subject: [PATCH] FCEU_SetBotMode() in input.cpp now calls UpdateExternalButton() in basicbot.cpp to update a label in GUI. --- src/input.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/input.cpp b/src/input.cpp index 8cd9dcc0..7fd8c188 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -33,6 +33,10 @@ #include "vsuni.h" #include "fds.h" +#include "drivers/win/basicbot.h" // qfox: For UpdateExternalButton(), called when the + // botmode state changes, to update a label in gui. + // Maybe enclose this in ifdef _USE_SHARED_MEMORY_ ? + extern INPUTC *FCEU_InitZapper(int w); extern INPUTC *FCEU_InitPowerpadA(int w); extern INPUTC *FCEU_InitPowerpadB(int w); @@ -182,6 +186,7 @@ int FCEU_BotMode() void FCEU_SetBotMode(int x) { BotMode = x; + UpdateExternalButton(); } void FCEU_DrawInput(uint8 *buf)