|
|
@ -16,3 +16,10 @@ GLGuiButton::GLGuiButton(int _eventid, std::string str, int _x, int _y, bool _ce
|
|
|
|
void GLGuiButton::onMouseOver(int m_x, int m_y) {
|
|
|
|
void GLGuiButton::onMouseOver(int m_x, int m_y) {
|
|
|
|
// Längste stelle finden, dann collision
|
|
|
|
// Längste stelle finden, dann collision
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void GLGuiButton::onMouseClick(int m_x, int m_y, int m_button) {
|
|
|
|
|
|
|
|
SDL_Event e;
|
|
|
|
|
|
|
|
e.type = GLGUI_BUTTONDOWN;
|
|
|
|
|
|
|
|
e.user.code = eventid;
|
|
|
|
|
|
|
|
SDL_PushEvent(&e);
|
|
|
|
|
|
|
|
}
|
|
|
|