MCPcopy Create free account
hub / github.com/comaps/comaps / GetTouchEvent

Function GetTouchEvent

dev_sandbox/main.cpp:116–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116df::TouchEvent GetTouchEvent(Framework & framework, double x, double y, int mods, df::TouchEvent::ETouchType type)
117{
118 df::TouchEvent event;
119 event.SetTouchType(type);
120 event.SetFirstTouch(GetTouch(x, y));
121 if (mods & GLFW_MOD_SUPER)
122 event.SetSecondTouch(GetSymmetricalTouch(framework, event.GetFirstTouch()));
123 return event;
124}
125
126void FormatMapSize(uint64_t sizeInBytes, std::string & units, size_t & sizeToDownload)
127{

Callers 1

mainFunction · 0.85

Calls 5

GetTouchFunction · 0.85
GetSymmetricalTouchFunction · 0.85
SetTouchTypeMethod · 0.80
SetFirstTouchMethod · 0.80
SetSecondTouchMethod · 0.80

Tested by

no test coverage detected