BEEP-8 Helper Lib 1.0.0
Loading...
Searching...
No Matches
hif_decoder.h
Go to the documentation of this file.
1
66#pragma once
67
68#include <map>
69#include <b8/hif.h>
70
83struct HifPoint {
92
93 u32 hdl = 0;
95 b8HifEvent ev;
102 HifPoint(const b8HifEvent& ev_)
103 : ev(ev_) {}
104};
105
106class ImplCHifDecoder;
107
116 ImplCHifDecoder* impl = nullptr;
117
118public:
124 CHifDecoder();
125
131 ~CHifDecoder();
132
158 const b8HifMouseStatus* GetMouseStatus();
159
185 const std::map<u8, HifPoint*>& GetStatus();
186};
Class for decoding and managing HIF events.
Definition hif_decoder.h:115
const b8HifMouseStatus * GetMouseStatus()
Retrieves the current mouse or touch panel status.
Definition hif_decoder.cpp:40
~CHifDecoder()
Destructs the CHifDecoder object.
Definition hif_decoder.cpp:36
CHifDecoder()
Constructs a CHifDecoder object.
Definition hif_decoder.cpp:32
const std::map< u8, HifPoint * > & GetStatus()
Retrieves the current status of active input points.
Definition hif_decoder.cpp:44
Definition hif_decoder.cpp:10
Structure representing a single input point (touch or mouse).
Definition hif_decoder.h:83
PointType
Enumeration of input point types.
Definition hif_decoder.h:87
@ Touch
Definition hif_decoder.h:90
@ None
Definition hif_decoder.h:88
@ Mouse
Definition hif_decoder.h:89
PointType ptype
Definition hif_decoder.h:94
b8HifEvent ev
Definition hif_decoder.h:95
HifPoint(const b8HifEvent &ev_)
Constructs a HifPoint with the given event.
Definition hif_decoder.h:102
u32 hdl
Definition hif_decoder.h:93