SDL keyboard backend implementing eve::keyboard::Keyboard. 更多...
#include <Keyboard.h>
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 行定义.
◆ ~Keyboard()
|
overridevirtual |
Releases keyboard backend state.
在文件 Keyboard.cpp 第 17 行定义.
成员函数说明
◆ getKeyFromScancode()
|
overridevirtual |
◆ getScancodeFromKey()
|
overridevirtual |
◆ hasKeyRepeat()
|
overridevirtual |
◆ hasScreenKeyboard()
|
overridevirtual |
True when the platform exposes an on-screen keyboard.
在文件 Keyboard.cpp 第 105 行定义.
◆ hasTextInput()
|
overridevirtual |
◆ isDown() [1/2]
|
overridevirtual |
◆ isDown() [2/2]
|
overridevirtual |
True if any of the named keys is currently down.
在文件 Keyboard.cpp 第 34 行定义.
◆ isScancodeDown() [1/2]
|
overridevirtual |
True if any of the named physical scancodes is currently down.
在文件 Keyboard.cpp 第 47 行定义.
引用了 isScancodeDown().
被这些函数引用 isScancodeDown().
◆ isScancodeDown() [2/2]
|
overridevirtual |
True if any of the named physical scancodes is currently down.
在文件 Keyboard.cpp 第 51 行定义.
引用了 state.
◆ setKeyRepeat()
|
overridevirtual |
Whether held keys emit repeated keypressed events.
在文件 Keyboard.cpp 第 22 行定义.
◆ setTextInput() [1/2]
|
overridevirtual |
Enables or disables text-input / IME composition.
在文件 Keyboard.cpp 第 80 行定义.
被这些函数引用 setTextInput().
◆ setTextInput() [2/2]
|
overridevirtual |
Enables or disables text-input / IME composition.
在文件 Keyboard.cpp 第 87 行定义.
引用了 getModInst, h, setTextInput(), w, x , 以及 y.
该类的文档由以下文件生成:
- src/modules/keyboard/sdl/Keyboard.h
- src/modules/keyboard/sdl/Keyboard.cpp
Public 成员函数 继承自