2017-05-16 09:07:55 +01:00
|
|
|
#pragma once
|
|
|
|
|
2019-11-23 18:17:44 +00:00
|
|
|
#include "linux/windows/wincompat.h"
|
2020-07-02 11:02:57 +01:00
|
|
|
#include "linux/windows/dsound.h"
|
2019-11-23 18:17:44 +00:00
|
|
|
#include "linux/windows/resources.h"
|
|
|
|
#include "linux/windows/bitmap.h"
|
|
|
|
|
2017-09-29 21:39:55 +01:00
|
|
|
#include <string>
|
|
|
|
|
2017-07-02 20:53:03 +01:00
|
|
|
// Resources
|
|
|
|
|
2020-07-07 20:13:26 +01:00
|
|
|
HRSRC FindResource(void *, const char * filename, const char *);
|
2019-11-23 18:17:44 +00:00
|
|
|
|
|
|
|
// Bitmap
|
2020-07-07 20:13:26 +01:00
|
|
|
HBITMAP LoadBitmap(HINSTANCE hInstance, const char * filename);
|
2019-11-20 21:23:27 +00:00
|
|
|
LONG GetBitmapBits(HBITMAP hbit, LONG cb, LPVOID lpvBits);
|
|
|
|
|
2017-07-02 20:53:03 +01:00
|
|
|
|
2017-05-16 09:07:55 +01:00
|
|
|
// Frame
|
|
|
|
|
|
|
|
void FrameDrawDiskLEDS(HDC x);
|
|
|
|
void FrameDrawDiskStatus(HDC x);
|
|
|
|
void FrameRefreshStatus(int x, bool);
|
|
|
|
|
|
|
|
// Keyboard
|
|
|
|
|
2020-07-02 11:02:57 +01:00
|
|
|
BYTE KeybGetKeycode ();
|
2018-08-25 21:17:55 +01:00
|
|
|
BYTE KeybReadData();
|
|
|
|
BYTE KeybReadFlag();
|
2017-05-21 20:23:48 +01:00
|
|
|
|
|
|
|
// Joystick
|
|
|
|
|
2020-07-02 11:02:57 +01:00
|
|
|
BYTE JoyReadButton(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG uExecutedCycles);
|
|
|
|
BYTE JoyReadPosition(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG uExecutedCycles);
|
2019-04-19 21:13:00 +01:00
|
|
|
void JoyResetPosition(ULONG uExecutedCycles);
|
2017-05-23 17:52:41 +01:00
|
|
|
|
2017-10-15 18:58:23 +01:00
|
|
|
// MessageBox
|
|
|
|
|
|
|
|
int MessageBox(HWND, const char * text, const char * caption, UINT type);
|
2020-07-02 11:02:57 +01:00
|
|
|
|
|
|
|
// Mockingboard
|
|
|
|
void registerSoundBuffer(IDirectSoundBuffer * buffer);
|
|
|
|
void unregisterSoundBuffer(IDirectSoundBuffer * buffer);
|