载入中...
搜索中...
未找到
eve::keyboard::sdl::Keyboard类 参考

SDL keyboard backend implementing eve::keyboard::Keyboard. 更多...

#include <Keyboard.h>

类 eve::keyboard::sdl::Keyboard 继承关系图:
eve::keyboard::Keyboard eve::Module

Public 成员函数

 Keyboard ()
 Constructs the SDL keyboard module.
 
 ~Keyboard () override
 Releases keyboard backend state.
 
void setKeyRepeat (bool enable) override
 Whether held keys emit repeated keypressed events.
 
bool hasKeyRepeat () const override
 True when key-repeat events are enabled.
 
bool isDown (const std::string &key) const override
 True if any of the named keys is currently down.
 
bool isDown (const std::vector< std::string > &keys) const override
 True if any of the named keys is currently down.
 
bool isScancodeDown (const std::string &scancode) const override
 True if any of the named physical scancodes is currently down.
 
bool isScancodeDown (const std::vector< std::string > &scancodes) const override
 True if any of the named physical scancodes is currently down.
 
std::string getKeyFromScancode (const std::string &scancode) const override
 Layout-aware key name for a physical scancode (SDL names).
 
std::string getScancodeFromKey (const std::string &key) const override
 Physical scancode name for a layout-aware key (SDL names).
 
void setTextInput (bool enable) override
 Enables or disables text-input / IME composition.
 
void setTextInput (bool enable, double x, double y, double w, double h) override
 Enables or disables text-input / IME composition.
 
bool hasTextInput () const override
 True while text-input / IME is active.
 
bool hasScreenKeyboard () const override
 True when the platform exposes an on-screen keyboard.
 
- Public 成员函数 继承自 eve::keyboard::Keyboard
 Module_REG (Keyboard)
 
- Public 成员函数 继承自 eve::Module
virtual ~Module ()
 Module.
 
virtual std::string getName () const =0
 Returns the name.
 

详细描述

SDL keyboard backend implementing eve::keyboard::Keyboard.

在文件 Keyboard.h 第 8 行定义.

构造及析构函数说明

◆ Keyboard()

eve::keyboard::sdl::Keyboard::Keyboard ( )

Constructs the SDL keyboard module.

在文件 Keyboard.cpp 第 11 行定义.

引用了 eve::keyboard::sdl::bindKeyboardEventSinkOwner().

◆ ~Keyboard()

eve::keyboard::sdl::Keyboard::~Keyboard ( )
overridevirtual

Releases keyboard backend state.

重载 eve::keyboard::Keyboard .

在文件 Keyboard.cpp 第 17 行定义.

引用了 eve::keyboard::sdl::bindKeyboardEventSinkOwner().

成员函数说明

◆ getKeyFromScancode()

std::string eve::keyboard::sdl::Keyboard::getKeyFromScancode ( const std::string &  scancode) const
overridevirtual

Layout-aware key name for a physical scancode (SDL names).

实现了 eve::keyboard::Keyboard.

在文件 Keyboard.cpp 第 62 行定义.

引用了 key.

◆ getScancodeFromKey()

std::string eve::keyboard::sdl::Keyboard::getScancodeFromKey ( const std::string &  key) const
overridevirtual

Physical scancode name for a layout-aware key (SDL names).

实现了 eve::keyboard::Keyboard.

在文件 Keyboard.cpp 第 71 行定义.

引用了 key.

◆ hasKeyRepeat()

bool eve::keyboard::sdl::Keyboard::hasKeyRepeat ( ) const
overridevirtual

True when key-repeat events are enabled.

实现了 eve::keyboard::Keyboard.

在文件 Keyboard.cpp 第 26 行定义.

◆ hasScreenKeyboard()

bool eve::keyboard::sdl::Keyboard::hasScreenKeyboard ( ) const
overridevirtual

True when the platform exposes an on-screen keyboard.

实现了 eve::keyboard::Keyboard.

在文件 Keyboard.cpp 第 105 行定义.

◆ hasTextInput()

bool eve::keyboard::sdl::Keyboard::hasTextInput ( ) const
overridevirtual

True while text-input / IME is active.

实现了 eve::keyboard::Keyboard.

在文件 Keyboard.cpp 第 101 行定义.

◆ isDown() [1/2]

bool eve::keyboard::sdl::Keyboard::isDown ( const std::string &  key) const
overridevirtual

True if any of the named keys is currently down.

实现了 eve::keyboard::Keyboard.

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

引用了 isDown() , 以及 key.

被这些函数引用 isDown().

◆ isDown() [2/2]

bool eve::keyboard::sdl::Keyboard::isDown ( const std::vector< std::string > &  keys) const
overridevirtual

True if any of the named keys is currently down.

实现了 eve::keyboard::Keyboard.

在文件 Keyboard.cpp 第 34 行定义.

引用了 key , 以及 state.

◆ isScancodeDown() [1/2]

bool eve::keyboard::sdl::Keyboard::isScancodeDown ( const std::string &  scancode) const
overridevirtual

True if any of the named physical scancodes is currently down.

实现了 eve::keyboard::Keyboard.

在文件 Keyboard.cpp 第 47 行定义.

引用了 isScancodeDown().

被这些函数引用 isScancodeDown().

◆ isScancodeDown() [2/2]

bool eve::keyboard::sdl::Keyboard::isScancodeDown ( const std::vector< std::string > &  scancodes) const
overridevirtual

True if any of the named physical scancodes is currently down.

实现了 eve::keyboard::Keyboard.

在文件 Keyboard.cpp 第 51 行定义.

引用了 state.

◆ setKeyRepeat()

void eve::keyboard::sdl::Keyboard::setKeyRepeat ( bool  enable)
overridevirtual

Whether held keys emit repeated keypressed events.

实现了 eve::keyboard::Keyboard.

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

◆ setTextInput() [1/2]

void eve::keyboard::sdl::Keyboard::setTextInput ( bool  enable)
overridevirtual

Enables or disables text-input / IME composition.

实现了 eve::keyboard::Keyboard.

在文件 Keyboard.cpp 第 80 行定义.

被这些函数引用 setTextInput().

◆ setTextInput() [2/2]

void eve::keyboard::sdl::Keyboard::setTextInput ( bool  enable,
double  x,
double  y,
double  w,
double  h 
)
overridevirtual

Enables or disables text-input / IME composition.

实现了 eve::keyboard::Keyboard.

在文件 Keyboard.cpp 第 87 行定义.

引用了 getModInst, h, setTextInput(), w, x , 以及 y.


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