Just™ Game Engine
input.hpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021-2022 Konstanty Misiak
3 *
4 * SPDX-License-Identifier: MIT
5 */
6
7#pragma once
8#include "jng/core/base.hpp"
11
12namespace jng {
13
14 class Input
15 {
16 public:
17 static bool isKeyPressed(Key::Code key);
18 static bool isMouseButtonPressed(Mouse::Code button);
19 static glm::vec2 getMousePosition();
20 private:
21 Input() = default;
22 Input(const Input&) = delete;
23 Input& operator=(const Input&) = delete;
24 };
25
26} // namespace jng
Definition: input.hpp:15
static glm::vec2 getMousePosition()
Definition: input.cpp:30
static bool isMouseButtonPressed(Mouse::Code button)
Definition: input.cpp:23
static bool isKeyPressed(Key::Code key)
Definition: input.cpp:16
u16 Code
Definition: key_codes.hpp:13
u8 Code
Definition: mouse_codes.hpp:13
Definition: base.hpp:11