BEEP-8 Helper Lib 1.0.0
Loading...
Searching...
No Matches
HifPoint Struct Reference

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
 

Detailed Description

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.

Note
  • The 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).

Member Enumeration Documentation

◆ PointType

Enumeration of input point types.

Enumerator
None 

No input

Mouse 

Mouse input

Touch 

Touch input

Constructor & Destructor Documentation

◆ HifPoint()

HifPoint::HifPoint ( const b8HifEvent & ev_)
inline

Constructs a HifPoint with the given event.

Parameters
ev_The HIF event associated with this input point.

Member Data Documentation

◆ ev

b8HifEvent HifPoint::ev

Event data associated with the input point

◆ hdl

u32 HifPoint::hdl = 0

Unique handle for the input point

◆ ptype

PointType HifPoint::ptype = None

Type of the input point (Mouse or Touch)


The documentation for this struct was generated from the following file: