blob: feb50f039a5655932025eebbdf61fbc81f0ffa32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
#include <string_view>
#include <utility>
#include <vector>
/// Extra data attached to a GLFWkeyboard object
struct GlfwKeyboardAttachment {
};
class InputState {
public:
static inline InputState* instance = nullptr;
public:
GLFWkeyboard* FindKeyboard(std::string_view name);
GlfwKeyboardAttachment* ConnectKeyboard(GLFWkeyboard* keyboard);
void DisconnectKeyboard(GLFWkeyboard* keyboard);
};
|