mirror of
https://github.com/unknownworlds/NS.git
synced 2024-11-30 00:10:59 +00:00
28 lines
357 B
C
28 lines
357 B
C
|
|
||
|
#ifndef VGUI_COMBOKEY_H
|
||
|
#define VGUI_COMBOKEY_H
|
||
|
|
||
|
#include<VGUI.h>
|
||
|
|
||
|
namespace vgui
|
||
|
{
|
||
|
|
||
|
enum KeyCode;
|
||
|
|
||
|
class ComboKey
|
||
|
{
|
||
|
public:
|
||
|
ComboKey(KeyCode code,KeyCode modifier);
|
||
|
public:
|
||
|
bool isTwoCombo(KeyCode code,KeyCode modifier);
|
||
|
protected:
|
||
|
bool check(KeyCode code);
|
||
|
protected:
|
||
|
KeyCode _keyCode[2];
|
||
|
friend class Panel;
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
#endif
|