mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-21 05:45:10 +00:00
sources and include in the same folder
This commit is contained in:
34
lib/Ray/sources/Controllers/Mouse.cpp
Normal file
34
lib/Ray/sources/Controllers/Mouse.cpp
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
** EPITECH PROJECT, 2021
|
||||
** Bomberman
|
||||
** File description:
|
||||
** Mouse
|
||||
*/
|
||||
|
||||
#include "Controllers/Mouse.hpp"
|
||||
|
||||
bool RAY::Controller::Mouse::isPressed(RAY::Controller::Mouse::Button button)
|
||||
{
|
||||
return IsMouseButtonPressed(button);
|
||||
}
|
||||
|
||||
bool RAY::Controller::Mouse::isDown(RAY::Controller::Mouse::Button button)
|
||||
{
|
||||
return IsMouseButtonDown(button);
|
||||
}
|
||||
|
||||
bool RAY::Controller::Mouse::isReleased(RAY::Controller::Mouse::Button button)
|
||||
{
|
||||
return IsMouseButtonReleased(button);
|
||||
}
|
||||
|
||||
bool RAY::Controller::Mouse::isUp(RAY::Controller::Mouse::Button button)
|
||||
{
|
||||
return IsMouseButtonUp(button);
|
||||
}
|
||||
|
||||
Vector2 RAY::Controller::Mouse::getCursorPosition(void)
|
||||
{
|
||||
return GetMousePosition();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user