载入中...
搜索中...
未找到
InputInjection.h
浏览该文件的文档.
42 [[nodiscard]] virtual Result<void> injectKey(std::string_view key, bool down, bool repeat = false) = 0;
51 [[nodiscard]] virtual Result<void> injectMouseButton(int button, bool down, float x, float y) = 0;
60 [[nodiscard]] virtual Result<void> injectMouseMove(float x, float y, float dx = 0.f, float dy = 0.f) = 0;
#define EVENGINE_API_FOUNDATION_INLINE
仅供"只有内联成员"的类型使用的组宏:拥有者 dllexport,消费方不导入。
Definition Export.h:170
Move-only, checked operation results for the common layer.
Inject synthetic device input into the live platform event stream. @thread Owner game-loop / MCP poll...
Definition InputInjection.h:28
virtual ~IInputInjection()=default
Releases IInputInjection resources.
virtual Result< void > injectMouseMove(float x, float y, float dx=0.f, float dy=0.f)=0
Queue absolute mouse motion (and optional relative deltas).
virtual Result< void > injectWheel(float x, float y)=0
Queue a mouse wheel tick.
virtual Result< void > injectKey(std::string_view key, bool down, bool repeat=false)=0
Queue a key press or release.
virtual Result< void > injectMouseButton(int button, bool down, float x, float y)=0
Queue a mouse button press or release at a window position.
virtual Result< void > injectText(std::string_view text)=0
Queue a UTF-8 text input event (IME / text fields).