mirror of
https://github.com/libretro/Mesen.git
synced 2024-11-28 11:30:34 +00:00
UI: Added some new shortcuts (game timer, frame counter, etc.)
This commit is contained in:
parent
a313076e2d
commit
c211d135ca
@ -323,6 +323,12 @@ enum class EmulatorShortcut
|
||||
SetScale6x,
|
||||
ToggleFullscreen,
|
||||
ToggleFps,
|
||||
ToggleGameTimer,
|
||||
ToggleFrameCounter,
|
||||
ToggleLagCounter,
|
||||
ToggleOsd,
|
||||
ToggleSprites,
|
||||
ToggleBackground,
|
||||
|
||||
LoadRandomGame,
|
||||
SaveStateSlot1,
|
||||
|
@ -716,6 +716,12 @@
|
||||
<Message ID="EmulatorShortcutMappings_SetScale6x">Set Scale 6x</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleFullscreen">Toggle Fullscreen Mode</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleFps">Toggle FPS Counter</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleGameTimer">Toggle Game Timer</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleFrameCounter">Toggle Frame Counter</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleLagCounter">Toggle Lag Counter</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleOsd">Toggle OSD (On-Screen Display)</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleBackground">Toggle Background Layer</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleSprites">Toggle Sprite Layer</Message>
|
||||
<Message ID="EmulatorShortcutMappings_MaxSpeed">Toggle Maximum Speed</Message>
|
||||
<Message ID="EmulatorShortcutMappings_LoadRandomGame">Load Random Game</Message>
|
||||
<Message ID="EmulatorShortcutMappings_SaveStateSlot1">Save State - Slot 1</Message>
|
||||
|
@ -119,7 +119,14 @@
|
||||
<Message ID="EmulatorShortcutMappings_SetScale5x">Set Scale 5x</Message>
|
||||
<Message ID="EmulatorShortcutMappings_SetScale6x">Set Scale 6x</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleFullscreen">Toggle Fullscreen Mode</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleFps">Toggle FPS Counter</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleFps">Toggle FPS Counter</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleGameTimer">Toggle Game Timer</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleFrameCounter">Toggle Frame Counter</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleLagCounter">Toggle Lag Counter</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleOsd">Toggle OSD (On-Screen Display)</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleBackground">Toggle Background Layer</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleSprites">Toggle Sprite Layer</Message>
|
||||
|
||||
<Message ID="EmulatorShortcutMappings_MaxSpeed">Toggle Maximum Speed</Message>
|
||||
<Message ID="EmulatorShortcutMappings_LoadRandomGame">Load Random Game</Message>
|
||||
<Message ID="EmulatorShortcutMappings_SaveStateSlot1">Save State - Slot 1</Message>
|
||||
|
@ -735,6 +735,12 @@
|
||||
<Message ID="EmulatorShortcutMappings_SetScale6x">Set Scale 6x</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleFullscreen">Toggle Fullscreen Mode</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleFps">Toggle FPS Counter</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleGameTimer">Toggle Game Timer</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleFrameCounter">Toggle Frame Counter</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleLagCounter">Toggle Lag Counter</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleOsd">Toggle OSD (On-Screen Display)</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleBackground">Toggle Background Layer</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleSprites">Toggle Sprite Layer</Message>
|
||||
<Message ID="EmulatorShortcutMappings_MaxSpeed">Toggle Maximum Speed</Message>
|
||||
<Message ID="EmulatorShortcutMappings_LoadRandomGame">Load Random Game</Message>
|
||||
<Message ID="EmulatorShortcutMappings_SaveStateSlot1">Save State - Slot 1</Message>
|
||||
|
@ -748,6 +748,12 @@
|
||||
<Message ID="EmulatorShortcutMappings_SetScale6x">Taille de l'image 6x</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleFullscreen">Activer/désactiver le mode plein écran</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleFps">Activer/désactiver le compteur FPS</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleGameTimer">Activer/désactiver le compteur de temps</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleFrameCounter">Activer/désactiver le compteur d'images</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleLagCounter">Activer/désactiver le compteur de lag</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleOsd">Activer/désactiver les messages à l'écran (OSD)</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleBackground">Activer/désactiver l'arrière-plan</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleSprites">Activer/désactiver les sprites</Message>
|
||||
<Message ID="EmulatorShortcutMappings_MaxSpeed">Activer/désactiver la vitesse maximale</Message>
|
||||
<Message ID="EmulatorShortcutMappings_LoadRandomGame">Ouvrir un jeu aléatoire</Message>
|
||||
<Message ID="EmulatorShortcutMappings_SaveStateSlot1">Sauvegarde d'état - Position 1</Message>
|
||||
|
@ -733,6 +733,12 @@
|
||||
<Message ID="EmulatorShortcutMappings_SetScale6x">映像サイズ 6倍</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleFullscreen">全画面表示</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleFps">フレームレート表示</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleGameTimer">ゲームタイマー表示</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleFrameCounter">フレームカウンタ表示</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleLagCounter">ラグカウンタ表示</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleOsd">オンスクリーン表示を無効・有効にする</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleBackground">バックグラウンドレイヤー表示</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleSprites">スプライトレイヤー表示</Message>
|
||||
<Message ID="EmulatorShortcutMappings_MaxSpeed">最高速度を無効・有効にする</Message>
|
||||
<Message ID="EmulatorShortcutMappings_LoadRandomGame">ランダムゲームを開く</Message>
|
||||
<Message ID="EmulatorShortcutMappings_SaveStateSlot1">クイックセーブスロット1に保存する</Message>
|
||||
|
@ -733,6 +733,12 @@
|
||||
<Message ID="EmulatorShortcutMappings_SetScale6x">Definir escala 6x</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleFullscreen">Alternar tela cheia</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleFps">Alternar contador de quadros por segundo</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleGameTimer">Toggle Game Timer</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleFrameCounter">Toggle Frame Counter</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleLagCounter">Toggle Lag Counter</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleOsd">Toggle OSD (On-Screen Display)</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleBackground">Toggle Background Layer</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleSprites">Toggle Sprite Layer</Message>
|
||||
<Message ID="EmulatorShortcutMappings_MaxSpeed">Alternar velocidade máxima</Message>
|
||||
<Message ID="EmulatorShortcutMappings_LoadRandomGame">Carrear jogo aleatório</Message>
|
||||
<Message ID="EmulatorShortcutMappings_SaveStateSlot1">Salvar estado - Posição 1</Message>
|
||||
|
@ -738,6 +738,12 @@
|
||||
<Message ID="EmulatorShortcutMappings_SetScale6x">Set Scale 6x</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleFullscreen">Toggle Fullscreen Mode</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleFps">Toggle FPS Counter</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleGameTimer">Toggle Game Timer</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleFrameCounter">Toggle Frame Counter</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleLagCounter">Toggle Lag Counter</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleOsd">Toggle OSD (On-Screen Display)</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleBackground">Toggle Background Layer</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleSprites">Toggle Sprite Layer</Message>
|
||||
<Message ID="EmulatorShortcutMappings_MaxSpeed">Toggle Maximum Speed</Message>
|
||||
<Message ID="EmulatorShortcutMappings_LoadRandomGame">Load Random Game</Message>
|
||||
<Message ID="EmulatorShortcutMappings_SaveStateSlot1">Save State - Slot 1</Message>
|
||||
|
@ -738,6 +738,12 @@
|
||||
<Message ID="EmulatorShortcutMappings_SetScale6x">Встановити масштаб 6x</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleFullscreen">Переключити повноекранний режим</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleFps">Переключити лічильник FPS</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleGameTimer">Toggle Game Timer</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleFrameCounter">Toggle Frame Counter</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleLagCounter">Toggle Lag Counter</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleOsd">Toggle OSD (On-Screen Display)</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleBackground">Toggle Background Layer</Message>
|
||||
<Message ID="EmulatorShortcutMappings_ToggleSprites">Toggle Sprite Layer</Message>
|
||||
<Message ID="EmulatorShortcutMappings_MaxSpeed">Переключити максимальну швидкість</Message>
|
||||
<Message ID="EmulatorShortcutMappings_LoadRandomGame">Завантажити випадкову гру/Message>
|
||||
<Message ID="EmulatorShortcutMappings_SaveStateSlot1">Save State - Slot 1</Message>
|
||||
|
@ -64,6 +64,12 @@ namespace Mesen.GUI.Forms.Config
|
||||
EmulatorShortcut.ToggleFullscreen,
|
||||
|
||||
EmulatorShortcut.ToggleFps,
|
||||
EmulatorShortcut.ToggleGameTimer,
|
||||
EmulatorShortcut.ToggleFrameCounter,
|
||||
EmulatorShortcut.ToggleLagCounter,
|
||||
EmulatorShortcut.ToggleOsd,
|
||||
EmulatorShortcut.ToggleBackground,
|
||||
EmulatorShortcut.ToggleSprites,
|
||||
EmulatorShortcut.ToggleCheats,
|
||||
EmulatorShortcut.ToggleAudio,
|
||||
|
||||
|
@ -609,6 +609,12 @@ namespace Mesen.GUI.Forms
|
||||
case EmulatorShortcut.ToggleCheats: ToggleCheats(); break;
|
||||
case EmulatorShortcut.ToggleAudio: ToggleAudio(); break;
|
||||
case EmulatorShortcut.ToggleFps: ToggleFps(); break;
|
||||
case EmulatorShortcut.ToggleBackground: ToggleBackground(); break;
|
||||
case EmulatorShortcut.ToggleSprites: ToggleSprites(); break;
|
||||
case EmulatorShortcut.ToggleGameTimer: ToggleGameTimer(); break;
|
||||
case EmulatorShortcut.ToggleFrameCounter: ToggleFrameCounter(); break;
|
||||
case EmulatorShortcut.ToggleLagCounter: ToggleLagCounter(); break;
|
||||
case EmulatorShortcut.ToggleOsd: ToggleOsd(); break;
|
||||
case EmulatorShortcut.MaxSpeed: ToggleMaxSpeed(); break;
|
||||
case EmulatorShortcut.ToggleFullscreen: ToggleFullscreen(); break;
|
||||
|
||||
@ -680,14 +686,56 @@ namespace Mesen.GUI.Forms
|
||||
UpdateEmulationFlags();
|
||||
}
|
||||
|
||||
private static void ToggleAudio()
|
||||
private void ToggleAudio()
|
||||
{
|
||||
ConfigManager.Config.AudioInfo.EnableAudio = !ConfigManager.Config.AudioInfo.EnableAudio;
|
||||
AudioInfo.ApplyConfig();
|
||||
ConfigManager.ApplyChanges();
|
||||
}
|
||||
|
||||
private static void ToggleCheats()
|
||||
private void ToggleFrameCounter()
|
||||
{
|
||||
ConfigManager.Config.PreferenceInfo.ShowFrameCounter = !ConfigManager.Config.PreferenceInfo.ShowFrameCounter;
|
||||
PreferenceInfo.ApplyConfig();
|
||||
ConfigManager.ApplyChanges();
|
||||
}
|
||||
|
||||
private void ToggleLagCounter()
|
||||
{
|
||||
ConfigManager.Config.EmulationInfo.ShowLagCounter = !ConfigManager.Config.EmulationInfo.ShowLagCounter;
|
||||
EmulationInfo.ApplyConfig();
|
||||
ConfigManager.ApplyChanges();
|
||||
}
|
||||
|
||||
private void ToggleGameTimer()
|
||||
{
|
||||
ConfigManager.Config.PreferenceInfo.ShowGameTimer = !ConfigManager.Config.PreferenceInfo.ShowGameTimer;
|
||||
PreferenceInfo.ApplyConfig();
|
||||
ConfigManager.ApplyChanges();
|
||||
}
|
||||
|
||||
private void ToggleOsd()
|
||||
{
|
||||
ConfigManager.Config.PreferenceInfo.DisableOsd = !ConfigManager.Config.PreferenceInfo.DisableOsd;
|
||||
PreferenceInfo.ApplyConfig();
|
||||
ConfigManager.ApplyChanges();
|
||||
}
|
||||
|
||||
private void ToggleSprites()
|
||||
{
|
||||
ConfigManager.Config.VideoInfo.DisableSprites = !ConfigManager.Config.VideoInfo.DisableSprites;
|
||||
VideoInfo.ApplyConfig();
|
||||
ConfigManager.ApplyChanges();
|
||||
}
|
||||
|
||||
private void ToggleBackground()
|
||||
{
|
||||
ConfigManager.Config.VideoInfo.DisableBackground = !ConfigManager.Config.VideoInfo.DisableBackground;
|
||||
VideoInfo.ApplyConfig();
|
||||
ConfigManager.ApplyChanges();
|
||||
}
|
||||
|
||||
private void ToggleCheats()
|
||||
{
|
||||
ConfigManager.Config.DisableAllCheats = !ConfigManager.Config.DisableAllCheats;
|
||||
if(ConfigManager.Config.DisableAllCheats) {
|
||||
|
@ -1496,6 +1496,12 @@ namespace Mesen.GUI
|
||||
SetScale6x,
|
||||
ToggleFullscreen,
|
||||
ToggleFps,
|
||||
ToggleGameTimer,
|
||||
ToggleFrameCounter,
|
||||
ToggleLagCounter,
|
||||
ToggleOsd,
|
||||
ToggleSprites,
|
||||
ToggleBackground,
|
||||
|
||||
LoadRandomGame,
|
||||
SaveStateSlot1,
|
||||
|
Loading…
Reference in New Issue
Block a user