/* ** BETATRON high level library for platform and action arcade games. ** Copyright (C) 1997 Liouros Thanasis, liouros@hotmail.com ** ** PLKEYS.CC: This file is part of the BETATRON library and can be used ** and/or distributed only under the terms of the GNU Library ** General Public License. See doc/readme.1st for details. */ #include #include #include #include "pldpmi.h" #include #include #include unsigned char volatile pl_KeysPressed[16]; // 128 bit poia pliktra einai patimena static char keysinstalled = 0; static __dpmi_paddr oldint09; extern "C" pl_int09handler(); extern "C" pl_int09handler_end(); extern "C" pl_keycondition(); extern "C" pl_int09handler_save_ds(); char pl_testkey(unsigned char makecode) { unsigned char mdiv8,mmod8; mdiv8=makecode >> 3; mmod8=makecode & 7; return ( pl_KeysPressed[mdiv8] & (1<