载入中...
搜索中...
未找到
eve::keyboard::sdl::Keyboard类 参考
SDL 键盘后端实现。 更多...
#include <Keyboard.h>
类 eve::keyboard::sdl::Keyboard 继承关系图:
Public 成员函数 | |
| Keyboard () | |
| ~Keyboard () override | |
| void | setKeyRepeat (bool enable) override |
| Whether held keys emit repeated keypressed events. | |
| bool | hasKeyRepeat () const override |
| 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 |
| 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 |
| std::string | getKeyFromScancode (const std::string &scancode) const override |
| Layout-aware key <-> physical scancode conversion (SDL names). | |
| std::string | getScancodeFromKey (const std::string &key) const override |
| void | setTextInput (bool enable) override |
| void | setTextInput (bool enable, double x, double y, double w, double h) override |
| Hint where text appears so on-screen keyboards avoid covering it (pixel coords). | |
| bool | hasTextInput () const override |
| bool | hasScreenKeyboard () const override |
Public 成员函数 继承自 eve::keyboard::Keyboard | |
| Module_REG (Keyboard) | |
Public 成员函数 继承自 eve::Module | |
| virtual | ~Module () |
| virtual std::string | getName () const =0 |
详细描述
SDL 键盘后端实现。
在文件 Keyboard.h 第 8 行定义.
构造及析构函数说明
◆ Keyboard()
| eve::keyboard::sdl::Keyboard::Keyboard | ( | ) |
在文件 Keyboard.cpp 第 10 行定义.
◆ ~Keyboard()
|
overridevirtual |
在文件 Keyboard.cpp 第 15 行定义.
成员函数说明
◆ getKeyFromScancode()
|
overridevirtual |
◆ getScancodeFromKey()
|
overridevirtual |
◆ hasKeyRepeat()
|
overridevirtual |
在文件 Keyboard.cpp 第 23 行定义.
◆ hasScreenKeyboard()
|
overridevirtual |
在文件 Keyboard.cpp 第 102 行定义.
◆ hasTextInput()
|
overridevirtual |
在文件 Keyboard.cpp 第 98 行定义.
◆ isDown() [1/2]
|
overridevirtual |
True if any of the named keys is currently down.
在文件 Keyboard.cpp 第 27 行定义.
引用了 isDown().
被这些函数引用 isDown().
◆ isDown() [2/2]
|
overridevirtual |
◆ isScancodeDown() [1/2]
|
overridevirtual |
True if any of the named physical scancodes is currently down.
在文件 Keyboard.cpp 第 44 行定义.
引用了 isScancodeDown().
被这些函数引用 isScancodeDown().
◆ isScancodeDown() [2/2]
|
overridevirtual |
◆ setKeyRepeat()
|
overridevirtual |
Whether held keys emit repeated keypressed events.
在文件 Keyboard.cpp 第 19 行定义.
◆ setTextInput() [1/2]
|
overridevirtual |
◆ setTextInput() [2/2]
|
overridevirtual |
Hint where text appears so on-screen keyboards avoid covering it (pixel coords).
在文件 Keyboard.cpp 第 84 行定义.
引用了 getModInst, h, setTextInput(), w, x , 以及 y.
该类的文档由以下文件生成:
- src/modules/keyboard/sdl/Keyboard.h
- src/modules/keyboard/sdl/Keyboard.cpp
Public 成员函数 继承自