Skip to content

[Request] Map Hotkeys for layer disabling for more consoles. #3091

Description

@ReyVGM

Right now you can only map hotkeys to disable layers when playing SNES and GB games.

I'm requesting for the same thing to be added for the other consoles with the option to disable background and sprite layers. I know the NES and Genesis have the option in their own settings menu when you have one of their games loaded, but they can't be mapped to a hotkey.

Thanks and hopefully this is something that can be implemented in the future!


Affected cores:

private static readonly Dictionary<Type, string[]> CoreGraphicsLayers = new()
{
[typeof(Atari2600)] = new[] { "ShowBG", "ShowPlayer1", "ShowPlayer2", "ShowMissle1", "ShowMissle2", "ShowBall", "ShowPlayfield" },
[typeof(LibsnesCore)] = new[] { "ShowBG1_0", "ShowBG2_0", "ShowBG3_0", "ShowBG4_0", "ShowBG1_1", "ShowBG2_1", "ShowBG3_1", "ShowBG4_1", "ShowOBJ_0", "ShowOBJ_1", "ShowOBJ_2", "ShowOBJ_3" },
[typeof(BsnesCore)] = new[] { "ShowBG1_0", "ShowBG2_0", "ShowBG3_0", "ShowBG4_0", "ShowBG1_1", "ShowBG2_1", "ShowBG3_1", "ShowBG4_1", "ShowOBJ_0", "ShowOBJ_1", "ShowOBJ_2", "ShowOBJ_3" },
[typeof(WonderSwan)] = new[] { "EnableBG", "EnableFG", "EnableSprites", },
[typeof(GPGX)] = new[] { "DrawBGA", "DrawBGB", "DrawBGW", "DrawObj", },
[typeof(MGBAHawk)] = new[] { "DisplayBG0", "DisplayBG1", "DisplayBG2", "DisplayBG3", "DisplayOBJ" },
[typeof(MSX)] = new[] { "DispBG", "DispOBJ" },
[typeof(NES)] = new[] { "DispBackground", "DispSprites" },
[typeof(O2Hawk)] = new[] { "Show_Chars", "Show_Quads", "Show_Sprites", "Show_G7400_Sprites", "Show_G7400_BG" },
[typeof(PCEngine)] = new[] { "ShowBG1", "ShowOBJ1", "ShowBG2", "ShowOBJ2", },
[typeof(Sameboy)] = new[] { "EnableBGWIN", "EnableOBJ" },
[typeof(SMS)] = new[] { "DispBG", "DispOBJ" },
[typeof(Snes9x)] = new[] { "ShowBg0", "ShowBg1", "ShowBg2", "ShowBg3", "ShowSprites0", "ShowSprites1", "ShowSprites2", "ShowSprites3", "ShowWindow", "ShowTransparency" },
};

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    App: EmuHawkRelating to EmuHawk frontendCore: Atari2600HawkAtari 2600 coreCore: BSNESSuper Nintendo Entertainment System (SNES) / Super Famicom (SFC) / Super Game Boy (SGB) coreCore: CygneWonderSwan / Color coreCore: Gambatte(Alt.) Game Boy / Color (GB/GBC) coreCore: Genplus-gxSega Genesis / Mega Drive coreCore: HyperNyma(Alt.) PC Engine (PCE) / TurboGrafx-16 (TG-16) / SuperGrafx coreCore: MSXHawkMSX coreCore: NesHawkNintendo Entertainment System (NES) / Famicom / Famicom Disk System (FDS) coreCore: O2HawkMagnavox Odyssey² / Videopac G7000 coreCore: PCEHawk(Alt.) PC Engine (PCE) / TurboGrafx-16 (TG-16) / SuperGrafx coreCore: SMSHawkSega Master System (SMS) / Sega Game Gear (GG) coreCore: SameBoy (from 2.8)Game Boy / Color (GB/GBC) coreCore: Snes9x(Alt.) Super Nintendo Entertainment System (SNES) / Super Famicom (SFC) coreCore: TurboNymaPC Engine (PCE) / TurboGrafx-16 (TG-16) / SuperGrafx coreCore: mGBAGame Boy Advance (GBA) coreNeeds domain knowledge for triageRepro: Affects 2.7Request: Feature/EnhancementFor feature requests or possible improvements

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions