sources and include in the same folder

This commit is contained in:
arthur.jamet
2021-05-21 09:48:13 +02:00
parent 125bad49f1
commit 1f13756500
71 changed files with 71 additions and 71 deletions

View File

@@ -0,0 +1,41 @@
/*
** EPITECH PROJECT, 2021
** Bomberman
** File description:
** Keyboard
*/
#ifndef MOUSE_HPP_
#define MOUSE_HPP_
#include <raylib.h>
#include <vector>
namespace RAY::Controller {
class Mouse {
public:
typedef ::MouseButton Button;
//! @return true if Key is pressed on the keyboard
//! @param Key The keycode of the key
static bool isPressed(Button);
//! @return true if Key is down on the keyboard
//! @param Key The keycode of the key
static bool isDown(Button);
//! @return true if Key is released on the keyboard
//! @param Key The keycode of the key
static bool isReleased(Button);
//! @return true if Key is up on the keyboard
//! @param Key The keycode of the key
static bool isUp(Button);
//! @return A 2D vector holding the current position of the cursor
static Vector2 getCursorPosition(void);
};
}
#endif /* !KEYBOARD_HPP_ */