mirror of https://github.com/snes9xgit/snes9x.git
GTK+: Hook up Settings.DisplayPressedKeys
This commit is contained in:
parent
8a2cd602da
commit
c9a8b28d18
|
@ -180,6 +180,7 @@ int Snes9xConfig::load_defaults ()
|
||||||
Settings.NetPlay = FALSE;
|
Settings.NetPlay = FALSE;
|
||||||
NetPlay.Paused = FALSE;
|
NetPlay.Paused = FALSE;
|
||||||
NetPlay.MaxFrameSkip = 10;
|
NetPlay.MaxFrameSkip = 10;
|
||||||
|
Settings.DisplayPressedKeys = FALSE;
|
||||||
#ifdef ALLOW_CPU_OVERCLOCK
|
#ifdef ALLOW_CPU_OVERCLOCK
|
||||||
Settings.MaxSpriteTilesPerLine = 34;
|
Settings.MaxSpriteTilesPerLine = 34;
|
||||||
Settings.OneClockCycle = 6;
|
Settings.OneClockCycle = 6;
|
||||||
|
@ -334,6 +335,7 @@ int Snes9xConfig::save_config_file ()
|
||||||
#define z "Emulation::"
|
#define z "Emulation::"
|
||||||
outbool (cf, z"EmulateTransparency", Settings.Transparency);
|
outbool (cf, z"EmulateTransparency", Settings.Transparency);
|
||||||
outbool (cf, z"DisplayFrameRate", Settings.DisplayFrameRate);
|
outbool (cf, z"DisplayFrameRate", Settings.DisplayFrameRate);
|
||||||
|
outbool (cf, z"DisplayPressedKeys", Settings.DisplayPressedKeys);
|
||||||
cf.SetInt (z"SpeedControlMethod", Settings.SkipFrames, "0: Time the frames to 50 or 60Hz, 1: Same, but skip frames if too slow, 2: Synchronize to the sound buffer, 3: Unlimited, except potentially by vsync");
|
cf.SetInt (z"SpeedControlMethod", Settings.SkipFrames, "0: Time the frames to 50 or 60Hz, 1: Same, but skip frames if too slow, 2: Synchronize to the sound buffer, 3: Unlimited, except potentially by vsync");
|
||||||
cf.SetInt (z"SaveSRAMEveryNSeconds", Settings.AutoSaveDelay);
|
cf.SetInt (z"SaveSRAMEveryNSeconds", Settings.AutoSaveDelay);
|
||||||
outbool (cf, z"BlockInvalidVRAMAccess", Settings.BlockInvalidVRAMAccessMaster);
|
outbool (cf, z"BlockInvalidVRAMAccess", Settings.BlockInvalidVRAMAccessMaster);
|
||||||
|
@ -560,6 +562,7 @@ int Snes9xConfig::load_config_file ()
|
||||||
#define z "Emulation::"
|
#define z "Emulation::"
|
||||||
inbool (z"EmulateTransparency", Settings.Transparency);
|
inbool (z"EmulateTransparency", Settings.Transparency);
|
||||||
inbool (z"DisplayFrameRate", Settings.DisplayFrameRate);
|
inbool (z"DisplayFrameRate", Settings.DisplayFrameRate);
|
||||||
|
inbool (z"DisplayPressedKeys", Settings.DisplayPressedKeys);
|
||||||
inint (z"SpeedControlMethod", Settings.SkipFrames);
|
inint (z"SpeedControlMethod", Settings.SkipFrames);
|
||||||
inint (z"SaveSRAMEveryNSeconds", Settings.AutoSaveDelay);
|
inint (z"SaveSRAMEveryNSeconds", Settings.AutoSaveDelay);
|
||||||
inbool (z"BlockInvalidVRAMAccess", Settings.BlockInvalidVRAMAccessMaster);
|
inbool (z"BlockInvalidVRAMAccess", Settings.BlockInvalidVRAMAccessMaster);
|
||||||
|
|
|
@ -596,6 +596,7 @@ Snes9xPreferences::move_settings_to_dialog ()
|
||||||
{
|
{
|
||||||
set_check ("full_screen_on_open", config->full_screen_on_open);
|
set_check ("full_screen_on_open", config->full_screen_on_open);
|
||||||
set_check ("show_frame_rate", Settings.DisplayFrameRate);
|
set_check ("show_frame_rate", Settings.DisplayFrameRate);
|
||||||
|
set_check ("show_pressed_keys", Settings.DisplayPressedKeys);
|
||||||
set_check ("change_display_resolution", config->change_display_resolution);
|
set_check ("change_display_resolution", config->change_display_resolution);
|
||||||
set_check ("scale_to_fit", config->scale_to_fit);
|
set_check ("scale_to_fit", config->scale_to_fit);
|
||||||
set_check ("overscan", config->overscan);
|
set_check ("overscan", config->overscan);
|
||||||
|
@ -783,6 +784,7 @@ Snes9xPreferences::get_settings_from_dialog ()
|
||||||
|
|
||||||
config->full_screen_on_open = get_check ("full_screen_on_open");
|
config->full_screen_on_open = get_check ("full_screen_on_open");
|
||||||
Settings.DisplayFrameRate = get_check ("show_frame_rate");
|
Settings.DisplayFrameRate = get_check ("show_frame_rate");
|
||||||
|
Settings.DisplayPressedKeys = get_check ("show_pressed_keys");
|
||||||
config->scale_to_fit = get_check ("scale_to_fit");
|
config->scale_to_fit = get_check ("scale_to_fit");
|
||||||
config->overscan = get_check ("overscan");
|
config->overscan = get_check ("overscan");
|
||||||
config->maintain_aspect_ratio = get_check ("maintain_aspect_ratio");
|
config->maintain_aspect_ratio = get_check ("maintain_aspect_ratio");
|
||||||
|
|
|
@ -2757,6 +2757,21 @@
|
||||||
<property name="position">1</property>
|
<property name="position">1</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkCheckButton" id="show_pressed_keys">
|
||||||
|
<property name="label" translatable="yes">Show pressed keys</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">False</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<property name="draw_indicator">True</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">False</property>
|
||||||
|
<property name="position">2</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCheckButton" id="overscan">
|
<object class="GtkCheckButton" id="overscan">
|
||||||
<property name="label" translatable="yes">Use overscanned height</property>
|
<property name="label" translatable="yes">Use overscanned height</property>
|
||||||
|
@ -2770,7 +2785,7 @@
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
<property name="fill">False</property>
|
<property name="fill">False</property>
|
||||||
<property name="position">2</property>
|
<property name="position">3</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
|
@ -2816,7 +2831,7 @@
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
<property name="fill">False</property>
|
<property name="fill">False</property>
|
||||||
<property name="position">3</property>
|
<property name="position">4</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|
Loading…
Reference in New Issue