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