|
BEEP-8 Helper Lib 1.0.0
|
Structure representing a single input point (touch or mouse). More...
#include <hif_decoder.h>
Public Types | |
| enum | PointType { None , Mouse , Touch } |
| Enumeration of input point types. More... | |
Public Member Functions | |
| HifPoint (const b8HifEvent &ev_) | |
Constructs a HifPoint with the given event. | |
Public Attributes | |
| u32 | hdl = 0 |
| PointType | ptype = None |
| b8HifEvent | ev |
Structure representing a single input point (touch or mouse).
The HifPoint structure represents an active input point from the HIF system, such as a touch or mouse event. It contains information about the event type, a unique handle, and the event data itself.
ev.xp and ev.yp members of the b8HifEvent structure are 16-bit signed fixed-point numbers with 4 fractional bits. To obtain the integer part of the coordinates, shift right by 4 bits (i.e., ev.xp >> 4 and ev.yp >> 4). | enum HifPoint::PointType |
|
inline |
Constructs a HifPoint with the given event.
| ev_ | The HIF event associated with this input point. |
| b8HifEvent HifPoint::ev |
Event data associated with the input point
| u32 HifPoint::hdl = 0 |
Unique handle for the input point