mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-20 21:35:12 +00:00
sources and include in the same folder
This commit is contained in:
41
lib/Ray/sources/Controllers/Mouse.hpp
Normal file
41
lib/Ray/sources/Controllers/Mouse.hpp
Normal 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_ */
|
||||
Reference in New Issue
Block a user