Three switches, each on by default, each 0 restoring the behaviour before it: VICTORY_FULLSCREEN (borderless, VICTORY_FULLSCREEN_RES for another size), VICTORY_IME_ENGLISH (the window's input context to en-US), and VICTORY_MOUSE_CAPTURE (clip to the client area and hide the pointer, release on focus loss).
Capture also fixes a mistake in the mouse device merged as #9: it warped the pointer back to the centre after every sample, which pins the absolute position the title reads and makes the camera look frozen. Warping is now VICTORY_MOUSE_WARP, off by default; with it on the delta is taken from the centre.
Measured on an RTX 5070 Ti Laptop (12 GB): window 0,0-1920,1080 with a client area of the same size and GetClipCursor returning it. cargo build --release and --profile diag pass, cargo test -p victory-hle: 162 passed, 2 ignored.
Written with an AI assistant.
GameInput in this layer offered four XInput pads, a stand-in pad driven by the
keyboard, and the keyboard, but no mouse. The title polls GameInput for mouse
movement, reads nothing, and never turns the camera while the keyboard works.
The new device reports position deltas taken from the host cursor inside our own
window and the three buttons. It exists only while our window is in the
foreground and goes away with a disconnect callback when focus leaves, so
moving the pointer elsewhere does not spin the camera. Wheel rotation is not
reported: the host call used here cannot see it.
`VICTORY_GAMEPAD_MOUSE=0` leaves the device out entirely, which is what the
layer did before. Verified in a run: with the window in front the device appears
(kind 0x20) and it does not appear while another window has focus.