VR-Engage
2.2
Loading...
Searching...
No Matches
playerStationAppInputLogic.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2025 MAK Technologies
3
** All rights reserved.
4
******************************************************************************/
5
6
//! \file playerStationAppInputLogic.h
7
//! \brief Defines the application-level input handling for VR-Engage
8
//!
9
//! This file contains the DtPlayerStationAppInputLogic class which handles
10
//! application-wide input events and actions, such as toggling full screen mode,
11
//! accessing help screens, and handling escape key functionality.
12
13
#pragma once
14
15
#include "
vrePlayerStation/inputLogic.h
"
16
17
namespace
makVre
18
{
19
//! Forward declaration of the player station application class
20
class
DtPlayerStationApp
;
21
22
//! \brief Application-level input logic handler for VR-Engage
23
//!
24
//! DtPlayerStationAppInputLogic provides application-wide input handling functionality
25
//! for VR-Engage. It handles global actions such as toggling full screen mode,
26
//! opening help screens, and accessing debug menus that are available across
27
//! all application states.
28
class
PLAYERSTATION_DLL
DtPlayerStationAppInputLogic
:
public
DtInputLogic
29
{
30
public
:
31
//! \brief Constructor
32
//! \param app Reference to the player station application
33
//!
34
//! Creates a new application input logic handler associated with the specified
35
//! player station application instance.
36
DtPlayerStationAppInputLogic
(
DtPlayerStationApp
& app);
37
38
//! \brief Virtual destructor
39
//!
40
//! Ensures proper cleanup of the application input logic handler.
41
virtual
~DtPlayerStationAppInputLogic
()
override
;
42
43
//! \brief Initializes the application input logic
44
//!
45
//! Sets up the input manager and registers handlers for application-level
46
//! input actions. This overrides the base class initialize method to add
47
//! application-specific input handling.
48
virtual
void
initialize
()
override
;
49
50
//! \brief Handles the escape key action
51
//! \param val Value from the input system (typically 1.0 for pressed)
52
//!
53
//! Processes the escape key action, which typically navigates back or opens
54
//! the application menu depending on the current state.
55
virtual
void
escape
(
float
val);
56
57
//! \brief Toggles between application modes
58
//! \param val Value from the input system (typically 1.0 for pressed)
59
//!
60
//! Switches between different application modes (e.g., normal and editing).
61
virtual
void
toggleApplicationMode
(
float
val);
62
63
//! \brief Toggles full screen mode
64
//! \param val Value from the input system (typically 1.0 for pressed)
65
//!
66
//! Switches between windowed and full screen display modes.
67
virtual
void
toggleFullScreen
(
float
val);
68
69
//! \brief Toggles the help screen visibility
70
//! \param val Value from the input system (typically 1.0 for pressed)
71
//!
72
//! Shows or hides the application help screen.
73
virtual
void
toggleHelpScreen
(
float
val);
74
75
//! \brief Toggles the VR-Engage debug menu
76
//! \param val Value from the input system (typically 1.0 for pressed)
77
//!
78
//! Shows or hides the VR-Engage debug menu for development and testing.
79
virtual
void
toggleVreDebugMenu
(
float
val);
80
81
//! \brief Toggles the VR-Vantage profiler statistics
82
//! \param val Value from the input system (typically 1.0 for pressed)
83
//!
84
//! Shows or hides the performance profiler statistics display.
85
virtual
void
toggleVrvProfilerStats
(
float
val);
86
87
//! \brief Toggles the VR-Vantage developer debug UI
88
//! \param val Value from the input system (typically 1.0 for pressed)
89
//!
90
//! Shows or hides the developer debug user interface for VR-Vantage.
91
virtual
void
toggleVrvDeveloperDebugUI
(
float
val);
92
93
//! \brief Opens the user guide
94
//! \param val Value from the input system (typically 1.0 for pressed)
95
//!
96
//! Opens the VR-Engage user guide documentation.
97
virtual
void
openUserGuide
(
float
val);
98
99
//! \brief Resets the view to default position and orientation
100
//! \param val Value from the input system (typically 1.0 for pressed)
101
//!
102
//! Resets the camera or view position to the default state.
103
virtual
void
resetView
(
float
val);
104
105
//! \brief Opens or focuses the chat interface
106
//! \param val Value from the input system (typically 1.0 for pressed)
107
//!
108
//! Opens the chat interface if it's closed, or gives it focus if it's already open.
109
virtual
void
openOrFocusChat
(
float
val);
110
111
//! \brief Toggles whether the chat window is pinned
112
//! \param val Value from the input system (typically 1.0 for pressed)
113
//!
114
//! Toggles between pinned and unpinned states for the chat window, affecting
115
//! whether it remains visible when not in focus.
116
virtual
void
togglePinChat
(
float
val);
117
118
protected
:
119
//! \brief Reference to the player station application
120
//!
121
//! Provides access to the main application for executing actions in response
122
//! to input events.
123
DtPlayerStationApp
&
myApp
;
124
};
125
}
// namespace makVre
makVre::DtInputLogic::DtInputLogic
DtInputLogic()
Constructor.
makVre::DtPlayerStationApp
Top-level class representing the VR-Engage application.
Definition
playerStationApp.h:163
makVre::DtPlayerStationAppInputLogic::togglePinChat
virtual void togglePinChat(float val)
Toggles whether the chat window is pinned.
makVre::DtPlayerStationAppInputLogic::resetView
virtual void resetView(float val)
Resets the view to default position and orientation.
makVre::DtPlayerStationAppInputLogic::toggleVrvDeveloperDebugUI
virtual void toggleVrvDeveloperDebugUI(float val)
Toggles the VR-Vantage developer debug UI.
makVre::DtPlayerStationAppInputLogic::initialize
virtual void initialize() override
Initializes the application input logic.
makVre::DtPlayerStationAppInputLogic::myApp
DtPlayerStationApp & myApp
Reference to the player station application.
Definition
playerStationAppInputLogic.h:123
makVre::DtPlayerStationAppInputLogic::toggleApplicationMode
virtual void toggleApplicationMode(float val)
Toggles between application modes.
makVre::DtPlayerStationAppInputLogic::DtPlayerStationAppInputLogic
DtPlayerStationAppInputLogic(DtPlayerStationApp &app)
Constructor.
makVre::DtPlayerStationAppInputLogic::toggleHelpScreen
virtual void toggleHelpScreen(float val)
Toggles the help screen visibility.
makVre::DtPlayerStationAppInputLogic::toggleVreDebugMenu
virtual void toggleVreDebugMenu(float val)
Toggles the VR-Engage debug menu.
makVre::DtPlayerStationAppInputLogic::openUserGuide
virtual void openUserGuide(float val)
Opens the user guide.
makVre::DtPlayerStationAppInputLogic::toggleFullScreen
virtual void toggleFullScreen(float val)
Toggles full screen mode.
makVre::DtPlayerStationAppInputLogic::~DtPlayerStationAppInputLogic
virtual ~DtPlayerStationAppInputLogic() override
Virtual destructor.
makVre::DtPlayerStationAppInputLogic::toggleVrvProfilerStats
virtual void toggleVrvProfilerStats(float val)
Toggles the VR-Vantage profiler statistics.
makVre::DtPlayerStationAppInputLogic::escape
virtual void escape(float val)
Handles the escape key action.
makVre::DtPlayerStationAppInputLogic::openOrFocusChat
virtual void openOrFocusChat(float val)
Opens or focuses the chat interface.
PLAYERSTATION_DLL
#define PLAYERSTATION_DLL
Definition
export.h:24
inputLogic.h
Defines the DtInputLogic class for handling input in VR-Engage.
makVre
Include export definitions for this library.
Definition
glsVreMessageUtil.h:49
Generated on 2026-01-13 from SVN revision 282860 - Copyright © 2005-2026 MAK Technologies. All Rights Reserved.