JibbSmart / JoyShockLibrary

Read DualSense, DualShock 4, JoyCon, and Pro Controller input on PC -- compiled for Windows, but code should work on other platforms.
Other
233 stars 47 forks source link

[VS2022] Can't compile repo (compilation errors) #46

Closed benkuper closed 2 years ago

benkuper commented 2 years ago

Hello, I tried to clone and compile in VS2022 x64, there are many things that seem just not right.. I'll try to make sense out of it and maybe push a PR if I get time

benkuper commented 2 years ago

My bad, I'm just stupid. Since there is a .sln file inside the repo already, I assumed this would work out of the box. Using Cmake to regenerate a project works :)

NB : I had to add CMAKE_CXX_STANDARD = 17 in cmake because it defaults to C++ 14 which is not compatible with std::clamp