/usr/share/z88dk/include/games.h is in z88dk-data 1.8.ds1-10.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | #ifndef __GAMES_H__
#define __GAMES_H__
/*
* Videogames support code
*
* Stefano, Jan 2001
*
* $Id: games.h,v 1.8 2007/12/03 16:05:18 stefano Exp $
*
*/
/* save the sprite background in another sprite */
extern __LIB__ bksave(int x, int y, void *sprite);
extern __LIB__ bkrestore(void *sprite);
/* pick up a sprite directly from the screen */
extern __LIB__ getsprite(int x, int y, void *sprite); // This isn't still finished
/* draw a sprite of variable size */
extern __LIB__ putsprite(int ortype, int x, int y, void *sprite);
#define spr_and 166+47*256 // CPL - AND (HL)
#define spr_or 182 // OR (HL)
#define spr_xor 174 // XOR (HL)
#define spr_mask spr_and
#define SPR_AND spr_and
#define SPR_OR spr_or
#define SPR_XOR spr_xor
#define SPR_MASK spr_and
/* Joystick (or whatever game device) control function */
extern __LIB__ joystick(int game_device);
#define MOVE_RIGHT 1
#define MOVE_LEFT 2
#define MOVE_DOWN 4
#define MOVE_UP 8
#define MOVE_FIRE 16
#define MOVE_FIRE1 MOVE_FIRE
#define MOVE_FIRE2 32
#define MOVE_FIRE3 64
#define MOVE_FIRE4 128
#ifdef SPECTRUM
unsigned char *joystick_type[] = {"Kempston","Sinclair 1","Sinclair 2","Cursor","Fuller"};
#define GAME_DEVICES 5
#endif
#ifdef TI82
unsigned char *joystick_type[] = {"Cursor,2nd-Alpha"};
#define GAME_DEVICES 1
#endif
#ifdef TI83
unsigned char *joystick_type[] = {"Cursor,2nd-Alpha"};
#define GAME_DEVICES 1
#endif
#ifdef TI85
unsigned char *joystick_type[] = {"Cursor,2nd-Alpha"};
#define GAME_DEVICES 1
#endif
#ifdef TI86
unsigned char *joystick_type[] = {"Cursor,2nd-Alpha"};
#define GAME_DEVICES 1
#endif
#ifdef ZXVGS
unsigned char *joystick_type[] = { "Joystick 0", "Joystick 1", "Joystick 2", "Joystick 3"};
#define GAME_DEVICES 4
#endif
#ifdef MSX
unsigned char *joystick_type[] = { "QAOP-MN", "Joystick 1", "Joystick 2"};
#define GAME_DEVICES 3
#endif
#ifndef GAME_DEVICES
unsigned char *joystick_type[] = {"QAOP-MN","8246-05"};
#define GAME_DEVICES 2
#endif
#endif
|