mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 03:29:44 -06:00
Feature/touch web gui support (#798)
* Added touch support for web GUI * Code cleanup after master merge, no functionality changes * Fixed alignment of function arguments
This commit is contained in:
@@ -42,6 +42,10 @@ namespace openspace {
|
||||
* Returns true if new touch input occured since the last frame
|
||||
*/
|
||||
bool hasNewInput();
|
||||
/**
|
||||
* Checks if touchevent should be parsed to the webgui
|
||||
*/
|
||||
void hasNewWebInput(const std::vector<TUIO::TuioCursor>& listOfContactPoints);
|
||||
|
||||
TuioEar ear;
|
||||
TouchInteraction touch;
|
||||
@@ -49,6 +53,7 @@ namespace openspace {
|
||||
std::vector<TUIO::TuioCursor> listOfContactPoints;
|
||||
// contains an id and the TuioPoint that was processed last frame
|
||||
std::vector<Point> lastProcessed;
|
||||
glm::ivec2 webPositionCallback = glm::ivec2(0,0);
|
||||
};
|
||||
|
||||
} // namespace openspace
|
||||
|
||||
Reference in New Issue
Block a user