aboutsummaryrefslogtreecommitdiff
path: root/src/window/Keyboard.cpp
blob: 34d28bec0d9b2ca59b73b92dd19753e159a33ae6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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);
    }

    // static
    uint64_t Keyboard::key_to_x11_keysym(Key key) {
        return mgl_key_to_x11_keysym((mgl_key)key);
    }
}