31 lines
1.6 KiB
C++
31 lines
1.6 KiB
C++
|
// @lint-ignore-every LICENSELINT
|
||
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
||
|
|
||
|
#include "OculusXRToolCommands.h"
|
||
|
|
||
|
#include "../../OculusXRProjectSetupTool/Private/OculusXRProjectSetupToolModule.h"
|
||
|
#include "Framework/Docking/TabManager.h"
|
||
|
|
||
|
#define LOCTEXT_NAMESPACE "FOculusXREditorModule"
|
||
|
|
||
|
void FOculusToolCommands::RegisterCommands()
|
||
|
{
|
||
|
UI_COMMAND(OpenProjectSetupTool, "Meta XR Project Setup Tool", "Show Meta XR Project Setup Tool", EUserInterfaceActionType::Button, FInputChord());
|
||
|
UI_COMMAND(ToggleDeploySo, "Deploy compiled .so directly to device", "Faster deploy when we only have code changes by deploying compiled .so directly to device", EUserInterfaceActionType::ToggleButton, FInputChord());
|
||
|
UI_COMMAND(OpenPlatWindow, "Meta XR Platform Window", "Show Meta XR Platform Window", EUserInterfaceActionType::Button, FInputChord());
|
||
|
|
||
|
UI_COMMAND(ToggleMetaXRSim, "Meta XR Simulator", "Activate/Deactivate Meta XR Simulator", EUserInterfaceActionType::ToggleButton, FInputChord());
|
||
|
|
||
|
UI_COMMAND(LaunchGameRoom, "Launch GameRoom", "Launch GameRoom", EUserInterfaceActionType::Button, FInputChord());
|
||
|
UI_COMMAND(LaunchLivingRoom, "Launch Living Room", "Launch Living Room", EUserInterfaceActionType::Button, FInputChord());
|
||
|
UI_COMMAND(LaunchBedroom, "Launch Bedroom", "Launch Bedroom", EUserInterfaceActionType::Button, FInputChord());
|
||
|
UI_COMMAND(StopServer, "Stop Server", "Stop Server", EUserInterfaceActionType::Button, FInputChord());
|
||
|
}
|
||
|
|
||
|
void FOculusToolCommands::ShowOculusTool()
|
||
|
{
|
||
|
IOculusXRProjectSetupToolModule::Get().ShowProjectSetupTool("Console");
|
||
|
}
|
||
|
|
||
|
#undef LOCTEXT_NAMESPACE
|