mirror of
https://github.com/minkcv/vm.git
synced 2026-10-24 17:28:39 +00:00
26 lines
408 B
C
26 lines
408 B
C
#ifndef IPU_H_
|
|
#define IPU_H_
|
|
|
|
#include "constants.h"
|
|
#include "joystick.h"
|
|
#include <SDL.h>
|
|
|
|
// Input Processing Unit
|
|
typedef struct IPU IPU;
|
|
|
|
struct IPU
|
|
{
|
|
JOYSTICK* js1;
|
|
JOYSTICK* js2;
|
|
};
|
|
|
|
IPU* createIPU();
|
|
|
|
void updateIPU(IPU* ipu, SDL_KeyboardEvent kEvent,
|
|
uint8_t memory[MEMORY_SEGMENT_COUNT][MEMORY_SEGMENT_SIZE]);
|
|
|
|
void updateJoystick(JOYSTICK* js, SDL_KeyboardEvent kEvent);
|
|
|
|
#endif
|
|
|