AUI Framework  master
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
APointerPressedEvent Struct Reference

Pointing method press event.

#include <AUI/Event/APointerPressedEvent.h>

Signals and public fields#

glm::vec2 position
 Where does the event occurred.
 
APointerIndex pointerIndex
 Which button of the pointing device is triggered the event (AInput::LBUTTON if not present) or finger.
 
AInput::Key asButton = pointerIndex.button().valueOr(AInput::LBUTTON)
 pointerIndex treated as mouse button.
 

Member Data Documentation#

◆ asButton#

AInput::Key APointerPressedEvent::asButton = pointerIndex.button().valueOr(AInput::LBUTTON)

= LBUTTON if finger event, pointerIndex.button() otherwise.