ZXSTJOYSTICK
Joystick setup for both players.
// Joystick options
#define ZXSTJOYF_ALWAYSPORT31 1 // Deprecated
// Supported joystick types
#define ZXSTJT_KEMPSTON 0
#define ZXSTJT_FULLER 1
#define ZXSTJT_CURSOR 2
#define ZXSTJT_SINCLAIR1 3
#define ZXSTJT_SINCLAIR2 4
#define ZXSTJT_COMCON 5
#define ZXSTJT_TIMEX1 6
#define ZXSTJT_TIMEX2 7
#define ZXSTJT_DISABLED 8
typedef struct _tagZXSTJOYSTICK
{
ZXSTBLOCK blk;
DWORD dwFlags;
BYTE chTypePlayer1;
BYTE chTypePlayer2;
} ZXSTJOYSTICK, *LPZXSTJOYSTICK;
Members
- blk
The block header. The block id is ZXSTBID_JOYSTICK ('J', 'O', 'Y', 0).
- dwFlags
If ZXSTJOYF_ALWAYSPORT31 is set, Spectaculator will return 0 for a read of port 31 if Kempston joystick emulation is not enabled. Note: this flag is now deprecated as it is an emulator feature rather than hardware state information.
- chTypePlayer1
Specifies which joystick to emulate for Player 1. This can be one of:
Flag
Meaning
ZXSTJT_KEMPSTON
Kempston joystick emulation
ZXSTJT_FULLER
Fuller joystick emulation
ZXSTJT_CURSOR
Cursor (AGF or Protek) emulation
ZXSTJT_SINCLAIR1
Sinclair Interface II port 1 (or Spectrum +2A/+3 joystick 1)
ZXSTJT_SINCLAIR2
Sinclair Interface II port 2 (or Spectrum +2A/+3 joystick 2)
ZXSTJT_COMCON
Comcon programmable joystick interface
ZXSTJT_TIMEX1
Timex TC2048, TC2068, TS2068 and Spectrum SE built-in joystick, port 1.
ZXSTJT_TIMEX2
Timex TC2048, TC2068, TS2068 and Spectrum SE built-in joystick, port 2.
ZXSTJT_DISABLED
Disables joystick emulation for player 1.
- chTypePlayer2
Specifies which joystick to emulate for Player 2. This can be one of:
Flag
Meaning
ZXSTJT_KEMPSTON
Kempston joystick emulation
ZXSTJT_FULLER
Fuller joystick emulation
ZXSTJT_CURSOR
Cursor (AGF or Protek) emulation
ZXSTJT_SINCLAIR1
Sinclair Interface II port 1 (or Spectrum +2A/+3 joystick 1)
ZXSTJT_SINCLAIR2
Sinclair Interface II port 2 (or Spectrum +2A/+3 joystick 2)
ZXSTJT_COMCON
Comcon programmable joystick interface
ZXSTJT_TIMEX1
Timex TC2048, TC2068, TS2068 and Spectrum SE built-in joystick, port 1.
ZXSTJT_TIMEX2
Timex TC2048, TC2068, TS2068 and Spectrum SE built-in joystick, port 2.
ZXSTJT_DISABLED
Disables joystick emulation for player 2.
Revision history
Available since version 1.1