- Add WIP HidNX Driver (clangd not working with devkitpro for switch on windows) - Add default-release as default search path for compile_commands.json - remove mingw preset (casue its exactly the default target) - Move Mouse pos cycle into HidDriver::Update - Test around with HidGlfw on Nintendo switch
31 lines
467 B
C++
31 lines
467 B
C++
|
|
#include <pd_system/hid_nx.hpp>
|
|
|
|
#ifdef PD_ENABLE_HID_NX
|
|
#include <switch.h>
|
|
|
|
namespace PD {
|
|
struct HidNX::Impl {
|
|
PadState Pad;
|
|
};
|
|
|
|
HidNX::HidNX() : HidDriver("HidNX") { impl = new Impl; }
|
|
|
|
HidNX::~HidNX() {}
|
|
|
|
void HidNX::Update() {
|
|
HidDriver::Update(); // clear stats
|
|
}
|
|
} // namespace PD
|
|
#else
|
|
namespace PD {
|
|
|
|
HidNX::HidNX() : HidDriver("HidNX") {}
|
|
|
|
HidNX::~HidNX() {}
|
|
|
|
void HidNX::Update() {
|
|
HidDriver::Update(); // clear stats
|
|
}
|
|
} // namespace PD
|
|
#endif |