mirror of
https://github.com/JorjBauer/aiie.git
synced 2024-11-29 01:49:19 +00:00
27 lines
508 B
C
27 lines
508 B
C
|
#ifndef __SDL_MOUSE_H
|
||
|
#define __SDL_MOUSE_H
|
||
|
|
||
|
#include "physicalmouse.h"
|
||
|
|
||
|
#include <SDL.h>
|
||
|
|
||
|
class SDLMouse : public PhysicalMouse {
|
||
|
public:
|
||
|
SDLMouse();
|
||
|
virtual ~SDLMouse();
|
||
|
|
||
|
virtual void maintainMouse();
|
||
|
|
||
|
virtual void setPosition(uint16_t x, uint16_t y);
|
||
|
virtual void getPosition(uint16_t *x, uint16_t *y);
|
||
|
virtual bool getButton();
|
||
|
|
||
|
void gotMouseEvent(uint32_t buttonState, int32_t x, int32_t y);
|
||
|
void mouseButtonEvent(bool state);
|
||
|
private:
|
||
|
int32_t xpos, ypos;
|
||
|
bool button;
|
||
|
};
|
||
|
|
||
|
#endif
|