engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
FDeviceButtonState结构体 参考

Current State of a physical device button (mouse, key, etc) at a point in time. 更多...

#include <InputState.h>

Public 成员函数

void SetStates (bool bPressedIn, bool bDownIn, bool bReleasedIn)
 Update the states of this button
 

Public 属性

bool bDown
 Is the button currently pressed down. 更多...
 
bool bPressed
 Was the button pressed down this frame. 更多...
 
bool bReleased
 Was the button released this frame. 更多...
 
FKey Button
 Button identifier
 

详细描述

Current State of a physical device button (mouse, key, etc) at a point in time.

Each "click" of a button should involve at minimum two separate state events, one where bPressed=true and one where bReleased=true. Each of these states should occur only once. In addition there may be additional frames where the button is held down and bDown=true and bPressed=false.

类成员变量说明

◆ bDown

bool FDeviceButtonState::bDown

Is the button currently pressed down.

This should be true every frame the button is pressed.

◆ bPressed

bool FDeviceButtonState::bPressed

Was the button pressed down this frame.

This should happen once per "click"

◆ bReleased

bool FDeviceButtonState::bReleased

Was the button released this frame.

This should happen once per "click"


该结构体的文档由以下文件生成: