55 lines
No EOL
757 B
C++
55 lines
No EOL
757 B
C++
struct keyinfo{
|
|
bool pressedOnce;
|
|
long long time;
|
|
keyinfo() : pressedOnce(false), time(0){}
|
|
virtual void single_press() = 0;
|
|
};
|
|
|
|
struct esc_info : public keyinfo{
|
|
void single_press(){
|
|
|
|
}
|
|
void double_press(){
|
|
|
|
}
|
|
};
|
|
struct shift_info : public keyinfo{
|
|
void single_press(){
|
|
|
|
}
|
|
void double_press(){
|
|
|
|
}
|
|
};
|
|
struct ctrl_info : public keyinfo{
|
|
void single_press(){
|
|
|
|
}
|
|
void double_press(){
|
|
|
|
}
|
|
};
|
|
struct alt_info : public keyinfo{
|
|
void single_press(){
|
|
|
|
}
|
|
void double_press(){
|
|
|
|
}
|
|
};
|
|
struct super_info : public keyinfo{
|
|
void single_press(){
|
|
|
|
}
|
|
void double_press(){
|
|
|
|
}
|
|
};
|
|
struct shift_info : public keyinfo{
|
|
void single_press(){
|
|
|
|
}
|
|
void double_press(){
|
|
|
|
}
|
|
}; |