Home | Downloads | Support |
Table of contents
The zx-state file format
Block types
|
ZXSTKEYBOARDThe state of the Spectrum keyboard and any keyboard joystick emulation. // Keyboard state #define ZXSTKF_ISSUE2 1 // Supported joystick types #define ZXSTKJT_KEMPSTON 0 #define ZXSTKJT_FULLER 1 #define ZXSTKJT_CURSOR 2 #define ZXSTKJT_SINCLAIR1 3 #define ZXSTKJT_SINCLAIR2 4 #define ZXSTKJT_SPECTRUMPLUS 5 #define ZXSTKJT_TIMEX1 6 #define ZXSTKJT_TIMEX2 7 #define ZXSTKJT_NONE 8 typedef struct _tagZXSTKEYBOARD { ZXSTBLOCK blk; DWORD dwFlags; BYTE chKeyboardJoystick; } ZXSTKEYBOARD, *LPZXSTKEYBOARD; Membersblk
The block header. The block id is ZXSTBID_KEYBOARD ('K', 'E', 'Y', 'B').
dwFlags
Various state flags. This can be a combination of:
chKeyboardJoystick
Specfies which joystick the PC keyboard should emulate (the actual keys are emulator dependant). This can be one of:
Revision historyAvailable since version 1.0. chKeyboard was added in version 1.1. The size of a version 1.1 ZXSTKEYBOARD block is therefore one byte larger than in version 1.0. |
Copyright © 2001 - 2011 Jonathan Needle | Top |