Source

pyGAP / game / inc / input / x11 / mouse.h

#ifndef _INPUT_X11_MOUSE_
#define _INPUT_X11_MOUSE_

#include "input/mouse.h"

#include <X11/Xlib.h>


namespace input {
namespace x11 {


class Mouse: public input::Mouse
{
public:
    Mouse(::Display* display);
    ~Mouse();

    int get_value(int index) {};

    bool is_pressed(int button);

    void update();
    int get_x();
    int get_y();

    //TODO: move to private
    ::Window window_;

private:
    ::Display* display_;


    int x_;
    int y_;
};


} // namespace x11
} // namespace input


#endif // _INPUT_X11_MOUSE_