segatools/common/board
kyoubate-haruka b86049034f Add setting to only allow game input in foreground (#83)
This adds a setting to the global configuration to allow only input when the game is focused. This prevents issues, such as triggering game buttons or service buttons while being tabbed out. Turned off by default.

The implementation is not the best, but in the context how these games are structured, the most acceptable.
It will keep scanning if the foreground window title fully matches (some games partially match, like FGO because due to the revision number in the title), and if found, will grab the HWND of that window and compare that from then on, to not tank performance due to constant string operations.

Tested with FGO, chusan and ongeki.

Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/83
Reviewed-by: Dniel97 <dniel97@noreply.gitea.tendokyu.moe>
Co-authored-by: kyoubate-haruka <46010460+kyoubate-haruka@users.noreply.github.com>
Co-committed-by: kyoubate-haruka <46010460+kyoubate-haruka@users.noreply.github.com>
2025-11-12 22:33:32 +00:00
..
aime-dll.c refactor all common parts and games 2025-04-17 19:40:40 +02:00
aime-dll.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
config.c Add setting to only allow game input in foreground (#83) 2025-11-12 22:33:32 +00:00
config.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
ffb.c refactor all common parts and games 2025-04-17 19:40:40 +02:00
ffb.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
guid.c refactor all common parts and games 2025-04-17 19:40:40 +02:00
guid.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
io3.c Add setting to only allow game input in foreground (#83) 2025-11-12 22:33:32 +00:00
io3.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
io4.c Add setting to only allow game input in foreground (#83) 2025-11-12 22:33:32 +00:00
io4.h Add setting to only allow game input in foreground (#83) 2025-11-12 22:33:32 +00:00
led15070-cmd.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
led15070-frame.c refactor all common parts and games 2025-04-17 19:40:40 +02:00
led15070-frame.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
led15070.c refactor all common parts and games 2025-04-17 19:40:40 +02:00
led15070.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
led15093-cmd.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
led15093-frame.c refactor all common parts and games 2025-04-17 19:40:40 +02:00
led15093-frame.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
led15093.c refactor all common parts and games 2025-04-17 19:40:40 +02:00
led15093.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
meson.build remove reference to nonexistant files 2025-04-17 14:06:55 -04:00
sg-cmd.c refactor all common parts and games 2025-04-17 19:40:40 +02:00
sg-cmd.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
sg-frame.c refactor all common parts and games 2025-04-17 19:40:40 +02:00
sg-frame.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
sg-led-cmd.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
sg-led.c refactor all common parts and games 2025-04-17 19:40:40 +02:00
sg-led.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
sg-nfc-cmd.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
sg-nfc.c refactor all common parts and games 2025-04-17 19:40:40 +02:00
sg-nfc.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
sg-reader.c refactor all common parts and games 2025-04-17 19:40:40 +02:00
sg-reader.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
slider-cmd.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
slider-frame.c refactor all common parts and games 2025-04-17 19:40:40 +02:00
slider-frame.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
vfd-cmd.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
vfd-frame.c refactor all common parts and games 2025-04-17 19:40:40 +02:00
vfd-frame.h refactor all common parts and games 2025-04-17 19:40:40 +02:00
vfd.c refactor all common parts and games 2025-04-17 19:40:40 +02:00
vfd.h refactor all common parts and games 2025-04-17 19:40:40 +02:00