SDLPP: mouse position functions

This commit is contained in:
2021-04-29 19:48:05 +02:00
parent 90dc26251b
commit 4f20274f11
3 changed files with 51 additions and 1 deletions
+19
View File
@@ -0,0 +1,19 @@
#ifndef SDLPP_HPP_MOUSE
#define SDLPP_HPP_MOUSE
#include "sdlpp_common.hpp"
#include "sdlpp_renderer.hpp"
#include "sdlpp_renderobject.hpp"
#include "sdlpp_vector.hpp"
namespace SDLPP {
class SDLPPSCOPE Mouse {
public:
static Vec2D< int > getMousePosition();
static Vec2D< double >
getMousePositionDouble( const Renderer &r, ObjectAlignment alignment_x,
ObjectAlignment alignment_y );
};
} // end of namespace SDLPP
#endif