class hiro::ModKeys

Overview

Holds information about pressed modifier keys. More…

#include <Input.h>

class ModKeys {
public:
    // construction

    ModKeys(uint8_t state);

    // methods

    bool IsPressed(hiro::Mod modifier_key) const;
};

Detailed Documentation

Holds information about pressed modifier keys.

Construction

ModKeys(uint8_t state)

Creates structure with bit map of pressed modifier keys.

Methods

bool IsPressed(hiro::Mod modifier_key) const

Checks whether specified modifier key is pressed.