mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-11 05:29:55 +00:00
717c5cba84
. Format now extensible for supporting new hardware types in the future . Include missing items like Apple2Type, CyclesThisVideoFrame (#255) Continue to support loading of old v1 format. Added card save/load for: . Mouse (#260) . HDD (#260) . Printer Extended card support for: . SSC Other: . Added save-state v1 struct size checks . Create SaveState_Structs_v2.h and split out common into SaveState_Structs_common.h . Refactor HardDisk.cpp to use imagehandle; and consolidate with Disk.cpp . Fix Disk/HD_GetFullPathName() which wasn't always returning full pathname . Consolidate common GetImageTitle() and move into DiskImage.cpp
34 lines
1.4 KiB
C
34 lines
1.4 KiB
C
#pragma once
|
|
|
|
enum JOYNUM {JN_JOYSTICK0=0, JN_JOYSTICK1};
|
|
|
|
enum JOY0CHOICE {J0C_DISABLED=0, J0C_JOYSTICK1, J0C_KEYBD_CURSORS, J0C_KEYBD_NUMPAD, J0C_MOUSE, J0C_MAX};
|
|
enum JOY1CHOICE {J1C_DISABLED=0, J1C_JOYSTICK2, J1C_KEYBD_CURSORS, J1C_KEYBD_NUMPAD, J1C_MOUSE, J1C_MAX};
|
|
|
|
extern DWORD joytype[2];
|
|
|
|
enum {JOYSTICK_MODE_FLOATING=0, JOYSTICK_MODE_CENTERING}; // Joystick centering control
|
|
|
|
void JoyInitialize();
|
|
BOOL JoyProcessKey(int,BOOL,BOOL,BOOL);
|
|
void JoyReset();
|
|
void JoySetButton(eBUTTON,eBUTTONSTATE);
|
|
BOOL JoySetEmulationType(HWND,DWORD,int, const bool bMousecardActive);
|
|
void JoySetPosition(int,int,int,int);
|
|
void JoyUpdateButtonLatch(const UINT nExecutionPeriodUsec);
|
|
BOOL JoyUsingMouse();
|
|
BOOL JoyUsingKeyboard();
|
|
BOOL JoyUsingKeyboardCursors();
|
|
BOOL JoyUsingKeyboardNumpad();
|
|
void JoyDisableUsingMouse();
|
|
void JoySetTrim(short nValue, bool bAxisX);
|
|
short JoyGetTrim(bool bAxisX);
|
|
void JoyportControl(const UINT uControl);
|
|
void JoySetSnapshot_v1(const unsigned __int64 JoyCntrResetCycle);
|
|
void JoyGetSnapshot(unsigned __int64& rJoyCntrResetCycle);
|
|
void JoySetSnapshot(const unsigned __int64 JoyCntrResetCycle);
|
|
|
|
BYTE __stdcall JoyReadButton(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG nCyclesLeft);
|
|
BYTE __stdcall JoyReadPosition(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG nCyclesLeft);
|
|
BYTE __stdcall JoyResetPosition(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG nCyclesLeft);
|