载入中...
搜索中...
未找到
Touch.h
浏览该文件的文档.
Active touch-point query interface (positions in window pixels).
Definition Touch.h:15
SDL touch backend; touch state is updated from the event pump.
Definition Touch.h:11
void onEvent(uint32_t eventtype, const TouchInfo &info)
Updates touch state from an SDL event conversion (event module).
Definition Touch.cpp:30
~Touch() override
Releases active touch tracking and clears the event-sink owner.
Definition Touch.cpp:18
const std::vector< TouchInfo > & getTouches() const override
Gets all currently active touches.
Definition Touch.cpp:20
const TouchInfo & getTouch(int64_t id) const override
Gets a specific touch, using its ID.
Definition Touch.cpp:22
Definition EventSink.cpp:21
One active contact; id is unique only for the duration of the press.
Definition Touch.h:20