MCPcopy Create free account
hub / github.com/Prograda/Skybolt / createHelpDisplay

Function createHelpDisplay

src/SkyboltExamples/FlightSimApp/FlightSimApp.cpp:121–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119};
120
121static osg::ref_ptr<HelpDisplayRenderOperation> createHelpDisplay()
122{
123 std::string helpMessage =
124R"(= Controls =
125W: Collective up
126S: Collective down
127A: Pedel Left
128D: Pedel Right
129Up arrow: Cyclic forward
130Down arrow: Cyclic aft
131Left arrow: Cyclic left
132Right arrow: Cyclic right
133F1: Cockpit view
134F2: External view
135H: Toggle help message
136Esc: Exit
137Mouse: Pan camera
138)";
139
140 osg::ref_ptr<HelpDisplayRenderOperation> helpDisplay = new HelpDisplayRenderOperation();
141 helpDisplay->setMessage(helpMessage);
142 return helpDisplay;
143}
144
145int main(int argc, char *argv[])
146{

Callers 1

mainFunction · 0.70

Calls 1

setMessageMethod · 0.80

Tested by

no test coverage detected