aboutsummaryrefslogtreecommitdiff
path: root/src/window/Keyboard.cpp
blob: f60e5cdcc3e23dbde8f75daec735b90f4a8d402b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "../../include/mglpp/window/Keyboard.hpp"

extern "C" {
#include <mgl/window/key.h>
}

namespace mgl {
    // static
    const char* Keyboard::key_to_string(Key key) {
        return mgl_key_to_string((mgl_key)key);
    }

    // static
    bool Keyboard::key_is_modifier(Key key) {
        return mgl_key_is_modifier((mgl_key)key);
    }
}