65 lines
1.0 KiB
C++
65 lines
1.0 KiB
C++
#pragma once
|
|
|
|
// system
|
|
#include <limits.h>
|
|
#include <stddef.h>
|
|
#include <stdarg.h>
|
|
#include <stdio.h>
|
|
|
|
// waterbox
|
|
#include "emulibc.h"
|
|
#include "waterboxcore.h"
|
|
#include <src/dos/cdrom.h>
|
|
|
|
const int KEY_COUNT = 0x65;
|
|
|
|
typedef struct
|
|
{
|
|
int joystick1Enabled;
|
|
int joystick2Enabled;
|
|
uint64_t writableHDDImageFileSize;
|
|
} InitSettings;
|
|
|
|
typedef struct
|
|
{
|
|
int insertFloppyDisk;
|
|
int insertCDROM;
|
|
} DriveActions;
|
|
|
|
typedef struct
|
|
{
|
|
int up;
|
|
int down;
|
|
int left;
|
|
int right;
|
|
int button1;
|
|
int button2;
|
|
} JoystickButtons;
|
|
|
|
typedef struct
|
|
{
|
|
int posX;
|
|
int posY;
|
|
int speedX;
|
|
int speedY;
|
|
int leftButtonPressed;
|
|
int middleButtonPressed;
|
|
int rightButtonPressed;
|
|
int leftButtonReleased;
|
|
int middleButtonReleased;
|
|
int rightButtonReleased;
|
|
float sensitivity;
|
|
} MouseInput;
|
|
|
|
typedef struct
|
|
{
|
|
FrameInfo base;
|
|
char Keys[KEY_COUNT];
|
|
DriveActions driveActions;
|
|
JoystickButtons joy1;
|
|
JoystickButtons joy2;
|
|
MouseInput mouse;
|
|
int framerateNumerator;
|
|
int framerateDenominator;
|
|
} MyFrameInfo;
|