Advertisement
Volatile_Pulse

header.h

Jun 15th, 2012
703
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.22 KB | None | 0 0
  1. /******************************************************************************
  2.  *                                                                            *
  3.  *                            Volatile Programming                            *
  4.  *                                  Header.h                                  *
  5.  *                                                                            *
  6.  ******************************************************************************
  7.  *                                                                            *
  8.  * By: Volatile Pulse                                                         *
  9.  * What: Header file to include common header files and functions             *
  10.  * Date: 06.15.2012                                                           *
  11.  *                                                                            *
  12.  ******************************************************************************
  13.  * Use:                                                                       *
  14.  *    // Turns the blinking cursor off                                        *
  15.  *    VP_SetConsoleCursor(false)                                              *
  16.  *                                                                            *
  17.  *    // Returns the cursor to the top left most corner                       *
  18.  *    VP_GoToXY(0,0)                                                          *
  19.  *                                                                            *
  20.  *    // Clears the screen                                                    *
  21.  *    VP_ClearScreen()                                                        *
  22.  *                                                                            *
  23.  *    // Returns the virtual keycode for the key that was pressed             *
  24.  *    VP_GetCh()                                                              *
  25.  *                                                                            *
  26.  ******************************************************************************
  27.  *                                                                            *
  28.  * I want to greatly thank Duoas for his unknowing additions to these.        *
  29.  *                                                                            *
  30.  * VP_GetCh() Reference:                                                      *
  31.  *    http://www.cplusplus.com/forum/articles/7312/#msg33734                  *
  32.  *                                                                            *
  33.  * VP_ClearScreen() Reference:                                                *
  34.  *    http://www.cplusplus.com/articles/4z18T05o/                             *
  35.  *                                                                            *
  36.  * Thank you so much.                                                         *
  37.  *                                                                            *
  38.  ******************************************************************************/
  39.  
  40. #ifndef _VP_HEADER_H_
  41. #define _VP_HEADER_H_
  42.  
  43. #ifdef _WIN32
  44.  
  45. #include <windows.h>
  46.  
  47. void VP_SetConsoleCursor(bool bCursor);
  48. void VP_GoToXY(int x, int y);
  49. void VP_ClearScreen();
  50. int VP_GetCh();
  51.  
  52. #endif
  53.  
  54. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement