MCPcopy Create free account
hub / github.com/OpenVR-Advanced-Settings/OpenVR-AdvancedSettings / SteamIVRInput

Method SteamIVRInput

src/openvr/ivrinput.cpp:102–161  ·  view source on GitHub ↗

! Sets up the input systems. Actions should be added to the initializer list before the body of the constructor. Actions should be certain that the action name strings are correctly input, and that the correct type is provided. Wrong action names may not result in direct error messages, but just features mystically not working. */

Source from the content-addressed store, hash-verified

100mystically not working.
101*/
102SteamIVRInput::SteamIVRInput()
103 : m_manifest(), m_haptics( action_sets::haptic ),
104 m_music( action_sets::music ), m_motion( action_sets::motion ),
105 m_misc( action_sets::misc ), m_system( action_sets::system ),
106 m_nextTrack( action_keys::nextTrack ),
107 m_previousTrack( action_keys::previousTrack ),
108 m_pausePlayTrack( action_keys::pausePlayTrack ),
109 m_stopTrack( action_keys::stopTrack ),
110 m_leftHandSpaceTurn( action_keys::leftHandSpaceTurn ),
111 m_rightHandSpaceTurn( action_keys::rightHandSpaceTurn ),
112 m_leftHandSpaceDrag( action_keys::leftHandSpaceDrag ),
113 m_rightHandSpaceDrag( action_keys::rightHandSpaceDrag ),
114 m_optionalOverrideLeftHandSpaceTurn(
115 action_keys::optionalOverrideLeftHandSpaceTurn ),
116 m_optionalOverrideRightHandSpaceTurn(
117 action_keys::optionalOverrideRightHandSpaceTurn ),
118 m_optionalOverrideLeftHandSpaceDrag(
119 action_keys::optionalOverrideLeftHandSpaceDrag ),
120 m_optionalOverrideRightHandSpaceDrag(
121 action_keys::optionalOverrideRightHandSpaceDrag ),
122 m_swapSpaceDragToLeftHandOverride(
123 action_keys::swapSpaceDragToLeftHandOverride ),
124 m_swapSpaceDragToRightHandOverride(
125 action_keys::swapSpaceDragToRightHandOverride ),
126 m_gravityToggle( action_keys::gravityToggle ),
127 m_gravityReverse( action_keys::gravityReverse ),
128 m_heightToggle( action_keys::heightToggle ),
129 m_resetOffsets( action_keys::resetOffsets ),
130 m_applyOffsets( action_keys::applyOffsets ),
131 m_snapTurnLeft( action_keys::snapTurnLeft ),
132 m_snapTurnRight( action_keys::snapTurnRight ),
133 m_smoothTurnLeft( action_keys::smoothTurnLeft ),
134 m_smoothTurnRight( action_keys::smoothTurnRight ),
135 m_autoTurnToggle( action_keys::autoTurnToggle ),
136 m_xAxisLockToggle( action_keys::xAxisLockToggle ),
137 m_yAxisLockToggle( action_keys::yAxisLockToggle ),
138 m_zAxisLockToggle( action_keys::zAxisLockToggle ),
139 m_keyboardOne( action_keys::keyboardOne ),
140 m_keyboardTwo( action_keys::keyboardTwo ),
141 m_keyboardThree( action_keys::keyboardThree ),
142 m_keyPressMisc( action_keys::keyPressMisc ),
143 m_keyPressSystem( action_keys::keyPressSystem ),
144 m_chaperoneToggle( action_keys::chaperoneToggle ),
145 m_pushToTalk( action_keys::pushToTalk ),
146 m_exclusiveInputToggle( action_keys::exclusiveInputToggle ),
147 m_leftHaptic( action_keys::hapticsLeft ),
148 m_rightHaptic( action_keys::hapticsRight ),
149 m_addLeftHapticClick( action_keys::addLeftHapticClick ),
150 m_addRightHapticClick( action_keys::addRightHapticClick ),
151 m_proxSensor( action_keys::proxSensor ),
152 m_leftHand( input_keys::leftHand ), m_rightHand( input_keys::rightHand ),
153 m_sets( { m_haptics.activeActionSet(),
154 m_music.activeActionSet(),
155 m_motion.activeActionSet(),
156 m_misc.activeActionSet(),
157 m_system.activeActionSet() } ),
158 m_systemActionSets(
159 { m_haptics.activeActionSet(), m_system.activeActionSet() } )

Callers

nothing calls this directly

Calls 1

activeActionSetMethod · 0.80

Tested by

no test coverage detected