鼠标和键盘输入信息 更多...
#include <APIInputEvent.h>
Public 成员函数 | |
void | SetLButtonDown () |
bool | IsLButtonDown () const |
void | SetRButtonDown () |
bool | IsRButtonDown () const |
void | SetMButtonDown () |
bool | IsMButtonDown () const |
int | GetDelta () const |
void | SetDelta (int zDelta) |
void | SetShiftKeyDown () |
bool | IsShiftKeyDown () const |
void | SetCtrlKeyDown () |
bool | IsCtrlKeyDown () const |
void | SetAltKeyDown () |
bool | IsAltKeyDown () const |
bool | IsTableKeyDown () const |
bool | IsKeyESC () const |
Vector2 | GetMousePosition () const |
void | SetMousePosition (const Vector2 &pos) |
int | GetKey () const |
void | SetKey (int nChar) |
int | GetFlag () const |
void | SetFlag (int nFlag) |
鼠标和键盘输入信息
记录当前的鼠标和键盘的输入信息。默认没有鼠标键和键盘键按下。
int AnyCAD::API::InputEvent::GetDelta | ( | ) | const |
获取鼠标滚轮移动的位移。
int AnyCAD::API::InputEvent::GetFlag | ( | ) | const |
获取当前按下的按键的Flag值。
int AnyCAD::API::InputEvent::GetKey | ( | ) | const |
获取当前按下的按键的值。
Vector2 AnyCAD::API::InputEvent::GetMousePosition | ( | ) | const |
获取鼠标位置。
bool AnyCAD::API::InputEvent::IsAltKeyDown | ( | ) | const |
判断Ctrl是否按下。
bool AnyCAD::API::InputEvent::IsCtrlKeyDown | ( | ) | const |
判断Ctrl是否按下。
bool AnyCAD::API::InputEvent::IsKeyESC | ( | ) | const |
判断Esc键是否按下。
bool AnyCAD::API::InputEvent::IsLButtonDown | ( | ) | const |
判断鼠标左键是否按下。
bool AnyCAD::API::InputEvent::IsMButtonDown | ( | ) | const |
判断鼠标中键是否按下。
bool AnyCAD::API::InputEvent::IsRButtonDown | ( | ) | const |
判断鼠标右键是否按下。
bool AnyCAD::API::InputEvent::IsShiftKeyDown | ( | ) | const |
判断Shift是否按下。
bool AnyCAD::API::InputEvent::IsTableKeyDown | ( | ) | const |
判断Tab键是否按下。
void AnyCAD::API::InputEvent::SetAltKeyDown | ( | ) |
设置Alt键按下.
void AnyCAD::API::InputEvent::SetCtrlKeyDown | ( | ) |
设置Ctrl键按下.
void AnyCAD::API::InputEvent::SetDelta | ( | int | zDelta | ) |
设置鼠标滚轮移动的位移。
zDelta | 滚轮移动的位移。 |
void AnyCAD::API::InputEvent::SetFlag | ( | int | nFlag | ) |
设置按键的Flag值。
nFlag | 按键的Flag值。 |
void AnyCAD::API::InputEvent::SetKey | ( | int | nChar | ) |
设置按键的值。
nChar | 按键的值。 |
void AnyCAD::API::InputEvent::SetLButtonDown | ( | ) |
设置鼠标左键按下。
void AnyCAD::API::InputEvent::SetMButtonDown | ( | ) |
设置鼠标中键按下。
void AnyCAD::API::InputEvent::SetMousePosition | ( | const Vector2 & | pos | ) |
设置鼠标位置。
pos | 鼠标位置。一般是相对于当前窗口。 |
void AnyCAD::API::InputEvent::SetRButtonDown | ( | ) |
设置鼠标右键按下。
void AnyCAD::API::InputEvent::SetShiftKeyDown | ( | ) |
设置Shift键按下.