Add stick and trigger input support

This commit is contained in:
2026-04-09 21:51:38 +02:00
parent ff3b241dd2
commit 6dbf5a4812
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;
};