Add stick and trigger input support

This commit is contained in:
2026-09-06 16:13:21 +02:00
parent 9535ec06c0
commit eda4213ffc
4 changed files with 136 additions and 4 deletions
+2
View File
@@ -3,6 +3,7 @@
#include <pd/drivers/hid.hpp>
typedef struct GLFWwindow GLFWwindow;
typedef struct GLFWgamepadstate GLFWgamepadstate;
namespace PD {
class HidGlfw : public HidDriver {
@@ -13,6 +14,7 @@ class HidGlfw : public HidDriver {
void Update() override;
private:
void HandleAxisKey(GLFWgamepadstate s, int iK, int eA, bool negative);
struct Impl;
Impl* impl;
};