Fixed friend class not working for emscripten builds. Release build 5869.

This commit is contained in:
sigonasr2 2024-01-15 06:20:55 -06:00
parent 6b2f4f7bf9
commit aa483f1d5e
3 changed files with 14 additions and 5 deletions

View File

@ -39,7 +39,7 @@ All rights reserved.
#define VERSION_MAJOR 0
#define VERSION_MINOR 2
#define VERSION_PATCH 1
#define VERSION_BUILD 5867
#define VERSION_BUILD 5869
#define stringify(a) stringify_(a)
#define stringify_(a) #a

View File

@ -160,13 +160,26 @@ namespace olc {
#ifdef WIN32
GamePad(LPCDIDEVICEINSTANCEA lpddi);
GamePad(DWORD xId);
private:
void startVibration(float strength = 1) const;
void stopVibration() const;
public:
#endif
#ifdef __linux__
GamePad(std::string path, int fd);
void startVibration(float strength = 1) const;
void stopVibration() const;
#endif
#ifdef __EMSCRIPTEN__
// TODO ctor
GamePad(long id, std::string name);
void startVibration(float strength = 1) const;
void stopVibration() const;
#endif
GamePad(const GamePad &other) = delete;
@ -214,10 +227,6 @@ namespace olc {
static void updateGamepads();
void startVibration(float strength = 1) const;
void stopVibration() const;
std::string name;
int axisCount = GP_AXIS_COUNT;
int buttonCount = GP_BUTTON_COUNT;