Hotkey



Describes hotkey.

You can find more information in comments below.

struct HOTKEY
{
    KEY Key; // Key
    bool Ctrl; // Ctrl key down state
    bool Alt; // Alt/Menu key down state
    bool Shift; // Shift key down state
    bool Down; // Down or release event
};

Following operators are also available.

bool operator==(const HOTKEY &a, const HOTKEY &b); // Check if hotkeys are equal
bool operator!=(const HOTKEY &a, const HOTKEY &b); // Check if transformations are not equal
std::wostream &operator<<(std::wostream &stream, const HOTKEY &a); // Output as source code
Namespace: nitisa
Include: Nitisa/Core/Types.h (For structure declaration)
Nitisa/Core/Utils.h (For standalone operators)