Graphics v0.0.0
A simple abstraction layer for the modern graphics APIs.
|
键盘/鼠标输入. 更多...
#include <Input.h>
静态 Public 成员函数 | |
static bool | is_pressed (Key key) |
获取键盘按键状态. 更多... | |
static bool | is_pressed (Mouse key) |
获取鼠标按键状态. 更多... | |
static Vector2 | get_mouse_position () |
获取光标相对窗口的位置. | |
static Key | get_key_by_name (std::string_view name) |
通过名称获取键盘按键. 更多... | |
static Mouse | get_mouse_by_name (std::string_view name) |
通过鼠标获取键盘按键. 更多... | |
static std::string_view | get_clipboard () |
获取剪切板内容, UTF-8 编码. | |
static void | set_clipboard (const std::string &str) |
设置剪切板内容, UTF-8 编码. 更多... | |
static void | set_window (const Window &win) |
设置接受输入的窗口. | |
键盘/鼠标输入.
|
static |
通过名称获取键盘按键.
name | 键盘按键名称. |
|
static |
通过鼠标获取键盘按键.
name | 鼠标按键名称. |
|
static |
获取键盘按键状态.
key | 键盘按键. |
|
static |
获取鼠标按键状态.
key | 键盘按键. |
|
static |
设置剪切板内容, UTF-8 编码.
str | 要设置的内容. |