Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Utorok, 16. apríl 2024

Súbor: [Platon] / games / _shared / typedef.h (stiahnutie)

Revízia 1.6, Tue Apr 6 09:54:16 2004 UTC (20 years ago) by nepto


Zmeny od 1.5: +11 -3 [lines]

Headers update:
    - switch to standard/classic Platon SDG source header
    - bumped copyright year to 2004
    - changelog dates reformatted to new format YYYY-MM-DD

/*
 * games/_shared/ - shared routines for games
 *
 * typedef.h - type, enums, consts definitions header file
 * ____________________________________________________________
 *
 * Developed by Ondrej Jombik <nepto@platon.sk>
 * Copyright (c) 1997-2000 Condy software inc.
 * Copyright (c) 2001-2004 Platon SDG, http://platon.sk/
 * All rights reserved.
 *
 * See README file for more information about this software.
 * See COPYING file for license information.
 *
 * Download the latest version from
 * http://platon.sk/projects/games/
 */

/* $Platon: games/_shared/typedef.h,v 1.5 2003/08/03 21:34:18 nepto Exp $ */

#ifndef __TYPEDEF_H
#define __TYPEDEF_H

/* INCLUDE */

/* TYPEDEF */
typedef unsigned char  BYTE;
typedef unsigned short WORD;
typedef unsigned long DWORD;

typedef enum
{
    NUL = 0,
    EOS = '\0',/* end of string */
    SOH = 1,
    STX = 2,
    ETX = 3,
    EOT = 4,
    ENQ = 5,
    ACK = 6,
    BEL = 7,  /* bell */
    BS  = 8,  /* backspace */
    HT  = 9,  /* horizontal tab */
    TAB = 9,
    LF  =10, /* line feed */
    VT  =11, /* vertical tab */
    FF  =12, /* form feed */
    CR  =13, /* carriage return */
    EOL =13, /* end-of-line (Enter) */
    SO  =14,
    SI  =15,
    DLE =16,
    DC1 =17,
    DC2 =18,
    DC3 =19,
    DC4 =20,
    NAK =21,
    SYN =22,
    ETB =23,
    CAN =24, /* cancel */
    EM  =25,
    SUB =26,
    ESC =27, /* escape */
    FS  =28,
    GS  =29,
    RS  =30,
    US  =31,
    SPC =32  /* space */
} CTRL_KEYS;

#ifdef INSERT /* required for MSVC */
#  undef INSERT
#endif

#ifdef DELETE /* required for MSVC */
#  undef DELETE
#endif

typedef enum
{
#if 1 /* does not work with MSVC */
    INSERT    =    82,
    DELETE    =    83,
#endif
    HOME    =    71,
    END        =    79,
    PGUP    =    73,
    PGDOWN    =    81,
    SUP        =    72,
    SDOWN    =    80,
    SLEFT    =    75,
    SRIGHT    =    77
} NUL_KEYS;

typedef enum
{
    F1=59,
    F2=60,
    F3=61,
    F4=62,
    F5=63,
    F6=64,
    F7=65,
    F8=66,
    F9=67,
    F10=68,
    F11=133,
    F12=134
} F_KEYS;

/* DEFINE */

/* INTERFACE */

#endif


Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok