UE4非绑定C++输入键盘鼠标输入检测
鼠标输入事件:FPointerEvent 键盘输入事件:FKeyEvent virtual FReply OnMouseButtonDown(const FGeometry& InGeometry, const FPointerEvent& InMouseEvent) override { //点击点 InMouseEvent.GetScreenSpacePosition(); //检测左键输入 InMouseEvent.IsMouseButtonDown(EKeys::LeftMouseButton); return FReply::Handled(); } virtual FReply OnKeyDown(const FGeometry& MyGeometry, const FKeyEvent& InKeyEvent) override { //输入按键检测 const FKey Key = InKeyEvent.GetKey(); if (Key == EKeys::Enter) } 来源: CSDN 作者: 游戏鸟 链接: https://blog.csdn.net/a359877454/article/details/103482100