version 4.3.2

fix PIKbdListener wheel on Windows
This commit is contained in:
2024-11-02 14:15:09 +03:00
parent 9f1d23ad8e
commit df75efe881
4 changed files with 5 additions and 6 deletions

View File

@@ -3,7 +3,7 @@ cmake_policy(SET CMP0017 NEW) # need include() with .cmake
project(PIP) project(PIP)
set(PIP_MAJOR 4) set(PIP_MAJOR 4)
set(PIP_MINOR 3) set(PIP_MINOR 3)
set(PIP_REVISION 1) set(PIP_REVISION 2)
set(PIP_SUFFIX ) set(PIP_SUFFIX )
set(PIP_COMPANY SHS) set(PIP_COMPANY SHS)
set(PIP_DOMAIN org.SHS) set(PIP_DOMAIN org.SHS)

View File

@@ -83,8 +83,8 @@ public:
//! \~russian Возвращает директорию для файлов. //! \~russian Возвращает директорию для файлов.
PIString dir() const { return log_dir; } PIString dir() const { return log_dir; }
//! \~english Set directory for log files. Should be set \b after \a setApplicationName()! //! \~english Set directory for log files. Should be set \b after \a setLogName()!
//! \~russian Устанавливает директорию для файлов. Должна быть установлена \b после вызова \a setApplicationName()! //! \~russian Устанавливает директорию для файлов. Должна быть установлена \b после вызова \a setLogName()!
void setDir(const PIString & d); void setDir(const PIString & d);

View File

@@ -49,6 +49,7 @@ public:
void listen(PINetworkAddress addr); void listen(PINetworkAddress addr);
void listenAll(ushort port) { listen({0, port}); } void listenAll(ushort port) { listen({0, port}); }
void stopServer();
void closeAll(); void closeAll();
int getMaxClients() const { return max_clients; } int getMaxClients() const { return max_clients; }
@@ -61,7 +62,6 @@ public:
Config & configuration() { return config; } Config & configuration() { return config; }
private: private:
void stopServer();
void newClient(ServerClient * c); void newClient(ServerClient * c);
void clientDisconnected(ServerClient * c); void clientDisconnected(ServerClient * c);

View File

@@ -360,8 +360,7 @@ void PIKbdListener::readKeyboard() {
if (mer.dwEventFlags & MOUSE_WHEELED) { if (mer.dwEventFlags & MOUSE_WHEELED) {
memcpy((void *)(&we), (const void *)(&me), sizeof(me)); memcpy((void *)(&we), (const void *)(&me), sizeof(me));
we.action = MouseWheel; we.action = MouseWheel;
we.direction = short((mer.dwButtonState >> 8) & 0xFFFF) > 0; we.direction = short((mer.dwButtonState >> 16) & 0xFFFF) > 0;
// piCout << "wheel" << we.direction;
wheelEvent(we, kbddata_); wheelEvent(we, kbddata_);
break; break;
} else { } else {