- [NEW] Soport per a joystick tipo Sinclair

This commit is contained in:
2025-08-15 22:58:53 +02:00
parent 0530c255c1
commit 864c6b929d
3 changed files with 182 additions and 0 deletions

16
gamepad.h Normal file
View File

@@ -0,0 +1,16 @@
#pragma once
#include <stdint.h>
#define GAMEPAD_TYPE_ANY 0
#define GAMEPAD_TYPE_SINCLAIR_1 1
#define GAMEPAD_TYPE_SINCLAIR_2 2
#define GAMEPAD_TYPE_KEMPSTON 3
#define GAMEPAD_TYPE_FULLER 4
namespace gamepad
{
void add(int32_t index, uint8_t type);
void remove(int32_t index);
void buttonDown(int32_t index, uint8_t button);
void buttonUp(int32_t index, uint8_t button);
}