VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtPlayerStationAppInputLogic Class Reference

Detailed Description

DtPlayerStationAppInputLogic provides application-wide input handling functionality for VR-Engage. It handles global actions such as toggling full screen mode, opening help screens, and accessing debug menus that are available across all application states.

#include <playerStationAppInputLogic.h>

Inheritance diagram for makVre::DtPlayerStationAppInputLogic:
[legend]

Public Member Functions

 DtPlayerStationAppInputLogic (DtPlayerStationApp &app)
 
virtual ~DtPlayerStationAppInputLogic () override
 
virtual void initialize () override
 
virtual void escape (float val)
 
virtual void toggleApplicationMode (float val)
 
virtual void toggleFullScreen (float val)
 
virtual void toggleHelpScreen (float val)
 
virtual void toggleVreDebugMenu (float val)
 
virtual void toggleVrvProfilerStats (float val)
 
virtual void toggleVrvDeveloperDebugUI (float val)
 
virtual void openUserGuide (float val)
 
virtual void resetView (float val)
 
virtual void openOrFocusChat (float val)
 
virtual void togglePinChat (float val)
 
- Public Member Functions inherited from makVre::DtInputLogic
 DtInputLogic ()
 
virtual ~DtInputLogic ()
 
virtual void shutdown ()
 
virtual bool loadInputConfig (const std::string &config, const std::string &group, bool alwaysOnTop=false, bool alwaysEnabled=false)
 
virtual void unloadInputConfig (const std::string &category, const std::string &group)
 
virtual void addActionHandler (const std::string &group, const std::string &action, const DtActionDelegate &handler)
 
virtual void removeActionGroup (const std::string &group)
 
virtual void setRawInputHandler (const DtInputDelegate &inputDelegate)
 
virtual void removeRawInputHandler ()
 
virtual void removeActionHandler (const std::string &group, const std::string &action)
 

Protected Attributes

DtPlayerStationAppmyApp
 
- Protected Attributes inherited from makVre::DtInputLogic
DtVreInputManagermyInputManager
 
std::vector< std::pair< std::string, std::string > > myInputConfigurations
 
std::unordered_map< std::string, std::vector< std::string > > myActionGroups
 
bool myHandlingRawInput
 

Constructor & Destructor Documentation

◆ DtPlayerStationAppInputLogic()

makVre::DtPlayerStationAppInputLogic::DtPlayerStationAppInputLogic ( DtPlayerStationApp & app)

Constructor.

Parameters
appReference to the player station application

Creates a new application input logic handler associated with the specified player station application instance.

◆ ~DtPlayerStationAppInputLogic()

virtual makVre::DtPlayerStationAppInputLogic::~DtPlayerStationAppInputLogic ( )
overridevirtual

Virtual destructor.

Ensures proper cleanup of the application input logic handler.

Member Function Documentation

◆ initialize()

virtual void makVre::DtPlayerStationAppInputLogic::initialize ( )
overridevirtual

Initializes the application input logic.

Sets up the input manager and registers handlers for application-level input actions. This overrides the base class initialize method to add application-specific input handling.

Reimplemented from makVre::DtInputLogic.

◆ escape()

virtual void makVre::DtPlayerStationAppInputLogic::escape ( float val)
virtual

Handles the escape key action.

Parameters
valValue from the input system (typically 1.0 for pressed)

Processes the escape key action, which typically navigates back or opens the application menu depending on the current state.

◆ toggleApplicationMode()

virtual void makVre::DtPlayerStationAppInputLogic::toggleApplicationMode ( float val)
virtual

Toggles between application modes.

Parameters
valValue from the input system (typically 1.0 for pressed)

Switches between different application modes (e.g., normal and editing).

◆ toggleFullScreen()

virtual void makVre::DtPlayerStationAppInputLogic::toggleFullScreen ( float val)
virtual

Toggles full screen mode.

Parameters
valValue from the input system (typically 1.0 for pressed)

Switches between windowed and full screen display modes.

◆ toggleHelpScreen()

virtual void makVre::DtPlayerStationAppInputLogic::toggleHelpScreen ( float val)
virtual

Toggles the help screen visibility.

Parameters
valValue from the input system (typically 1.0 for pressed)

Shows or hides the application help screen.

◆ toggleVreDebugMenu()

virtual void makVre::DtPlayerStationAppInputLogic::toggleVreDebugMenu ( float val)
virtual

Toggles the VR-Engage debug menu.

Parameters
valValue from the input system (typically 1.0 for pressed)

Shows or hides the VR-Engage debug menu for development and testing.

◆ toggleVrvProfilerStats()

virtual void makVre::DtPlayerStationAppInputLogic::toggleVrvProfilerStats ( float val)
virtual

Toggles the VR-Vantage profiler statistics.

Parameters
valValue from the input system (typically 1.0 for pressed)

Shows or hides the performance profiler statistics display.

◆ toggleVrvDeveloperDebugUI()

virtual void makVre::DtPlayerStationAppInputLogic::toggleVrvDeveloperDebugUI ( float val)
virtual

Toggles the VR-Vantage developer debug UI.

Parameters
valValue from the input system (typically 1.0 for pressed)

Shows or hides the developer debug user interface for VR-Vantage.

◆ openUserGuide()

virtual void makVre::DtPlayerStationAppInputLogic::openUserGuide ( float val)
virtual

Opens the user guide.

Parameters
valValue from the input system (typically 1.0 for pressed)

Opens the VR-Engage user guide documentation.

◆ resetView()

virtual void makVre::DtPlayerStationAppInputLogic::resetView ( float val)
virtual

Resets the view to default position and orientation.

Parameters
valValue from the input system (typically 1.0 for pressed)

Resets the camera or view position to the default state.

◆ openOrFocusChat()

virtual void makVre::DtPlayerStationAppInputLogic::openOrFocusChat ( float val)
virtual

Opens or focuses the chat interface.

Parameters
valValue from the input system (typically 1.0 for pressed)

Opens the chat interface if it's closed, or gives it focus if it's already open.

◆ togglePinChat()

virtual void makVre::DtPlayerStationAppInputLogic::togglePinChat ( float val)
virtual

Toggles whether the chat window is pinned.

Parameters
valValue from the input system (typically 1.0 for pressed)

Toggles between pinned and unpinned states for the chat window, affecting whether it remains visible when not in focus.

Member Data Documentation

◆ myApp

DtPlayerStationApp& makVre::DtPlayerStationAppInputLogic::myApp
protected

Reference to the player station application.

Provides access to the main application for executing actions in response to input events.


The documentation for this class was generated from the following file: