FreeBASIC  0.91.0
io_getx.c
Go to the documentation of this file.
1 #include "../fb.h"
2 #include "fb_private_console.h"
3 
4 int fb_ConsoleGetRawXEx( HANDLE hConsole )
5 {
6  CONSOLE_SCREEN_BUFFER_INFO info;
7  if( GetConsoleScreenBufferInfo( hConsole, &info ) == 0 )
8  return 0;
9  return info.dwCursorPosition.X;
10 }
11 
12 int fb_ConsoleGetRawX( void )
13 {
15 }
16 
17 int fb_ConsoleGetX( void )
18 {
19  int x = fb_ConsoleGetRawX();
21  return x;
22 }