Events
Box Events
The easiest way to get information about the events that happened this frame on a box is:
UISignal UISignalFromBox(UIBox* box);
This returns a struct with a property per-event. However, you may prefer to instead use one of the following functions instead:
bool UIBoxIsHover(UIBox* box);
bool UIBoxIsActive(UIBox* box);
bool UIBoxIsDrag(UIBox* box);
bool UIBoxOnDrop(UIBox* box);
bool UIBoxIsDropTarget(UIBox* box);
bool UIBoxOnPressed(UIBox* box);
bool UIBoxOnReleased(UIBox* box);
bool UIBoxOnClick(UIBox* box);
UI Events
The following functions query information about the UI events that happened this frame:
bool UIKeyPressed(PBKeyboardKey key);
bool UIKeyReleased(PBKeyboardKey key);
bool UIKeyDown(PBKeyboardKey key);
bool UIMousePressed(PBKeyboardKey key);
bool UIMouseReleased(PBKeyboardKey key);
bool UIMouseDown(PBKeyboardKey key);
PBVector2 UIMousePosition();
PBVector2 UIDragStart();
PBVector2 UIDragDelta();
PBVector2 UIScrollAmount();