fix(macos): Mouse input broken in-game (#2550)

Co-authored-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com>
This commit is contained in:
Vithorio Polten
2024-06-12 18:26:02 -03:00
committed by GitHub
parent f68de7da93
commit 02ddbefd44
8 changed files with 305 additions and 72 deletions

View File

@@ -9,6 +9,7 @@
#include <memory>
#include <mutex>
#include <optional>
#include <ostream>
#include <string>
#include <string_view>
#include <type_traits>
@@ -940,6 +941,16 @@ namespace util {
return std::string_view((const char *) &data, sizeof(T));
}
struct point_t {
double x;
double y;
friend std::ostream &
operator<<(std::ostream &os, const point_t &p) {
return (os << "Point(x: " << p.x << ", y: " << p.y << ")");
}
};
namespace endian {
template <class T = void>
struct endianness {