mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 06:40:42 -07:00
[+] Hide sides on gitadora 𝛿 (#705)
## Description of change Added an option to only disable the left/right screens of gitadora gw delta while exposing the touch panel screen. ## Testing Tested by hand on CachyOS + hyprland + gamescope + wine + vnc + phone + cat 🐈⬛ <img width="2560" height="1707" alt="image" src="https://github.com/user-attachments/assets/a2ef0172-68e2-43c2-89c3-4863698f2f00" />
This commit is contained in:
@@ -645,11 +645,26 @@ int main_implementation(int argc, char *argv[]) {
|
||||
if (options[launcher::Options::GitaDoraCabinetType].is_active()) {
|
||||
games::gitadora::CAB_TYPE = options[launcher::Options::GitaDoraCabinetType].value_uint32();
|
||||
}
|
||||
if (options[launcher::Options::GitaDoraArenaWindowLayout].is_active()) {
|
||||
if (GRAPHICS_WINDOWED) {
|
||||
const auto window_count = options[launcher::Options::GitaDoraArenaWindowLayout].value_uint32();
|
||||
if (window_count == 1) {
|
||||
GRAPHICS_PREVENT_SECONDARY_WINDOW = true;
|
||||
} else if (window_count == 2) {
|
||||
GRAPHICS_GITADORA_HIDE_SIDE_WINDOWS = true;
|
||||
}
|
||||
} else {
|
||||
log_warning("launcher", "-gdawindows only applies with -w; ignoring GitaDora Arena windowed layout");
|
||||
}
|
||||
}
|
||||
if (options[launcher::Options::GitaDoraArenaSingleWindow].value_bool()) {
|
||||
// for full screen
|
||||
GRAPHICS_FORCE_SINGLE_ADAPTER = true;
|
||||
// for windowed
|
||||
GRAPHICS_PREVENT_SECONDARY_WINDOW = true;
|
||||
if (GRAPHICS_WINDOWED) {
|
||||
GRAPHICS_PREVENT_SECONDARY_WINDOW = true;
|
||||
GRAPHICS_GITADORA_HIDE_SIDE_WINDOWS = false;
|
||||
} else {
|
||||
GRAPHICS_FORCE_SINGLE_ADAPTER = true;
|
||||
GRAPHICS_PREVENT_SECONDARY_WINDOW = true;
|
||||
}
|
||||
}
|
||||
if (options[launcher::Options::GitaDoraWailHold].is_active()) {
|
||||
socd::TILT_HOLD_MS = options[launcher::Options::GitaDoraWailHold].value_uint32();
|
||||
|
||||
Reference in New Issue
Block a user