pioneer/src/gui/GuiEvents.h

25 lines
555 B
C
Raw Permalink Normal View History

2020-12-31 07:32:16 -08:00
// Copyright © 2008-2021 Pioneer Developers. See AUTHORS.txt for details
2012-09-15 17:59:15 -07:00
// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
2012-09-12 04:38:30 -07:00
#ifndef _GUIEVENTS_H
#define _GUIEVENTS_H
namespace Gui {
struct MouseButtonEvent {
Uint8 isdown;
Uint8 button;
float x, y; // widget coords
float screenX, screenY; // screen coords
enum {
BUTTON_WHEELUP = 0xfe,
BUTTON_WHEELDOWN = 0xff
};
};
struct MouseMotionEvent {
float x, y; // widget coords
float screenX, screenY; // screen coords
};
} // namespace Gui
#endif /* _GUIEVENTS_H */