VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vlSimpleKeyboard.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 *******************************************************************************/
8 
9 /*******************************************************************************
10 * Adapted from "Beginning Linux Programming", from Wrox Press -- www.wrox.com
11 *******************************************************************************/
12 
13 // Utility to allow keyboard input without blocking
14 #include <vlutil/vlMachineTypes.h>
15 
16 #ifndef MYKBHIT_H_
17 #define MYKBHIT_H_
18 
19 #ifndef WIN32
20 #include <termios.h>
21 #endif
22 
28 
30 {
31 public:
32 
35 
37  virtual ~DtSimpleKeyboard();
38 
40  virtual int kbhit();
41 
45  virtual int keybrdTick();
46 
47 protected:
48 
50  virtual int getkey();
51 
52 private:
53 
54 #ifndef WIN32
55  struct termios myInitialSettings, myNewSettings;
57 #endif
58 
59 };
60 
61 
62 #endif
63 
int myPeekCharacter
Definition: vlSimpleKeyboard.h:56
Instances of DtSimpleKeyboard are used to process keyboard input in a console application.
Definition: vlSimpleKeyboard.h:29
This file contains typedefs for machine dependant types.
#define DT_DLL_VLUTIL
Definition: vlMachineTypes.h:109

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)