mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added mouse-up event pressure handling
This commit is contained in:
parent
a050e0700b
commit
ab3e628f36
3 changed files with 4 additions and 4 deletions
|
|
@ -2489,7 +2489,7 @@ void Component::internalMouseDown (MouseInputSource source, Point<float> relativ
|
|||
}
|
||||
|
||||
void Component::internalMouseUp (MouseInputSource source, Point<float> relativePos,
|
||||
Time time, const ModifierKeys oldModifiers)
|
||||
Time time, const ModifierKeys oldModifiers, float pressure)
|
||||
{
|
||||
if (flags.mouseDownWasBlocked && isCurrentlyBlockedByAnotherModalComponent())
|
||||
return;
|
||||
|
|
@ -2500,7 +2500,7 @@ void Component::internalMouseUp (MouseInputSource source, Point<float> relativeP
|
|||
repaint();
|
||||
|
||||
const MouseEvent me (source, relativePos,
|
||||
oldModifiers, MouseInputSource::invalidPressure, this, this, time,
|
||||
oldModifiers, pressure, this, this, time,
|
||||
getLocalPoint (nullptr, source.getLastMouseDownPosition()),
|
||||
source.getLastMouseDownTime(),
|
||||
source.getNumberOfMultipleClicks(),
|
||||
|
|
|
|||
|
|
@ -2301,7 +2301,7 @@ private:
|
|||
void internalMouseEnter (MouseInputSource, Point<float>, Time);
|
||||
void internalMouseExit (MouseInputSource, Point<float>, Time);
|
||||
void internalMouseDown (MouseInputSource, Point<float>, Time, float);
|
||||
void internalMouseUp (MouseInputSource, Point<float>, Time, const ModifierKeys oldModifiers);
|
||||
void internalMouseUp (MouseInputSource, Point<float>, Time, const ModifierKeys oldModifiers, float);
|
||||
void internalMouseDrag (MouseInputSource, Point<float>, Time, float);
|
||||
void internalMouseMove (MouseInputSource, Point<float>, Time);
|
||||
void internalMouseWheel (MouseInputSource, Point<float>, Time, const MouseWheelDetails&);
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ public:
|
|||
void sendMouseUp (Component& comp, Point<float> screenPos, Time time, const ModifierKeys oldMods)
|
||||
{
|
||||
JUCE_MOUSE_EVENT_DBG ("up")
|
||||
comp.internalMouseUp (MouseInputSource (this), screenPosToLocalPos (comp, screenPos), time, oldMods);
|
||||
comp.internalMouseUp (MouseInputSource (this), screenPosToLocalPos (comp, screenPos), time, oldMods, pressure);
|
||||
}
|
||||
|
||||
void sendMouseWheel (Component& comp, Point<float> screenPos, Time time, const MouseWheelDetails& wheel)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue