1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-20 01:14:20 +00:00

Windows: Removed Desktop::clearAllTouchSources() method and cleaned up some Windows touch input code

This commit is contained in:
ed 2017-06-15 17:20:55 +01:00
parent 8e4c187451
commit ca9c8f22d7
4 changed files with 20 additions and 37 deletions

View file

@ -684,21 +684,6 @@ struct MouseInputSource::SourceList : public Timer
return nullptr;
}
void clearTouches()
{
for (auto i = sourceArray.size(); --i >= 0;)
{
if (sourceArray.getUnchecked (i).getType() == MouseInputSource::InputSourceType::touch)
sourceArray.remove (i);
}
for (auto i = sources.size(); --i >= 0;)
{
if (sources.getUnchecked (i)->inputType == MouseInputSource::InputSourceType::touch)
sources.remove (i);
}
}
int getNumDraggingMouseSources() const noexcept
{
int num = 0;