Skip to content

Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.

C++
772 B
Raw Blame
#pragma once

namespace veyra::ui {
// Scaled output must not pass absolute mouse positions to an unscaled window.
// Keyboard/gamepad input can still belong to the foreground capture target.
enum class GameInputMode { Off, Panel, Through, Scaled };

constexpr bool gameViewportScaled(bool fill, int aspectMode) {
    return fill || aspectMode != 0;
}

constexpr GameInputMode gameInputMode(bool session, bool fullscreen, bool refused,
                                     bool panel, bool scaled) {
    // Opening a source is sufficient; feature initialization is not an entry delay.
    if (!session || !fullscreen || refused) return GameInputMode::Off;
    if (panel) return GameInputMode::Panel;
    return scaled ? GameInputMode::Scaled : GameInputMode::Through;
}
}