mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-14 07:21:51 +00:00
fix keyboard input in Windows (#537)
This commit is contained in:
parent
9cd95bb0eb
commit
2e181259d7
1 changed files with 2 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ public:
|
||||||
|
|
||||||
ObserverHandler(ObserverHandler&& handler) noexcept
|
ObserverHandler(ObserverHandler&& handler) noexcept
|
||||||
: destructor(std::move(handler.destructor)) {
|
: destructor(std::move(handler.destructor)) {
|
||||||
|
handler.destructor = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
~ObserverHandler() {
|
~ObserverHandler() {
|
||||||
|
|
@ -33,6 +34,7 @@ public:
|
||||||
destructor();
|
destructor();
|
||||||
}
|
}
|
||||||
destructor = std::move(handler.destructor);
|
destructor = std::move(handler.destructor);
|
||||||
|
handler.destructor = nullptr;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue