/* * $Logfile: /DescentIII/Main/ddio_lnx/lnxkey_svga.cpp $ * $Revision: 1.2 $ * $Date: 2000/04/27 11:17:53 $ * $Author: icculus $ * * Linux SVGALIB routines * * $Log: lnxkey_svga.cpp,v $ * Revision 1.2 2000/04/27 11:17:53 icculus * Added #if 0 fence. * * Revision 1.1.1.1 2000/04/18 00:00:33 icculus * initial checkin * * * 5 7/14/99 9:06p Jeff * added comment header * * $NoKeywords: $ */ // Keyboard handler for SVGAlib #if 0 Don't use this code. #include #include #include #include #include #include #include #include #include #include #include #include #include "ddio_common.h" #include "ddio.h" #include "mono.h" #include "pserror.h" //########################################################## //SVGALib Interface Functions //########################################################## #define DECLARE_POINTERS #include "linux/dyna_svga.h" #undef DECLARE_POINTERS void ddio_SVGA_EmergencyQuit(int id); void ddio_SVGA_InternalKeyInit(void); void ddio_SVGA_KeyBoardEventHandler(int scancode, int press); static int ddio_SVGA_TransKey(int scancode); void ddio_SVGA_DoKeyFrame(void); void ddio_SVGA_InternalClose(void); void ddio_svga_InternalKeyClose(void); //########################################################## extern volatile struct tLnxKeys { union{ int up_ticks; float up_time; }; union{ int down_ticks; float down_time; }; bool status; }LKeys[DDIO_MAX_KEYS]; bool DDIO_svga_key_suspend = false; bool ddio_svga_InternalKeyInit(ddio_init_info *init_info) { if(!LoadSVGALib(true)) { fprintf(stderr,"Unable to initialize SVGAlib\n"); return false; } static bool first_call = true; //reset key list for(int i=0;i