25 lines
555 B
C++
25 lines
555 B
C++
// Copyright © 2008-2021 Pioneer Developers. See AUTHORS.txt for details
|
|
// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
|
|
|
|
#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 */
|