|
Axmol 3.0.0-89d6d9a
|
Internal representation of raw pointer input from the platform. More...
#include <Event.h>
Public Attributes | |
| intptr_t | id {-1} |
| Unique identifier for the pointer (platform-provided or mapped). | |
| float | pressure {1.0f} |
| Raw pressure value reported by the platform (if available). | |
| int32_t | button {InputButton::None} |
| Triggering button index (0..n-1), or -1 when none (touch / no button). | |
| uint32_t | pressedButtons {0} |
| Bitmask of currently pressed buttons; bit i corresponds to button index i. | |
| PointerType | type {PointerType::Mouse} |
| Type of pointer (Mouse, Touch, Pen). | |
Internal representation of raw pointer input from the platform.
This structure is used internally by the InputSystem to capture native input events (touch, mouse, pen, etc.) coming from the OS or windowing layer. Fields contain unprocessed, screen-space values and raw attributes such as pointer id, button index, pressed-button bitmask and pressure.
button field is a single button index indicating which button triggered this event. It uses the convention:button value MUST be -1.pressedButtons to inspect the current set of pressed buttons.pressedButtons is typically 0.x and y are raw native screen-space coordinates. The InputSystem is responsible for applying input scaling and transforming these into engine/view coordinates before constructing and dispatching a higher-level PointerEvent to listeners.