mirror of
https://github.com/glest/glest-source.git
synced 2025-09-30 01:18:58 +02:00
- added many new things and fixed a number of bugs (too tried to mention them all)
This commit is contained in:
@@ -113,7 +113,7 @@ public:
|
||||
static bool hasDataToRead(std::map<PLATFORM_SOCKET,bool> &socketTriggeredList);
|
||||
static bool hasDataToRead(PLATFORM_SOCKET socket);
|
||||
bool hasDataToRead();
|
||||
void disconnectSocket();
|
||||
virtual void disconnectSocket();
|
||||
|
||||
PLATFORM_SOCKET getSocketId() const { return sock; }
|
||||
|
||||
@@ -194,8 +194,15 @@ public:
|
||||
Socket *accept();
|
||||
void stopBroadCastThread();
|
||||
|
||||
void setBindPort(int port) { boundPort = port; }
|
||||
int getBindPort() const { return boundPort; }
|
||||
bool isPortBound() const { return portBound; }
|
||||
|
||||
virtual void disconnectSocket();
|
||||
|
||||
protected:
|
||||
|
||||
bool portBound;
|
||||
int boundPort;
|
||||
BroadCastSocketThread *broadCastThread;
|
||||
void startBroadCastThread();
|
||||
|
@@ -132,6 +132,7 @@ private:
|
||||
protected:
|
||||
int w, h;
|
||||
static bool isActive;
|
||||
static bool no2DMouseRendering;
|
||||
|
||||
public:
|
||||
static bool handleEvent();
|
||||
@@ -170,6 +171,9 @@ public:
|
||||
void destroy();
|
||||
void minimize();
|
||||
|
||||
static void setUseDefaultCursorOnly(bool value) { no2DMouseRendering = value; }
|
||||
static bool getUseDefaultCursorOnly() { return no2DMouseRendering; }
|
||||
|
||||
protected:
|
||||
virtual void eventCreate(){}
|
||||
virtual void eventMouseDown(int x, int y, MouseButton mouseButton){}
|
||||
|
Reference in New Issue
Block a user