Add NX Hid Driver Template
- 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
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
|
||||
#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
|
||||
Reference in New Issue
Block a user