Go to the documentation of this file.
25 #ifndef JUCE_MULTITOUCHMAPPER_H_INCLUDED
26 #define JUCE_MULTITOUCHMAPPER_H_INCLUDED
28 template <
typename IDType>
38 int touchIndex = currentTouches.
indexOf (touchID);
42 for (touchIndex = 0; touchIndex < currentTouches.
size(); ++touchIndex)
46 currentTouches.
set (touchIndex, touchID);
54 currentTouches.
clear();
59 currentTouches.
set (index, 0);
64 for (
int i = currentTouches.
size(); --i >= 0;)
77 #endif // JUCE_MULTITOUCHMAPPER_H_INCLUDED
void clear()
Definition: juce_MultiTouchMapper.h:52
void clearTouch(int index)
Definition: juce_MultiTouchMapper.h:57
MultiTouchMapper()
Definition: juce_MultiTouchMapper.h:32
Definition: juce_MultiTouchMapper.h:29
#define noexcept
Definition: juce_CompilerSupport.h:141
int indexOf(ParameterType elementToLookFor) const
Definition: juce_Array.h:355
int getIndexOfTouch(IDType touchID)
Definition: juce_MultiTouchMapper.h:34
ElementType getUnchecked(const int index) const
Definition: juce_Array.h:258
bool areAnyTouchesActive() const noexcept
Definition: juce_MultiTouchMapper.h:62
void clear()
Definition: juce_Array.h:200
void set(const int indexToChange, ParameterType newValue)
Definition: juce_Array.h:556
int size() const noexcept
Definition: juce_Array.h:221