mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 19:19:39 -06:00
Initial command input support
- Access the command input prompt with the § button on swedish keyboard layout. It is whatever key is corresponding to SGCT_KEY_BACKSLASH on other layouts.
This commit is contained in:
@@ -81,8 +81,9 @@ public:
|
||||
void preSynchronization();
|
||||
void postSynchronizationPreDraw();
|
||||
void render();
|
||||
void postDraw();
|
||||
void keyboardCallback(int key, int action);
|
||||
void postDraw();
|
||||
void keyboardCallback(int key, int action);
|
||||
void charCallback(unsigned int codepoint);
|
||||
void mouseButtonCallback(int key, int action);
|
||||
void mousePositionCallback(int x, int y);
|
||||
void mouseScrollWheelCallback(int pos);
|
||||
@@ -114,6 +115,14 @@ private:
|
||||
ghoul::opencl::CLContext _context;
|
||||
|
||||
sgct::SharedVector<char> _synchronizationBuffer;
|
||||
|
||||
bool _inputCommand;
|
||||
size_t _inputPosition;
|
||||
std::string _activeCommand;
|
||||
|
||||
void renderActiveCommand();
|
||||
void handleCommandInput(int key, int action);
|
||||
void addToCommand(std::string c);
|
||||
};
|
||||
|
||||
#define OsEng (openspace::OpenSpaceEngine::ref())
|
||||
|
||||
Reference in New Issue
Block a user