mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-27 02:20:05 +00:00
Added iterator access to Desktop's list of mouse sources.
This commit is contained in:
parent
6045915256
commit
b3fd5cb8a3
5 changed files with 22 additions and 18 deletions
|
|
@ -221,13 +221,13 @@ public:
|
|||
Desktop& desktop = Desktop::getInstance();
|
||||
int numMiceDown = 0;
|
||||
|
||||
for (int i = desktop.getNumMouseSources(); --i >= 0;)
|
||||
{
|
||||
MouseInputSource& source = *desktop.getMouseSource(i);
|
||||
const OwnedArray<MouseInputSource>& mouseSources = desktop.getMouseSources();
|
||||
|
||||
if (source.isDragging())
|
||||
for (MouseInputSource** i = mouseSources.begin(), ** const e = mouseSources.end(); i != e; ++i)
|
||||
{
|
||||
if ((*i)->isDragging())
|
||||
{
|
||||
source.triggerFakeMove();
|
||||
(*i)->triggerFakeMove();
|
||||
++numMiceDown;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue