16 lines
403 B
C++
16 lines
403 B
C++
#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);
|
|
} |