![]() |
Table of contents |
ZXSTJOYSTICKJoystick 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_COMCOM 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;
Membersblk
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:
chTypePlayer2
Specifies which joystick to emulate for Player 2. This can be one of:
Revision historyAvailable since version 1.1 |
| Copyright © 2001 - 2008 Jonathan Needle | |