Hotkey



Describes hotkey.

You can find more information in comments below.

struct Hotkey
{
    nitisa::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

    bool operator==(const Hotkey &other) const; // Check if hotkeys are equal
    bool operator!=(const Hotkey &other) const; // Check if hotkeys are not equal
};

Following operators are also available.

std::wostream &operator<<(std::wostream &stream, const Hotkey &a); // Output as source code
Namespace: nitisa
Include: Nitisa/Core/Hotkey.h