Skip to content

Commit e41b171

Browse files
authored
Merge pull request #16 from Pennywise007/issue_15
2 parents 0dcf6f0 + 42999bb commit e41b171

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

Simulator/include/IbInputSimulator/SendTypes/Logitech.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ namespace Send::Type::Internal {
229229
}
230230
};
231231

232-
class Logitech final : virtual public Base, public VirtualKeyStates {
232+
class Logitech final : public VirtualKeyStates {
233233
LogitechDriver driver;
234234
public:
235235
Logitech() : VirtualKeyStates(keyboard_report.modifiers, keyboard_mutex) {}

Simulator/include/IbInputSimulator/SendTypes/Razer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include "usb.hpp"
44

55
namespace Send::Type::Internal {
6-
class Razer final : virtual public Base, public VirtualKeyStates {
6+
class Razer final : public VirtualKeyStates {
77
HANDLE device;
88

99
KeyboardModifiers modifiers;

Simulator/include/IbInputSimulator/SendTypes/base.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ namespace Send::Type::Internal {
7676
this->get_key_state_fallback = get_key_state_fallback;
7777
}
7878

79+
virtual ~Base() = default;
7980
virtual void destroy() = 0;
8081

8182
virtual uint32_t send_input(const INPUT inputs[], uint32_t n) {
@@ -139,7 +140,7 @@ namespace Send::Type::Internal {
139140
bool RGui : 1;
140141
};
141142

142-
class VirtualKeyStates : virtual public Base {
143+
class VirtualKeyStates : public Base {
143144
KeyboardModifiers& modifiers;
144145
std::mutex& mutex;
145146

Simulator/source/dllmain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ DLLAPI void __stdcall IbSendDestroy() {
165165
if (!main::send)
166166
return;
167167
main::send->destroy();
168-
main::send.release();
168+
main::send.reset();
169169
}
170170

171171
DLLAPI void __stdcall IbSendSyncKeyStates() {

0 commit comments

Comments
 (0)