diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md
index 837da90..9253735 100644
--- a/CHANGELOG.en-US.md
+++ b/CHANGELOG.en-US.md
@@ -9,6 +9,7 @@ English (US) release notes, mirroring CHANGELOG.md (Brazilian Portuguese). Befor
- Console interface: the Home tiles show the official Steam, Playnite and Xbox logos, read from the installed apps, and Custom app shows its `.exe` icon. When an app isn't installed, its tile keeps the generic icon. (#169)
- **Per-game profiles**: each Steam game can have its own resolution, HDR, FPS limit and audio output. With the game running, open the session menu and pick **Game profile → Save the current settings**; next time it starts in console mode, the profile is applied by itself and undone when the game closes. Also works for Steam games opened from Playnite or the Xbox app. Profiles are listed in Settings → **Per-game profiles**, where you can delete them. (#170)
- **JoyChromium** as a launcher: with [JoyChromium](https://github.com/lippdev/joychromium) installed (the TV browser you drive with the controller), it shows up in the Home row and under When entering console mode. Its tile shows JoyChromium's own icon. Console Mode opens it full screen on the game screen and restores the desk when you close it. Going back to the PC while it's still open takes it out of full screen and leaves it as a window, tabs and all. (#175)
+- **Move the mouse pointer out of the way** (issue #172): when the launcher shows up on the TV, the pointer goes to the bottom-right corner of the game screen (twice, since Steam recenters it while opening) and goes back where it was when you return to the PC. On by default; turn it off in Settings or under System → When entering console mode. Based on @JarJarShinks' version in #173. (#177)
### Fixes
- Custom app: Console Mode moves only the program's largest window to the game screen, instead of every window Windows reports as its main one; a tooltip is no longer stretched over the TV. (#175)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f3f831e..fcafa72 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@ Notas em português do Brasil; a versão em inglês (Estados Unidos) fica em `CH
- Interface Console: os blocos do Início mostram os logos oficiais da Steam, do Playnite e do Xbox, lidos dos apps instalados, e o Aplicativo personalizado mostra o ícone do seu `.exe`. Sem o app instalado, o bloco mantém o ícone genérico. (#169)
- **Perfis por jogo**: cada jogo da Steam pode ter sua própria resolução, HDR, limite de FPS e saída de áudio. Com o jogo rodando, abra o menu da sessão e escolha **Perfil do jogo → Salvar os ajustes atuais**; da próxima vez que ele abrir no modo console, o perfil é aplicado sozinho e desfeito quando o jogo fecha. Vale também para jogos da Steam abertos pelo Playnite ou pelo app Xbox. Os perfis ficam em Ajustes → **Perfis por jogo**, onde dá para apagá-los. (#170)
- **JoyChromium** como iniciador: com o [JoyChromium](https://github.com/lippdev/joychromium) instalado (o navegador para a TV que se usa com o controle), ele aparece na fileira da Início e em Ao entrar no modo console. O tile mostra o ícone do próprio JoyChromium. O Console Mode o abre em tela cheia na tela de jogo e devolve a mesa quando você o fecha. Voltar ao PC com ele ainda aberto o tira da tela cheia e o deixa como janela, sem perder as abas. (#175)
+- **Tirar o ponteiro do mouse do caminho** (issue #172): quando o iniciador aparece na TV, o ponteiro vai para o canto inferior direito da tela de jogo (duas vezes, porque a Steam o recentraliza ao abrir) e, ao voltar ao PC, volta para onde estava. Ligado por padrão; desligue em Ajustes ou em Sistema → Ao entrar no modo console. Baseado na versão de @JarJarShinks no #173. (#177)
### Correções
- Aplicativo personalizado: o Console Mode leva para a tela de jogo só a maior janela do programa, em vez de todas as que o Windows aponta como principal; uma dica de ferramenta não é mais esticada sobre a TV. (#175)
diff --git a/docs/GUIDE.de-DE.md b/docs/GUIDE.de-DE.md
index db978cb..75c8765 100644
--- a/docs/GUIDE.de-DE.md
+++ b/docs/GUIDE.de-DE.md
@@ -30,6 +30,8 @@ Bei der Rückkehr aus Big Picture schließt **Steam beim Zurückkehren zum PC in
Ein Wechsel des Hauptbildschirms kann Windows dazu bringen, die Desktopsymbole neu anzuordnen. **Desktopsymbole wieder an ihren Platz setzen** (standardmäßig an) speichert vor der Sitzung, wo sie liegen, und setzt sie nach der Wiederherstellung wieder dorthin. Ist auf dem Desktop **Symbole automatisch anordnen** aktiv, passiert nichts, weil Windows sie dann selbst anordnet.
+**Mauszeiger aus dem Weg räumen** (standardmäßig an): Sobald der Launcher auf dem Fernseher erscheint, wandert der Zeiger in die untere rechte Ecke des Spielbildschirms, und einige Sekunden später noch einmal, weil Steam ihn beim Öffnen von Big Picture wieder zentriert. Beim Zurückkehren zum PC kommt er an seine alte Stelle zurück. Den Zeiger ganz auszublenden bleibt eine Option im Sitzungsmenü.
+
**PC mit dem Controller aufwecken** erlaubt dem Xbox Wireless Adapter, Bluetooth oder einem Controller am Kabel, den PC mit der mittleren Taste des Controllers aus dem Energiesparmodus zu wecken. **Einschalten** fragt Windows nach Administratorrechten und aktiviert bei diesen Geräten *Gerät kann den Computer aus dem Ruhezustand aktivieren*. Ein ausgeschalteter PC oder einer im Ruhezustand wacht nicht auf, und manche PCs schalten Bluetooth im Energiesparmodus ab. Zusammen mit **Beim Verbinden eines Controllers starten** wacht der PC direkt im Konsolenmodus auf.
**Profile pro Spiel** geben jedem Steam-Spiel eine eigene Auflösung, HDR, ein FPS-Limit und eine Audioausgabe. Öffne bei laufendem Spiel das Sitzungsmenü und wähle **Spielprofil → Aktuelle Einstellungen für … speichern**: Gespeichert wird, was der Spielbildschirm in diesem Moment nutzt. Wenn das Spiel das nächste Mal während einer Sitzung startet, wendet Console Mode das Profil an, und beim Schließen kehrt der Bildschirm in den vorherigen Zustand zurück. Das Spiel wird über Steam erkannt, egal ob es aus Big Picture, Playnite oder der Xbox-App gestartet wurde. Die gespeicherten Profile stehen unter Einstellungen → **Profile pro Spiel** und lassen sich dort löschen (in der Konsolenoberfläche: System → Beim Starten des Konsolenmodus).
diff --git a/docs/GUIDE.es-ES.md b/docs/GUIDE.es-ES.md
index bf79d43..a0fa7c7 100644
--- a/docs/GUIDE.es-ES.md
+++ b/docs/GUIDE.es-ES.md
@@ -30,6 +30,8 @@ Al volver de Big Picture, **Enviar Steam a la bandeja al volver al PC** cierra l
Cambiar la pantalla principal puede hacer que Windows reordene los iconos del escritorio. **Devolver los iconos del escritorio a su sitio** (activado por defecto) guarda su posición antes de la sesión y los vuelve a colocar después de restaurar el escritorio. No hace nada si **Organizar iconos automáticamente** está activado en el escritorio, porque entonces Windows los coloca por sí mismo.
+**Apartar el puntero del ratón** (activado por defecto): cuando el iniciador aparece en la TV, el puntero va a la esquina inferior derecha de la pantalla de juego, y otra vez unos segundos después, porque Steam lo vuelve a centrar al abrir Big Picture. Al volver al PC, vuelve a donde estaba. Ocultar el puntero del todo sigue siendo una opción del menú de la sesión.
+
**Despertar el PC con el mando** permite que el adaptador inalámbrico Xbox, el Bluetooth o un mando con cable despierten el PC de la suspensión con el botón central del mando. **Activar** pide permiso de administrador a Windows y marca *Permitir que este dispositivo reactive el equipo* en esos dispositivos. No despierta un PC apagado o en hibernación, y algunos PC cortan la energía del Bluetooth al suspender. Junto con **Entrar al conectar un mando**, el PC despierta directamente en modo consola.
Los **perfiles por juego** dan a cada juego de Steam su propia resolución, HDR, límite de FPS y salida de audio. Con el juego en marcha, abre el menú de la sesión y elige **Perfil del juego → Guardar los ajustes actuales para…**: se guarda lo que usa la pantalla de juego en ese momento. La próxima vez que ese juego se abra durante una sesión, Console Mode aplica el perfil y, cuando el juego se cierra, la pantalla vuelve a estar como antes. El juego se detecta a través de Steam, tanto si se abre desde Big Picture como desde Playnite o la aplicación Xbox. Los perfiles guardados aparecen en Ajustes → **Perfiles por juego**, donde puedes borrarlos (en la interfaz Consola: Sistema → Al entrar en modo consola).
diff --git a/docs/GUIDE.fr-FR.md b/docs/GUIDE.fr-FR.md
index dd13555..4e8bd97 100644
--- a/docs/GUIDE.fr-FR.md
+++ b/docs/GUIDE.fr-FR.md
@@ -30,6 +30,8 @@ Au retour de Big Picture, **Réduire Steam dans la zone de notification au retou
Changer d'écran principal peut amener Windows à mélanger les icônes du bureau. **Remettre les icônes du bureau à leur place** (activé par défaut) enregistre leur position avant la session et les remet en place une fois le bureau restauré. Sans effet si **Réorganiser automatiquement les icônes** est activé sur le bureau, car Windows les place alors lui-même.
+**Écarter le pointeur de la souris** (activé par défaut) : quand le lanceur apparaît sur la TV, le pointeur part dans le coin inférieur droit de l'écran de jeu, puis encore quelques secondes plus tard, car Steam le recentre à l'ouverture de Big Picture. Au retour sur le PC, il revient là où il était. Masquer complètement le pointeur reste un choix du menu de session.
+
**Réveiller le PC avec la manette** permet à l'adaptateur sans fil Xbox, au Bluetooth ou à une manette filaire de sortir le PC de la veille avec le bouton central de la manette. **Activer** demande l'autorisation d'administrateur à Windows et coche *Autoriser ce périphérique à sortir l'ordinateur du mode veille* sur ces périphériques. Un PC éteint ou en veille prolongée ne se réveille pas, et certains PC coupent le Bluetooth pendant la veille. Avec **Entrer à la connexion d'une manette**, le PC se réveille directement en mode console.
Les **profils par jeu** donnent à chaque jeu Steam sa propre résolution, son HDR, sa limite de FPS et sa sortie audio. Pendant que le jeu tourne, ouvrez le menu de la session et choisissez **Profil du jeu → Enregistrer les réglages actuels pour…** : ce qu'utilise l'écran de jeu à ce moment-là est enregistré. La prochaine fois que ce jeu démarre pendant une session, Console Mode applique le profil et, quand le jeu se ferme, l'écran revient à son état précédent. Le jeu est détecté via Steam, qu'il soit lancé depuis Big Picture, Playnite ou l'application Xbox. Les profils enregistrés sont listés dans Paramètres → **Profils par jeu**, où vous pouvez les supprimer (dans l'interface Console : Système → À l'entrée en mode console).
diff --git a/docs/GUIDE.md b/docs/GUIDE.md
index 050c5bd..4d038c5 100644
--- a/docs/GUIDE.md
+++ b/docs/GUIDE.md
@@ -38,6 +38,8 @@ When returning from Big Picture, **Send Steam to the tray when going back to the
Changing the main display can make Windows reshuffle the desktop icons. **Put desktop icons back in place** (on by default) saves where they are before the session and puts them back after the desk is restored. It does nothing when the desktop's **Auto arrange icons** is on, since Windows lays them out itself then.
+**Move the mouse pointer out of the way** (on by default): when the launcher shows up on the TV, the pointer goes to the bottom-right corner of the game screen, and again a few seconds later because Steam recenters it while Big Picture opens. Going back to the PC puts it back where it was. Hiding the pointer altogether is still a choice in the session menu.
+
**Wake the PC with the controller** lets the Xbox Wireless Adapter, the Bluetooth radio or a wired controller wake the PC from sleep with the controller's center button. **Turn on** asks Windows for administrator permission and ticks *Allow this device to wake the computer* on those devices. It can't wake a PC that is shut down or hibernating, and some PCs cut power to Bluetooth while asleep. Together with **Enter when a controller connects**, the PC wakes straight into console mode.
**Per-game profiles** give each Steam game its own resolution, HDR, FPS limit and audio output. With the game running, open the session menu and pick **Game profile → Save the current settings for…**: whatever the game screen uses at that moment is saved. Next time that game starts during a session, Console Mode applies it, and when the game closes the screen goes back to how it was. The game is detected from Steam, whether it was opened from Big Picture, Playnite or the Xbox app. The saved profiles are listed in Settings → **Per-game profiles**, where you can delete them (in the Console interface: System → When entering console mode).
diff --git a/docs/GUIDE.pt-BR.md b/docs/GUIDE.pt-BR.md
index a43ffea..5255a25 100644
--- a/docs/GUIDE.pt-BR.md
+++ b/docs/GUIDE.pt-BR.md
@@ -38,6 +38,8 @@ Ao voltar do Big Picture, **Mandar a Steam para a bandeja ao voltar ao PC** fech
Trocar a tela principal pode fazer o Windows embaralhar os ícones da área de trabalho. **Devolver os ícones da área de trabalho ao lugar** (ligado por padrão) salva a posição deles antes da sessão e os coloca de volta depois que a mesa é restaurada. Não faz nada quando **Organizar ícones automaticamente** está ligado na área de trabalho, porque aí o próprio Windows os arruma.
+**Tirar o ponteiro do mouse do caminho** (ligado por padrão): quando o iniciador aparece na TV, o ponteiro vai para o canto inferior direito da tela de jogo, e de novo alguns segundos depois, porque a Steam o recentraliza ao abrir o Big Picture. Ao voltar ao PC, ele volta para onde estava. Esconder o ponteiro de vez continua sendo uma escolha no menu da sessão.
+
**Acordar o PC pelo controle** deixa o adaptador sem fio Xbox, o Bluetooth ou o controle no cabo acordarem o PC da suspensão pelo botão central do controle. **Ativar** pede permissão de administrador ao Windows e marca *Permitir que este dispositivo ative o computador* nesses dispositivos. Não acorda o PC desligado ou em hibernação, e alguns PCs cortam a energia do Bluetooth ao suspender. Junto com **Entrar ao conectar um controle**, o PC já acorda no modo console.
**Perfis por jogo** dão a cada jogo da Steam sua própria resolução, HDR, limite de FPS e saída de áudio. Com o jogo rodando, abra o menu da sessão e escolha **Perfil do jogo → Salvar os ajustes atuais para…**: o que a tela de jogo usa naquele momento fica salvo. Da próxima vez que esse jogo abrir durante uma sessão, o Console Mode aplica o perfil e, quando o jogo fecha, a tela volta a ser como era. O jogo é detectado pela Steam, seja ele aberto pelo Big Picture, pelo Playnite ou pelo app Xbox. Os perfis salvos ficam em Ajustes → **Perfis por jogo**, onde dá para apagá-los (na interface Console: Sistema → Ao entrar no modo console).
diff --git a/docs/GUIDE.ru-RU.md b/docs/GUIDE.ru-RU.md
index 63ca32a..36002b4 100644
--- a/docs/GUIDE.ru-RU.md
+++ b/docs/GUIDE.ru-RU.md
@@ -30,6 +30,8 @@
При смене основного экрана Windows может перемешать значки рабочего стола. Параметр **«Возвращать значки рабочего стола на место»** (включён по умолчанию) запоминает их расположение перед сеансом и возвращает значки после восстановления рабочего места. Если на рабочем столе включено **«Упорядочить значки автоматически»**, параметр ничего не делает: Windows расставляет их сам.
+**Убирать указатель мыши** (включено по умолчанию): когда лаунчер появляется на телевизоре, указатель перемещается в правый нижний угол игрового экрана, а через несколько секунд — ещё раз, потому что Steam снова ставит его в центр при открытии Big Picture. При возврате к ПК он возвращается на прежнее место. Полностью скрыть указатель по-прежнему можно в меню сеанса.
+
Параметр **«Пробуждать ПК геймпадом»** разрешает беспроводному адаптеру Xbox, Bluetooth или проводному геймпаду выводить ПК из спящего режима центральной кнопкой геймпада. Кнопка **«Включить»** запрашивает у Windows права администратора и отмечает у этих устройств *Разрешить этому устройству выводить компьютер из ждущего режима*. Выключенный ПК или ПК в режиме гибернации не проснётся, а некоторые ПК отключают питание Bluetooth во сне. Вместе с **«Входить при подключении геймпада»** ПК сразу проснётся в режиме консоли.
**Профили для игр** задают каждой игре Steam собственные разрешение, HDR, ограничение FPS и аудиовыход. Во время игры откройте меню сеанса и выберите **«Профиль игры» → «Сохранить текущие настройки для…»**: сохранится то, что игровой экран использует в этот момент. Когда эта игра в следующий раз запустится во время сеанса, Console Mode применит профиль, а после её закрытия экран вернётся в прежнее состояние. Игра определяется через Steam, независимо от того, запущена ли она из Big Picture, Playnite или приложения Xbox. Сохранённые профили перечислены в разделе «Параметры» → **«Профили для игр»**, где их можно удалить (в консольном интерфейсе: «Система» → «При входе в режим консоли»).
diff --git a/docs/PRD.md b/docs/PRD.md
index f8acd5e..ac6bbc8 100644
--- a/docs/PRD.md
+++ b/docs/PRD.md
@@ -314,7 +314,7 @@ Legenda: **P0** = necessário para a 1.7.0; **P1** = próxima versão; **P2** =
| | Itens | Por quê |
|---|---|---|
| **Must** | DESK-001 (#167), INPUT-013 (#168), LAUNCH-007 (#169), PROF-001 (#170), LAUNCH-011 (#175), REL-020 | já estão em PR com CI verde; fecham a versão |
-| **Should** | INPUT-014 (ponteiro, #172), DOC-010 (este PRD), DOC-011 (#171) | pedido de usuário com resposta prometida; documentação |
+| **Should** | INPUT-014 (ponteiro, #172, #177), DOC-010 (este PRD), DOC-011 (#171) | pedido de usuário com resposta prometida; documentação |
| **Could** | CORE-012 (restauração durável), LAUNCH-012 (scripts de início e fim) | ajudam a recuperação; dependem da divisão do #173 |
| **Won't (agora)** | CORE-013 (taxa NTSC), tudo de P2 e P3 | precisa de hardware para validar e de PR separado |
@@ -376,7 +376,7 @@ Legenda: **P0** = necessário para a 1.7.0; **P1** = próxima versão; **P2** =
- [x] **INPUT-011 —** Esconder o ponteiro e mouse pelo controle no menu da sessão (D-12). (#145, 1.6.1)
- [x] **INPUT-012 —** Bateria do controle no menu e na interface Console, com avisos em 15 % e 5 %. (#160, 1.7.0-alpha.1)
- [ ] **INPUT-013 (P0) —** Acordar o PC pelo controle (adaptador Xbox, Bluetooth, cabo). (#168; ajuste na Fase 1.7)
-- [ ] **INPUT-014 (P1) —** Estacionar o ponteiro no canto da tela de jogo quando o launcher aparece, ligado por padrão, devolvendo a posição ao voltar (D-21). Issue #172; base no #173.
+- [x] **INPUT-014 —** Estacionar o ponteiro no canto da tela de jogo quando o launcher aparece, ligado por padrão, devolvendo a posição ao voltar (D-21). Issue #172; base de @JarJarShinks no #173. (#177, 1.7.0)
- [ ] **INPUT-015 (P3) —** Atalhos por voz e assistente (Alexa, MCP). Issue #12.
### Épico UI — Interface Console e Desktop
diff --git a/docs/TESTING.md b/docs/TESTING.md
index 7c3c1b5..2fe9dbc 100644
--- a/docs/TESTING.md
+++ b/docs/TESTING.md
@@ -594,3 +594,13 @@ Pré-condições: [JoyChromium](https://github.com/lippdev/joychromium) instalad
- [ ] Com o JoyChromium já aberto em janela antes de começar: **Jogar agora** leva a janela aberta para a tela de jogo em tela cheia (não abre um segundo navegador). Resultado: ______
- [ ] Passar o mouse sobre um link no JoyChromium durante a sessão (aparece a dica do endereço): a dica não é esticada nem levada para a TV. Resultado: ______
- [ ] Menu da sessão (Select + Y) por cima do JoyChromium: abre, e **Voltar ao jogo** devolve o foco ao navegador. Resultado: ______
+
+## Tirar o ponteiro do mouse do caminho (issue #172, #177)
+
+Pré-condições: a opção **Tirar o ponteiro do mouse do caminho** ligada (é o padrão); mouse conectado.
+
+- [ ] Deixar o ponteiro no meio do monitor da mesa e **Jogar agora** com o Steam Big Picture: quando o Big Picture aparece na TV, o ponteiro vai para o canto inferior direito da TV e continua lá depois que o Big Picture termina de abrir (o log mostra `Ponteiro: estacionado` duas vezes). Resultado: ______
+- [ ] O mesmo com Playnite, JoyChromium e Aplicativo personalizado. Com o modo Xbox, o ponteiro vai para o canto uns 4 s depois de abrir. Resultado: ______
+- [ ] Voltar ao PC: o ponteiro volta exatamente para onde estava no monitor da mesa (log: `Ponteiro: de volta a`). Resultado: ______
+- [ ] Desligar a opção (Ajustes ou Sistema → Ao entrar no modo console): o ponteiro não é movido nem ao começar nem ao voltar. Resultado: ______
+- [ ] Com **Esconder o ponteiro do mouse** ligado no menu da sessão, nada muda: o ponteiro some e reaparece no canto quando a opção é desligada. Resultado: ______
diff --git a/src/ConsoleMode/Models/Models.cs b/src/ConsoleMode/Models/Models.cs
index 5e4f18e..3b59afe 100644
--- a/src/ConsoleMode/Models/Models.cs
+++ b/src/ConsoleMode/Models/Models.cs
@@ -81,6 +81,9 @@ public sealed class AppConfig
/// Put the desktop icons back where they were after the session (issue #30).
public bool RestoreDesktopIcons { get; set; } = true;
+ /// Move the mouse pointer to a corner of the game screen once the launcher is up, and back afterwards (issue #172).
+ public bool ParkPointer { get; set; } = true;
+
/// Enter console mode when a controller connects while the app is in the tray.
public bool AutoStartOnController { get; set; }
@@ -396,6 +399,11 @@ public sealed class ConsoleRuntimeState
public string? BackupAudioId { get; set; }
/// The desktop icons read before the session; null when they aren't restored.
public List? DesktopIcons { get; set; }
+ /// Park the pointer this session; how many times it was parked, when, and where it was before.
+ public bool ParkPointer { get; set; }
+ public int PointerParks { get; set; }
+ public DateTime? LastPointerPark { get; set; }
+ public (int X, int Y)? PointerBefore { get; set; }
/// Per-game profiles for this session; the session menu updates them as they are saved.
public List GameProfiles { get; set; } = [];
/// The Steam game running now (0 = none), and the screen as it was when it started.
diff --git a/src/ConsoleMode/Native/MousePointer.cs b/src/ConsoleMode/Native/MousePointer.cs
new file mode 100644
index 0000000..32011bb
--- /dev/null
+++ b/src/ConsoleMode/Native/MousePointer.cs
@@ -0,0 +1,31 @@
+using System.Runtime.InteropServices;
+
+namespace ConsoleMode.Native;
+
+/// Where the mouse pointer is, moving it, and whether a point is on a screen that is on.
+public static class MousePointer
+{
+ [StructLayout(LayoutKind.Sequential)]
+ private struct POINT
+ {
+ public int X, Y;
+ }
+
+ private const uint MONITOR_DEFAULTTONULL = 0;
+
+ [DllImport("user32.dll", SetLastError = true)]
+ private static extern bool GetCursorPos(out POINT point);
+
+ [DllImport("user32.dll", SetLastError = true)]
+ private static extern bool SetCursorPos(int x, int y);
+
+ [DllImport("user32.dll")]
+ private static extern nint MonitorFromPoint(POINT point, uint flags);
+
+ public static (int X, int Y)? Position() => GetCursorPos(out var p) ? (p.X, p.Y) : null;
+
+ public static bool MoveTo(int x, int y) => SetCursorPos(x, y);
+
+ /// True when some screen that is on contains the point.
+ public static bool IsOnScreen(int x, int y) => MonitorFromPoint(new POINT { X = x, Y = y }, MONITOR_DEFAULTTONULL) != 0;
+}
diff --git a/src/ConsoleMode/Resources/Strings.de-DE.json b/src/ConsoleMode/Resources/Strings.de-DE.json
index 7bf3819..a181a04 100644
--- a/src/ConsoleMode/Resources/Strings.de-DE.json
+++ b/src/ConsoleMode/Resources/Strings.de-DE.json
@@ -135,6 +135,8 @@
"CloseSteamDescription": "Wenn du Big Picture verlässt, erhält Steam eine normale Aufforderung zum Schließen des Fensters und kann so in den Infobereich wechseln, ohne den Prozess zu beenden. Wenn ein Spiel läuft oder sein Status nicht ermittelt werden kann, bleibt das Fenster unverändert.",
"RestoreIconsCard": "Desktopsymbole wieder an ihren Platz setzen",
"RestoreIconsDescription": "Speichert vor der Sitzung, wo die Desktopsymbole liegen, und setzt sie bei der Rückkehr zum PC wieder dorthin, falls Windows sie beim Wechsel des Hauptbildschirms durcheinanderbringt. Bei aktivierter automatischer Anordnung passiert nichts.",
+ "ParkPointerCard": "Mauszeiger aus dem Weg räumen",
+ "ParkPointerDescription": "Sobald der Launcher auf dem Fernseher erscheint, wird der Zeiger in die untere rechte Ecke des Spielbildschirms bewegt, damit er nicht mitten im Bild steht. Beim Zurückkehren zum PC kommt er an seine alte Stelle zurück.",
"GameProfilesCard": "Profile pro Spiel",
"GameProfilesDescription": "Eigene Auflösung, HDR, FPS-Limit und Audioausgabe für jedes Steam-Spiel. Zum Anlegen öffnest du das Sitzungsmenü, während das Spiel läuft, und wählst Spielprofil → Aktuelle Einstellungen speichern. Das Profil gilt, wenn das Spiel startet, und wird beim Schließen rückgängig gemacht.",
"GameProfilesEmpty": "Keine gespeicherten Profile",
diff --git a/src/ConsoleMode/Resources/Strings.en-US.json b/src/ConsoleMode/Resources/Strings.en-US.json
index 1ee91c7..ea6b8d4 100644
--- a/src/ConsoleMode/Resources/Strings.en-US.json
+++ b/src/ConsoleMode/Resources/Strings.en-US.json
@@ -135,6 +135,8 @@
"CloseSteamDescription": "When you leave Big Picture, Steam receives a normal window-close request so it can move to the tray without exiting the process. If a game is running or its state cannot be checked, the window is left unchanged.",
"RestoreIconsCard": "Put desktop icons back in place",
"RestoreIconsDescription": "Saves where the desktop icons are before the session and puts them back when you return to the PC, in case Windows reshuffles them while the main display changes. Does nothing when auto arrange is on.",
+ "ParkPointerCard": "Move the mouse pointer out of the way",
+ "ParkPointerDescription": "When the launcher shows up on the TV, moves the pointer to the bottom-right corner of the game screen so it doesn't sit in the middle of the picture. Going back to the PC puts it back where it was.",
"GameProfilesCard": "Per-game profiles",
"GameProfilesDescription": "Each Steam game's own resolution, HDR, FPS limit and audio output. To create one, open the session menu while the game runs and pick Game profile → Save the current settings. The profile applies when the game starts and is undone when it closes.",
"GameProfilesEmpty": "No saved profiles",
diff --git a/src/ConsoleMode/Resources/Strings.es-ES.json b/src/ConsoleMode/Resources/Strings.es-ES.json
index c2dc64c..cd7c674 100644
--- a/src/ConsoleMode/Resources/Strings.es-ES.json
+++ b/src/ConsoleMode/Resources/Strings.es-ES.json
@@ -135,6 +135,8 @@
"CloseSteamDescription": "Al salir de Big Picture, Steam recibe una solicitud normal para cerrar la ventana y pasar a la bandeja sin finalizar el proceso. Si hay un juego en ejecución o no se puede comprobar su estado, la ventana no se modifica.",
"RestoreIconsCard": "Devolver los iconos del escritorio a su sitio",
"RestoreIconsDescription": "Guarda la posición de los iconos del escritorio antes de la sesión y los vuelve a colocar al volver al PC, por si Windows los reordena al cambiar la pantalla principal. No hace nada si la organización automática está activada.",
+ "ParkPointerCard": "Apartar el puntero del ratón",
+ "ParkPointerDescription": "Cuando el iniciador aparece en la TV, lleva el puntero a la esquina inferior derecha de la pantalla de juego para que no quede en medio de la imagen. Al volver al PC, el puntero vuelve a donde estaba.",
"GameProfilesCard": "Perfiles por juego",
"GameProfilesDescription": "Resolución, HDR, límite de FPS y salida de audio propios de cada juego de Steam. Para crear uno, abre el menú de la sesión con el juego en marcha y elige Perfil del juego → Guardar los ajustes actuales. El perfil se aplica cuando el juego se abre y se deshace cuando se cierra.",
"GameProfilesEmpty": "Ningún perfil guardado",
diff --git a/src/ConsoleMode/Resources/Strings.fr-FR.json b/src/ConsoleMode/Resources/Strings.fr-FR.json
index 7f4b76c..6553e01 100644
--- a/src/ConsoleMode/Resources/Strings.fr-FR.json
+++ b/src/ConsoleMode/Resources/Strings.fr-FR.json
@@ -135,6 +135,8 @@
"CloseSteamDescription": "Quand vous quittez Big Picture, Steam reçoit une demande normale de fermeture de fenêtre pour qu'il passe dans la zone de notification sans quitter le processus. Si un jeu est en cours ou si son état ne peut pas être vérifié, la fenêtre n'est pas modifiée.",
"RestoreIconsCard": "Remettre les icônes du bureau à leur place",
"RestoreIconsDescription": "Enregistre la position des icônes du bureau avant la session et les remet en place au retour au PC, au cas où Windows les mélange en changeant d'écran principal. Sans effet si la réorganisation automatique est activée.",
+ "ParkPointerCard": "Écarter le pointeur de la souris",
+ "ParkPointerDescription": "Quand le lanceur apparaît sur la TV, le pointeur est déplacé dans le coin inférieur droit de l'écran de jeu pour ne pas rester au milieu de l'image. Au retour sur le PC, il revient là où il était.",
"GameProfilesCard": "Profils par jeu",
"GameProfilesDescription": "Résolution, HDR, limite de FPS et sortie audio propres à chaque jeu Steam. Pour en créer un, ouvrez le menu de la session pendant que le jeu tourne et choisissez Profil du jeu → Enregistrer les réglages actuels. Le profil s'applique quand le jeu démarre et est annulé quand il se ferme.",
"GameProfilesEmpty": "Aucun profil enregistré",
diff --git a/src/ConsoleMode/Resources/Strings.pt-BR.json b/src/ConsoleMode/Resources/Strings.pt-BR.json
index 39e476d..428f502 100644
--- a/src/ConsoleMode/Resources/Strings.pt-BR.json
+++ b/src/ConsoleMode/Resources/Strings.pt-BR.json
@@ -135,6 +135,8 @@
"CloseSteamDescription": "Ao sair do Big Picture, envia o fechamento normal da janela da Steam para ela ir à bandeja, sem encerrar o processo. Se houver um jogo em execução ou não for possível verificar, a janela não é alterada.",
"RestoreIconsCard": "Devolver os ícones da área de trabalho ao lugar",
"RestoreIconsDescription": "Salva a posição dos ícones antes da sessão e os coloca de volta ao voltar ao PC, caso o Windows os embaralhe ao trocar a tela principal. Não faz nada quando a organização automática dos ícones está ligada.",
+ "ParkPointerCard": "Tirar o ponteiro do mouse do caminho",
+ "ParkPointerDescription": "Quando o iniciador aparece na TV, leva o ponteiro para o canto inferior direito da tela de jogo, para ele não ficar no meio da imagem. Ao voltar ao PC, o ponteiro volta para onde estava.",
"GameProfilesCard": "Perfis por jogo",
"GameProfilesDescription": "Resolução, HDR, limite de FPS e saída de áudio próprios de cada jogo da Steam. Para criar, abra o menu da sessão com o jogo rodando e escolha Perfil do jogo → Salvar os ajustes atuais. O perfil vale quando o jogo abre e é desfeito quando ele fecha.",
"GameProfilesEmpty": "Nenhum perfil salvo",
diff --git a/src/ConsoleMode/Resources/Strings.ru-RU.json b/src/ConsoleMode/Resources/Strings.ru-RU.json
index f1e8e9b..36c0a2c 100644
--- a/src/ConsoleMode/Resources/Strings.ru-RU.json
+++ b/src/ConsoleMode/Resources/Strings.ru-RU.json
@@ -135,6 +135,8 @@
"CloseSteamDescription": "Когда вы выходите из Big Picture, Steam получает обычный запрос на закрытие окна и может свернуться в область уведомлений, не завершая процесс. Если запущена игра или её состояние не удаётся проверить, окно не трогается.",
"RestoreIconsCard": "Возвращать значки рабочего стола на место",
"RestoreIconsDescription": "Запоминает расположение значков рабочего стола перед сеансом и возвращает их при возврате к ПК, если Windows перемешает их при смене основного экрана. Ничего не делает, если включено автоматическое упорядочивание.",
+ "ParkPointerCard": "Убирать указатель мыши",
+ "ParkPointerDescription": "Когда лаунчер появляется на телевизоре, указатель перемещается в правый нижний угол игрового экрана, чтобы не висеть посреди изображения. При возврате к ПК он возвращается на прежнее место.",
"GameProfilesCard": "Профили для игр",
"GameProfilesDescription": "Собственные разрешение, HDR, ограничение FPS и аудиовыход для каждой игры Steam. Чтобы создать профиль, откройте меню сеанса во время игры и выберите «Профиль игры» → «Сохранить текущие настройки». Профиль применяется при запуске игры и отменяется при её закрытии.",
"GameProfilesEmpty": "Нет сохранённых профилей",
diff --git a/src/ConsoleMode/Services/ConsoleEngine.cs b/src/ConsoleMode/Services/ConsoleEngine.cs
index 02741bf..105f682 100644
--- a/src/ConsoleMode/Services/ConsoleEngine.cs
+++ b/src/ConsoleMode/Services/ConsoleEngine.cs
@@ -82,6 +82,12 @@ public void Start(AppConfig config, MonitorInfo? focusInfo, Func 0 } icons) RestoreDesktopIconsLater(icons);
+ ReturnPointer();
Rtss.Restore(State);
Rtss.SetOverlay("", hideOthers: false);
Monitors.ClearCache();
@@ -397,6 +407,10 @@ public void Stop()
State.HdrMonitor = null;
State.VrrApplied = false;
State.DesktopIcons = null;
+ State.ParkPointer = false;
+ State.PointerParks = 0;
+ State.LastPointerPark = null;
+ State.PointerBefore = null;
// The restore above already put the screen, HDR, FPS and audio back as before the session.
ResetGameProfileState();
OnUi(NativeWindows.StopBigPictureExitWatch);
@@ -407,6 +421,38 @@ public void Stop()
/// Explorer rearranges the icons a moment after the screens come back, sometimes more than once,
/// so they are put back in the background a few times instead of holding up the restore.
///
+ ///
+ /// "Park the pointer" (issue #172): once the launcher is up, moves the mouse pointer to the bottom-right corner of
+ /// the game screen, twice (Steam and others recenter it while their window opens). Xbox mode has no window to
+ /// watch, so it goes by the time since the launch. Based on @JarJarShinks' version in #173.
+ ///
+ private void TickPointer()
+ {
+ var now = DateTime.Now;
+ var ready = State.FullscreenMode == "xboxMode"
+ ? State.LaunchTime is { } launched && now - launched >= PointerParking.XboxDelay
+ : State.HasAppeared;
+ if (!PointerParking.IsDue(State.ParkPointer, State.PointerParks, ready, State.LastPointerPark, now)) return;
+
+ var rect = State.FocusMonitorRect
+ ?? (State.FocusMonitor is { Length: > 0 } name ? Monitors.GetMonitorRect(name, State) : null);
+ if (rect is null) return;
+
+ var (x, y) = PointerParking.BottomRight(rect);
+ if (MousePointer.MoveTo(x, y)) AppLog.Write($"Ponteiro: estacionado em {x},{y}");
+ else AppLog.Write($"Ponteiro: não foi possível mover para {x},{y}");
+ State.PointerParks++;
+ State.LastPointerPark = now;
+ }
+
+ /// Going back to the PC: the pointer returns to where it was before the session, once the desk is back.
+ private void ReturnPointer()
+ {
+ if (State.PointerBefore is not { } before) return;
+ if (!PointerParking.ShouldReturn(before, State.PointerParks, MousePointer.IsOnScreen(before.X, before.Y))) return;
+ if (MousePointer.MoveTo(before.X, before.Y)) AppLog.Write($"Ponteiro: de volta a {before.X},{before.Y}");
+ }
+
private static void RestoreDesktopIconsLater(List saved) => Task.Run(async () =>
{
var total = 0;
diff --git a/src/ConsoleMode/Services/LocalizationService.cs b/src/ConsoleMode/Services/LocalizationService.cs
index 3dc542f..dc9e5e0 100644
--- a/src/ConsoleMode/Services/LocalizationService.cs
+++ b/src/ConsoleMode/Services/LocalizationService.cs
@@ -259,6 +259,8 @@ internal void NotifyAll()
public string CloseSteamDescription => LocalizationService.Get(nameof(CloseSteamDescription));
public string RestoreIconsCard => LocalizationService.Get(nameof(RestoreIconsCard));
public string RestoreIconsDescription => LocalizationService.Get(nameof(RestoreIconsDescription));
+ public string ParkPointerCard => LocalizationService.Get(nameof(ParkPointerCard));
+ public string ParkPointerDescription => LocalizationService.Get(nameof(ParkPointerDescription));
public string GameProfilesCard => LocalizationService.Get(nameof(GameProfilesCard));
public string GameProfilesDescription => LocalizationService.Get(nameof(GameProfilesDescription));
public string GameProfileRow => LocalizationService.Get(nameof(GameProfileRow));
diff --git a/src/ConsoleMode/Services/PointerParking.cs b/src/ConsoleMode/Services/PointerParking.cs
new file mode 100644
index 0000000..66b97e9
--- /dev/null
+++ b/src/ConsoleMode/Services/PointerParking.cs
@@ -0,0 +1,42 @@
+using ConsoleMode.Models;
+
+namespace ConsoleMode.Services;
+
+///
+/// "Park the pointer" (issue #172): a session that starts leaves the mouse pointer in the middle of the TV, so it is
+/// moved to a corner of the game screen, out of the way. Steam and others recenter it while their window opens, so it
+/// is done twice. Going back to the PC puts it where it was before the session. Pure, so it's tested.
+/// Based on @JarJarShinks' version in #173.
+///
+public static class PointerParking
+{
+ /// How far inside the corner the pointer sits (some TVs crop the very edge).
+ public const int Margin = 6;
+
+ /// How many times the pointer is parked per session.
+ public const int Parks = 2;
+
+ /// Between two parks, so the second one lands after the launcher has settled.
+ public static readonly TimeSpan Between = TimeSpan.FromSeconds(3);
+
+ /// Xbox mode shows no window the app can watch: it is parked this long after the launch instead.
+ public static readonly TimeSpan XboxDelay = TimeSpan.FromSeconds(4);
+
+ /// The bottom-right corner of the screen, a few pixels inside it.
+ public static (int X, int Y) BottomRight(ScreenRect rect) =>
+ (rect.X + Math.Max(rect.Width - 1 - Margin, 0), rect.Y + Math.Max(rect.Height - 1 - Margin, 0));
+
+ /// The setting is on.
+ /// How many times it was parked in this session.
+ /// The launcher is up (its window appeared, or the Xbox delay passed).
+ /// When it was last parked, or null.
+ public static bool IsDue(bool enabled, int done, bool ready, DateTime? last, DateTime now) =>
+ enabled && ready && done < Parks && (last is null || now - last.Value >= Between);
+
+ ///
+ /// Going back to the PC: the pointer returns to where it was before the session, but only when it was parked
+ /// in this session (otherwise the user may have moved it on purpose) and that spot is on a screen that is on again.
+ ///
+ public static bool ShouldReturn((int X, int Y)? before, int parks, bool onScreen) =>
+ before is not null && parks > 0 && onScreen;
+}
diff --git a/src/ConsoleMode/ViewModels/MainViewModel.ConsoleUi.cs b/src/ConsoleMode/ViewModels/MainViewModel.ConsoleUi.cs
index 151cd02..cd65911 100644
--- a/src/ConsoleMode/ViewModels/MainViewModel.ConsoleUi.cs
+++ b/src/ConsoleMode/ViewModels/MainViewModel.ConsoleUi.cs
@@ -266,6 +266,7 @@ private void CycleSetting(string spec)
case "betas": BetaUpdates = !BetaUpdates; break;
case "closest": CloseSteamOnRestore = !CloseSteamOnRestore; break;
case "desktopicons": RestoreDesktopIcons = !RestoreDesktopIcons; break;
+ case "parkpointer": ParkPointer = !ParkPointer; break;
case "tvpower": TvTurnOffOnRestore = !TvTurnOffOnRestore; break;
}
}
diff --git a/src/ConsoleMode/ViewModels/MainViewModel.Updates.cs b/src/ConsoleMode/ViewModels/MainViewModel.Updates.cs
index 3553bbf..a547979 100644
--- a/src/ConsoleMode/ViewModels/MainViewModel.Updates.cs
+++ b/src/ConsoleMode/ViewModels/MainViewModel.Updates.cs
@@ -22,6 +22,7 @@ private enum UpdateStatusKind { InstallKind, Searching, Latest, Available, Faile
[ObservableProperty] private bool _interfaceSounds = true;
[ObservableProperty] private bool _closeSteamOnRestore = true;
[ObservableProperty] private bool _restoreDesktopIcons = true;
+ [ObservableProperty] private bool _parkPointer = true;
[ObservableProperty] private string _homeButtonHint = "";
[ObservableProperty] private bool _startWithWindows;
[ObservableProperty] private bool _minimizeToTray;
@@ -103,6 +104,7 @@ partial void OnInterfaceSoundsChanged(bool value)
}
partial void OnCloseSteamOnRestoreChanged(bool value) => SaveQuietly();
partial void OnRestoreDesktopIconsChanged(bool value) => SaveQuietly();
+ partial void OnParkPointerChanged(bool value) => SaveQuietly();
partial void OnHomeButtonShortPressChanged(bool value)
{
diff --git a/src/ConsoleMode/ViewModels/MainViewModel.cs b/src/ConsoleMode/ViewModels/MainViewModel.cs
index 6cb4f2b..6d0e526 100644
--- a/src/ConsoleMode/ViewModels/MainViewModel.cs
+++ b/src/ConsoleMode/ViewModels/MainViewModel.cs
@@ -336,6 +336,7 @@ private void Apply(LoadResult data)
ConsoleBackgroundImage = config.ConsoleBackgroundImage ?? "";
CloseSteamOnRestore = config.CloseSteamOnRestore;
RestoreDesktopIcons = config.RestoreDesktopIcons;
+ ParkPointer = config.ParkPointer;
LoadGameProfiles(config.GameProfiles);
RefreshHomeButtonHint();
SelectedUiMode = UiModeOptions.FirstOrDefault(o => o.Value == config.UiMode) ?? UiModeOptions.FirstOrDefault();
@@ -963,6 +964,7 @@ private AppConfig BuildConfig()
ConsoleBackgroundImage = ConsoleBackgroundImage,
CloseSteamOnRestore = CloseSteamOnRestore,
RestoreDesktopIcons = RestoreDesktopIcons,
+ ParkPointer = ParkPointer,
GameProfiles = [.. _gameProfiles],
UiMode = SelectedUiMode?.Value ?? _loadedConfig.UiMode,
ControllerLayout = SelectedControllerLayout?.Value ?? _loadedConfig.ControllerLayout,
diff --git a/src/ConsoleMode/Views/ConsoleHomeView.xaml b/src/ConsoleMode/Views/ConsoleHomeView.xaml
index 673a6dc..618b23f 100644
--- a/src/ConsoleMode/Views/ConsoleHomeView.xaml
+++ b/src/ConsoleMode/Views/ConsoleHomeView.xaml
@@ -652,6 +652,12 @@
+