1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
Commit graph

73 commits

Author SHA1 Message Date
Tom Poole
94d98a2b10 Update licensing information 2024-04-16 11:39:35 +01:00
Anthony Nicholls
cff722a4af GUI Basics: Refactor juce_gui_basics file structure
- Created a new detail namespace
- Moved shared module implementation details into the detail namespace
- Split dependencies so source files only rely on details in the detail namespace
- Removed all code from the juce_gui_basics.cpp file
2023-03-16 08:53:12 +00:00
attila
a115c99da4 MouseInputSource: Avoid wrong ComponentPeer association
When the mouse moves from one window to another, the mouseExit event
for the old window can occur after the mouseMove event for the new.
Until this commit this would cause the MouseInputSource to be
associated with the old window, and getComponentUnderMouse() would
incorrectly return a nullptr.
2022-12-13 14:44:33 +01:00
Tom Poole
2ec861d99e Update licensing banners to JUCE 7 2022-05-16 17:55:48 +01:00
Tom Poole
dea3fe60e4 Update copyright banners 2022-04-04 12:36:32 +01:00
reuk
eb6e579f0a
ComponentPeer: Correctly scale drag and drop coordinates to account for global scale 2022-02-23 10:56:12 +00:00
Attila Szarvas
101a886821 MouseInputSource: Eliminate superfluous drag events caused by pressure change
The bug was triggered on Monterey where a pressure of 1 is reported
while a mouse button is being held down. This caused an extra drag
event being triggered between mouse down and up events, even if no
movement occurred.
2022-02-15 10:53:32 +00:00
reuk
eca02270ee
Component: Add Point<float> overloads for some common functions 2021-10-27 16:33:37 +01:00
ed
550127945d Added floating-point implementations for some Component hit-testing methods to improve reliability when dealing with scaled Components 2021-06-08 14:14:22 +01:00
reuk
394c4fd475 Clang: Fix warnings when building with clang 10 2020-07-01 10:00:43 +01:00
ed
009d685179 Updated all license headers 2020-06-29 08:30:22 +01:00
Tom Poole
894e7d2bd2 Updated all license headers 2020-04-23 17:30:39 +01:00
reuk
327f817b9b Copyrights: Update commercial/gpl headers to be gpl-only 2020-04-09 15:22:56 +01:00
Tom Poole
a9a0f6b92f Enforced more comprehensive const-correctness in the JUCE container classes 2019-05-29 08:52:16 +01:00
ed
b1c4d981da Fixed an iOS multitouch bug and added MouseInputSource::offscreenMousePos to replace some magic numbers 2019-03-26 11:40:58 +00:00
ed
56302416df Remove check for touch input in MouseInputSourceInternal::getRawScreenPosition() and instead use the cached mouse position from the native peer impls 2019-03-12 16:45:50 +00:00
jules
7ab4d1708b Some misc cleanups, mainly around WeakReference usage and rectangles 2018-07-09 16:00:45 +01:00
ed
481221a256 Cleaned up the ModifierKeys class and removed the peer-specific implementations of ModifierKeys::getCurrentModifiersRealtime() and ModifierKeys::updateCurrentModifiers() 2018-05-09 10:04:27 +01:00
ed
7cf8e28fdd Deprecated MouseInputSource::hasMouseMovedSignificantlySincePressed() and replaced with the more accurate isLongPressOrDrag() and hasMovedSignificantlySincePressed() methods 2018-04-10 10:14:51 +01:00
jules
d0111a4f96 Began phasing out double_Pi and float_Pi in favour of MathConstants::pi. Also added MathConstants::twoPi 2017-12-06 11:16:22 +00:00
ed
7e1ec31df9 Increased the movement tolerance for double-clicks when using a touch input source 2017-11-20 10:45:36 +00:00
ed
5d8d37eb87 Added support for multi-touch drag and drop 2017-10-04 15:52:31 +01:00
jules
eda613c6db Moved all "namespace juce" declarations from module headers to the individual .h and .cpp source files. This makes life a lot easier for Intellisense and other IDE autocompletion tools 2017-09-08 08:59:55 +01:00
ed
3947df98a9 Fixed a scaling bug when doing drag auto-repeat 2017-08-07 16:41:25 +01:00
jules
99c5843c3f Worked around a situation where mouse-drag auto-repeat can create a message-queue traffic jam on windows. Also tidied up inside MouseInputSource 2017-07-26 16:19:01 +01:00
tpoole
98cb1011bb JUCE Demo: Increased the compiler warning level 2017-07-18 13:09:03 +01:00
ed
ca9c8f22d7 Windows: Removed Desktop::clearAllTouchSources() method and cleaned up some Windows touch input code 2017-06-15 17:20:55 +01:00
ed
9d294970d7 Windows: Fixed a bug where multi-touch inputs weren't being cleared correctly 2017-06-14 12:11:12 +01:00
hogliux
b5afccc37c Updated file headers and the README with the JUCE 5 license 2017-04-27 14:43:04 +01:00
ed
8ca0bc6791 Fixed call to ComponentPeer::handleMouseEvent() in FakeMouseMoveGenerator. Added isPen() and isMouse() methods to MouseInputSource. 2017-03-16 08:53:46 +00:00
ed
b7b8d5be57 Multiple fixes for touch and pen input on Windows 2017-03-15 17:16:04 +00:00
ed
01aedca76d Fixed bug where inertial mouse wheel events had screen position (0, 0) 2017-02-13 12:12:38 +00:00
jules
ab3e628f36 Added mouse-up event pressure handling 2016-07-08 12:33:58 +01:00
jules
6fba61fdeb Allowed mouse-wheel events to be delivered while the mouse button is down 2016-02-22 10:54:20 +00:00
jules
a3426aae10 Added support for iOS force-touch 2015-11-02 11:51:16 +00:00
hogliux
c7b8e77031 Update copyright notice 2015-07-22 15:59:34 +01:00
jules
9b79610cb0 Added a flag MouseWheelEvent::isInertial (currently only implemented for OSX 10.7 or later), and used this to replace some clunky behaviour in the Viewport class that was there to avoid inertial wheel movements triggering nested scrollable components. 2015-06-22 20:28:15 +01:00
jules
67ab6a562c Fix for an edge-case where dragging within a triple-click would trigger a false double-click 2015-05-11 11:22:39 +01:00
jules
7dac51859c Fixes for unbounded mouse behaviour on scaled displays 2014-07-31 11:18:38 +01:00
jules
2f1ef234ce Tightened up a few places where numeric conversion warnings could happen. 2014-07-10 18:57:24 +01:00
jules
6c61dbb68e Refactored the internal mouse-handling code to use floating point coords. This shouldn't affect much user code, but a few methods in MouseInputSource have now changed to use Point<float> rather than Point<int>. 2014-06-14 13:06:53 +01:00
jules
40ad479b96 Couple of minor cleanups. 2014-04-30 10:10:35 +01:00
jules
ef1f2e6094 Avoided some repainting when moving scaled windows (win32). Also removed the fake drop-shadowing in newer versions of 2013-10-17 20:50:17 +01:00
jules
7bf1da5e17 Added MouseInputSource::isUnboundedMouseMovementEnabled(). Tweaks to mouse cursor snap-back in Sliders. 2013-09-09 12:29:06 +01:00
jules
be1d5253ee Moved some mouse code out of Desktop class. Made the MouseInputSource class pass-by-value. 2013-09-03 10:44:55 +01:00
jules
39c44c12ed Added a Component::getDesktopScaleFactor() method which can be overridden to force a scale for a particular window. 2013-08-21 19:02:50 +01:00
jules
fc21a145cf Fix for broken screen coord conversion in plugin windows. 2013-07-29 16:31:03 +01:00
jules
b91983c480 Work towards supporting a global scaling factor: Desktop::setGlobalScaleFactor(). 2013-07-26 17:35:33 +01:00
jules
155859f86b Internal refactoring. 2013-07-03 18:39:18 +01:00
jules
c75a7300f5 Added some 'override' modifiers to overridden methods. 2013-06-23 23:09:52 +01:00