|
|
|
|
@ -38,7 +38,7 @@ namespace Magnum { namespace Contexts {
|
|
|
|
|
/**
|
|
|
|
|
@brief X/EGL context |
|
|
|
|
|
|
|
|
|
Currently only barebone implementation with no event handling. |
|
|
|
|
Supports keyboard and mouse handling. |
|
|
|
|
*/ |
|
|
|
|
class EglContext: public AbstractContext { |
|
|
|
|
public: |
|
|
|
|
@ -172,6 +172,7 @@ class EglContext: public AbstractContext {
|
|
|
|
|
/*@}*/ |
|
|
|
|
|
|
|
|
|
/** @{ @name Mouse handling */ |
|
|
|
|
|
|
|
|
|
public: |
|
|
|
|
/** @brief Mouse button */ |
|
|
|
|
enum class MouseButton: unsigned int { |
|
|
|
|
@ -199,6 +200,8 @@ class EglContext: public AbstractContext {
|
|
|
|
|
*/ |
|
|
|
|
virtual void mouseReleaseEvent(MouseButton button, const Math::Vector2<int>& position); |
|
|
|
|
|
|
|
|
|
/*@}*/ |
|
|
|
|
|
|
|
|
|
private: |
|
|
|
|
Display* xDisplay; |
|
|
|
|
Window xWindow; |
|
|
|
|
|