📝 Register SDL input release settings [ci skip]

List the new configuration switches and the window tests that guard them.
This commit is contained in:
YXC0915 committed 2026-12-04 15:50:25 +08:00
1 parent 76791eb6b6
commit d427f1bd86
1 file changed
+15
+15
View File
@@ -28,6 +28,8 @@ them; its `manual` checks are on a Linux host's guest boot.
| `displays=2` | the reims-graphics device's displays, 1 to 4, a window each (QEMU's reims-graphics-pci property; 1 by default) |
| `REIMS_VGPU_WINDOW_IMPL=sdl` | macOS, built with the `macos-sdl` feature (on by default): SDL3's window in place of AppKit's ("On macOS through SDL3" below) |
| `REIMS_VGPU_WINDOW_CAPTURE=0` | capture off: no window ever captures the keyboard or the pointer ("Capture off" below); reims-ctl sets it for a VM whose capture setting is off |
| `REIMS_VGPU_WINDOW_RELEASE_KEYS=Ctrl+Shift+F12` | additional release shortcut for SDL windows on Windows and Linux; when unset, `REIMS_PLUGIN_LOCAL_CAPTURE_SHORTCUT_KEYS` can supply it |
| `REIMS_PLUGIN_LOCAL_CAPTURE_SHORTCUT_RELEASE_ON_LEAVE=1` | on Windows and Linux, allow the pointer to leave a captured SDL window and release input when it leaves |
Unset or unparsable values give the defaults below.
`test: env::unset_or_unparsable_values_are_the_defaults`,
@@ -700,6 +702,19 @@ runtime's own device. The switches above apply, and `resolution=` too.
`test: sdl::shell::the_end_lets_go_of_the_grab_and_the_holds`,
`test: sdl::shell::the_pointer_is_held_over_the_image_in_whole_points`,
`manual` (the grab and the hold)
- An additional release shortcut uses at least one modifier and one to three
ordinary keys. The captured title shows the shortcut, and an empty or
invalid setting uses the default. The built-in release chord still works
with an additional shortcut set.
`test: native::sdl_thread::input::custom_shortcut_releases_capture_without_forwarding_its_final_key`,
`test: native::sdl_thread::input::custom_shortcut_can_hold_two_regular_keys`,
`test: native::sdl_thread::input::invalid_shortcut_keeps_the_default`
- With release on mouse leave enabled, capture allows the pointer out of the
window. The SDL mouse-leave event lifts held keys and buttons and releases
capture. This setting also turns off relative pointer locks in games and
at a shared display edge.
`test: native::sdl_thread::input::leaving_the_window_releases_mouse_and_keyboard_when_enabled`,
`manual` (move the pointer out of a captured SDL window)
- Scrolling: the wheel's notches, or, where the host takes smooth
scrolling, its lines at 10 points each, in no gesture (SDL gives no
phases); the guest gets the device's own direction.