mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-26 02:14:22 +00:00
Added callback to get number of keywaves of an on-screen seaboard view
This commit is contained in:
parent
de84462f2d
commit
826fdfe6c9
3 changed files with 11 additions and 1 deletions
|
|
@ -43,7 +43,8 @@ public:
|
|||
lightPadBlock,
|
||||
liveBlock,
|
||||
loopBlock,
|
||||
developerControlBlock
|
||||
developerControlBlock,
|
||||
seaboardBlock // on-screen seaboard view
|
||||
};
|
||||
|
||||
/** The Block class is reference-counted, so always use a Block::Ptr when
|
||||
|
|
|
|||
|
|
@ -96,6 +96,10 @@ public:
|
|||
/** Forces a touch-off message for all active touches. */
|
||||
virtual void cancelAllActiveTouches() noexcept = 0;
|
||||
|
||||
/** For the on-screen seaboard view, this will return the number of keys.
|
||||
For other types of touch-surface, it will return 0. */
|
||||
virtual int getNumberOfKeywaves() const = 0;
|
||||
|
||||
//==============================================================================
|
||||
/** Receives callbacks when a touch moves or changes pressure. */
|
||||
struct Listener
|
||||
|
|
|
|||
|
|
@ -1416,6 +1416,11 @@ struct PhysicalTopologySource::Internal
|
|||
det->activeTouchSurfaces.removeFirstMatchingValue (this);
|
||||
}
|
||||
|
||||
int getNumberOfKeywaves() const noexcept override
|
||||
{
|
||||
return blockImpl.modelData.numKeywaves;
|
||||
}
|
||||
|
||||
void broadcastTouchChange (const TouchSurface::Touch& touchEvent)
|
||||
{
|
||||
auto& status = touches.getValue (touchEvent);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue