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

pull/30/head
sigonasr2 1 year ago
parent 6b2f4f7bf9
commit aa483f1d5e
  1. 2
      Adventures in Lestoria/Version.h
  2. 17
      Adventures in Lestoria/olcPGEX_Gamepad.h
  3. BIN
      x64/Release/Adventures in Lestoria.exe

@ -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

@ -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;

Loading…
Cancel
Save