mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-06 11:12:19 +00:00
40 lines
722 B
C++
40 lines
722 B
C++
|
|
/*
|
|
** EPITECH PROJECT, 2021
|
|
** Bomberman
|
|
** File description:
|
|
** Keyboard
|
|
*/
|
|
|
|
#ifndef KEYBOARD_HPP_
|
|
#define KEYBOARD_HPP_
|
|
|
|
#include <raylib.h>
|
|
#include <vector>
|
|
|
|
namespace Ray {
|
|
class GamePad {
|
|
public:
|
|
typedef ::GamepadButton Button;
|
|
|
|
GamePad(int id);
|
|
|
|
~GamePad() = default;
|
|
|
|
GamePad(const GamePad &) = default;
|
|
|
|
GamePad &operator=(const GamePad &) = default;
|
|
|
|
bool isPressed(Button);
|
|
bool isDown(Button);
|
|
bool isReleased(Button);
|
|
bool isUp(Button);
|
|
std::vector<GamePad::Button> getPressedButtons(void);
|
|
|
|
private:
|
|
int _id;
|
|
};
|
|
}
|
|
|
|
#endif /* !KEYBOARD_HPP_ */
|