segatools/doc
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
..
config Add setting to only allow game input in foreground (#83) 2025-11-12 22:33:32 +00:00
15093-06.txt added LED 15093-06 credits and docs 2023-11-12 19:14:42 +01:00
chunihook.md renamed start.bat to launch.bat 2025-03-02 00:25:15 +01:00
development.md Fix typo in docs 2021-08-13 23:55:12 +02:00
emoney.md emoney: improce doc and add python script 2025-04-17 19:17:42 +02:00
idzhook.md renamed start.bat to launch.bat 2025-03-02 00:25:15 +01:00
nfc.txt Add HW,FW notes on NFC assembly 2018-11-28 11:49:55 -05:00