Skip to content

Improved Romance Minigame and focus input handling with KBM. - #66

Merged
SolarCookies merged 1 commit into
SolarCookies:devfrom
Zorkats:main
May 6, 2026
Merged

Improved Romance Minigame and focus input handling with KBM.#66
SolarCookies merged 1 commit into
SolarCookies:devfrom
Zorkats:main

Conversation

@Zorkats

@Zorkats Zorkats commented May 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Improves KBM behavior around romance minigames by tracking romance state explicitly.
  • Flushes pending mouse delta/wheel input when entering or leaving romance minigames.
  • Makes Windows Alt cursor unlock use live Win32 key state instead of stale ImGui Alt state.
  • Fixed some bugs related to KBM not working anymore if you Alt-Tabbed the game.

Changes

File Change
src/tip_engine/Globals.h Added shared romance-minigame state and mouse input flushing helpers.
src/tip_engine/hooks.cpp Updated romance hooks to save/restore video cvars safely and clear romance state on exit.
src/tip_engine/Overlays/TiPTools.cpp Changed Windows Alt unlock detection to use GetAsyncKeyState(VK_MENU).

Testing

  • Romance minigame KBM movement tested.
  • Mouse zoom tested after the romance/focus changes.
  • Alt unlock tested on Windows.
  • Alt-Tab recovery tested together with the Rexglue-side focus fix.

Notes

This PR pairs with the Rexglue KBM/focus commit at https://github.com/SolarCookies/rexglue-sdk/tree/VivaPinata. The TiP-Recomp side handles game-specific state and input flushing; Rexglue handles platform focus/capture recovery.

@SolarCookies
SolarCookies merged commit 53a73c5 into SolarCookies:dev May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants