载入中...
搜索中...
未找到
eve::touch::sdl::Touch类 参考

SDL touch backend; touch state is updated from the event pump. 更多...

#include <Touch.h>

类 eve::touch::sdl::Touch 继承关系图:
eve::touch::Touch eve::Module

Public 成员函数

 Touch ()
 Binds this backend into the SDL event sink.
 
 ~Touch () override
 Releases active touch tracking and clears the event-sink owner.
 
const std::vector< TouchInfo > & getTouches () const override
 Gets all currently active touches.
 
const TouchInfo & getTouch (int64_t id) const override
 Gets a specific touch, using its ID.
 
void onEvent (uint32_t eventtype, const TouchInfo &info)
 Updates touch state from an SDL event conversion (event module).
 
- Public 成员函数 继承自 eve::touch::Touch
 Module_REG (Touch)
 
int getTouchCount () const
 Number of currently active touches.
 
double getTouchX (int index) const
 X position of the touch at dense index, or NaN if out of range.
 
double getTouchY (int index) const
 Y position of the touch at dense index, or NaN if out of range.
 
- Public 成员函数 继承自 eve::Module
virtual ~Module ()
 Module.
 
virtual std::string getName () const =0
 Returns the name.
 

详细描述

SDL touch backend; touch state is updated from the event pump.

在文件 Touch.h 第 10 行定义.

构造及析构函数说明

◆ Touch()

eve::touch::sdl::Touch::Touch ( )

Binds this backend into the SDL event sink.

在文件 Touch.cpp 第 16 行定义.

引用了 eve::touch::sdl::bindTouchEventSinkOwner().

◆ ~Touch()

eve::touch::sdl::Touch::~Touch ( )
overridevirtual

Releases active touch tracking and clears the event-sink owner.

重载 eve::touch::Touch .

在文件 Touch.cpp 第 18 行定义.

引用了 eve::touch::sdl::bindTouchEventSinkOwner().

成员函数说明

◆ getTouch()

const TouchInfo & eve::touch::sdl::Touch::getTouch ( int64_t  id) const
overridevirtual

Gets a specific touch, using its ID.

实现了 eve::touch::Touch.

在文件 Touch.cpp 第 22 行定义.

◆ getTouches()

const std::vector< TouchInfo > & eve::touch::sdl::Touch::getTouches ( ) const
overridevirtual

Gets all currently active touches.

实现了 eve::touch::Touch.

在文件 Touch.cpp 第 20 行定义.

◆ onEvent()

void eve::touch::sdl::Touch::onEvent ( uint32_t  eventtype,
const TouchInfo &  info 
)

Updates touch state from an SDL event conversion (event module).

在文件 Touch.cpp 第 30 行定义.

引用了 info.


该类的文档由以下文件生成: