Talk:Button Combo Menus

From PS4 Developer wiki
Jump to: navigation, search

Same on Vita[edit]

Sources[edit]

//RootSettingHandler
SettingsPadEntry[] padEntries = new SettingsPadEntry[13]
					{
						new SettingsPadEntry(Buttons.L, 0u),
						new SettingsPadEntry(Buttons.R, 0u),
						new SettingsPadEntry(Buttons.L, 0u),
						new SettingsPadEntry(Buttons.R, 0u),
						new SettingsPadEntry(Buttons.L2, 0u),
						new SettingsPadEntry(Buttons.R2, 0u),
						new SettingsPadEntry(Buttons.L2, 0u),
						new SettingsPadEntry(Buttons.R2, 0u),
						new SettingsPadEntry(Buttons.Square, 0u),
						new SettingsPadEntry(Buttons.Triangle, 0u),
						new SettingsPadEntry(Buttons.Start, 0u),
						new SettingsPadEntry(Buttons.L3, 0u),
						new SettingsPadEntry(Buttons.R3, 0u)
					};
					base.UIManager.SetPadListener(padEntries, SpecialCommandFunc);

...
//ConsoleInfoPage
if (SblWrapper.SblRcMgrIsAllowDebugMenuForSettings() == 1 || SblWrapper.SblRcMgrIsAllowMinimumDebugMenuForSettings() == 1 || SblWrapper.SblRcMgrIsStoreMode() == 1)
				{
					SettingsPadEntry[] padEntries = new SettingsPadEntry[2]
					{
						new SettingsPadEntry((Buttons)3089u, 5000u),
						new SettingsPadEntry(Buttons.Start, 0u)
					};
					UIManager.Instance.SetPadListener(padEntries, delegate
					{
						createVersionDetailsUi();
					});
				}
				else
				{
					SettingsPadEntry[] padEntries2 = new SettingsPadEntry[2]
					{
						new SettingsPadEntry((Buttons)17440u, 5000u),
						new SettingsPadEntry((Buttons)258u, 0u)
					};
					UIManager.Instance.SetPadListener(padEntries2, delegate
					{
						createVersionDetailsUi();
					});
				}
...
//SettingsRootHandler
else if (SblWrapper.SblRcMgrIsAllowDebugMenuForSettings() == 1 || SblWrapper.SblRcMgrIsAllowMinimumDebugMenuForSettings() == 1 || KernelSysWrapper.IsDevKit() == 1)
				{
					SettingsPadEntry[] padEntries = new SettingsPadEntry[1]
					{
						new SettingsPadEntry((Buttons)31752u, 0u)
					};
					base.UIManager.SetPadListener(padEntries, delegate
					{
						showDebugSettings = true;
						base.UIManager.ResetMenuItem("debug_settings");
					});
				}