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
|
|
|
|
2008-06-24 03:17:31 -07:00
|
|
|
#ifndef _GUIEVENTS_H
|
|
|
|
#define _GUIEVENTS_H
|
|
|
|
|
|
|
|
namespace Gui {
|
|
|
|
struct MouseButtonEvent {
|
|
|
|
Uint8 isdown;
|
|
|
|
Uint8 button;
|
2008-08-11 08:45:25 -07:00
|
|
|
float x, y; // widget coords
|
|
|
|
float screenX, screenY; // screen coords
|
2013-09-30 16:46:53 -07:00
|
|
|
enum {
|
2019-01-02 08:59:07 -08:00
|
|
|
BUTTON_WHEELUP = 0xfe,
|
2013-09-30 16:46:53 -07:00
|
|
|
BUTTON_WHEELDOWN = 0xff
|
|
|
|
};
|
2008-06-24 03:17:31 -07:00
|
|
|
};
|
2008-11-19 14:08:28 -08:00
|
|
|
struct MouseMotionEvent {
|
|
|
|
float x, y; // widget coords
|
|
|
|
float screenX, screenY; // screen coords
|
|
|
|
};
|
2019-01-02 08:59:07 -08:00
|
|
|
} // namespace Gui
|
2008-06-24 03:17:31 -07:00
|
|
|
|
|
|
|
#endif /* _GUIEVENTS_H */
|