- [NEW] Soport per a joystick tipo Sinclair
This commit is contained in:
16
gamepad.h
Normal file
16
gamepad.h
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user