[Updated] Codebase to deal with wasm-style keyboard and mouse inputs

This commit is contained in:
Ninjaws
2024-12-10 14:41:59 +01:00
parent cbf6e658ea
commit 97d93ab113
33 changed files with 344 additions and 124 deletions
+25
View File
@@ -0,0 +1,25 @@
#ifndef SERVICE_H
#define SERVICE_H
template <typename T>
class Service
{
public:
Service(const Service &) = delete;
Service &operator=(const Service &) = delete;
static T& getInstance()
{
static T instance;
return instance;
}
protected:
static T* instance;
Service() {}
private:
};
#endif