mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-04 03:40:07 +00:00
Fixed call to ComponentPeer::handleMouseEvent() in FakeMouseMoveGenerator. Added isPen() and isMouse() methods to MouseInputSource.
This commit is contained in:
parent
5920bcd20b
commit
8ca0bc6791
3 changed files with 13 additions and 4 deletions
|
|
@ -574,7 +574,9 @@ MouseInputSource& MouseInputSource::operator= (const MouseInputSource& other) no
|
|||
}
|
||||
|
||||
MouseInputSource::InputSourceType MouseInputSource::getType() const noexcept { return pimpl->inputType; }
|
||||
bool MouseInputSource::isMouse() const noexcept { return (getType() == MouseInputSource::InputSourceType::mouse); }
|
||||
bool MouseInputSource::isTouch() const noexcept { return (getType() == MouseInputSource::InputSourceType::touch); }
|
||||
bool MouseInputSource::isPen() const noexcept { return (getType() == MouseInputSource::InputSourceType::pen); }
|
||||
bool MouseInputSource::canHover() const noexcept { return ! isTouch(); }
|
||||
bool MouseInputSource::hasMouseWheel() const noexcept { return ! isTouch(); }
|
||||
int MouseInputSource::getIndex() const noexcept { return pimpl->index; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue