ReactOS  0.4.14-dev-49-gfb4591c
xboxcons.c File Reference
#include <freeldr.h>
Include dependency graph for xboxcons.c:

Go to the source code of this file.

Functions

VOID XboxConsPutChar (int c)
 
BOOLEAN XboxConsKbHit (VOID)
 
int XboxConsGetCh (void)
 

Variables

static unsigned CurrentCursorX = 0
 
static unsigned CurrentCursorY = 0
 
static unsigned CurrentAttr = 0x0f
 

Function Documentation

◆ XboxConsGetCh()

int XboxConsGetCh ( void  )

Definition at line 66 of file xboxcons.c.

67 {
68  /* No keyboard support yet */
69  while (1)
70  {
71  ;
72  }
73 
74  return 0;
75 }

Referenced by XboxMachInit().

◆ XboxConsKbHit()

BOOLEAN XboxConsKbHit ( VOID  )

Definition at line 59 of file xboxcons.c.

60 {
61  /* No keyboard support yet */
62  return FALSE;
63 }

Referenced by XboxMachInit().

◆ XboxConsPutChar()

VOID XboxConsPutChar ( int  c)

Definition at line 26 of file xboxcons.c.

27 {
28  ULONG Width;
29  ULONG Height;
30  ULONG Depth;
31 
32  if ('\r' == c)
33  {
34  CurrentCursorX = 0;
35  }
36  else if ('\n' == c)
37  {
38  CurrentCursorX = 0;
40  }
41  else if ('\t' == c)
42  {
43  CurrentCursorX = (CurrentCursorX + 8) & ~ 7;
44  }
45  else
46  {
49  }
50  XboxVideoGetDisplaySize(&Width, &Height, &Depth);
51  if (Width <= CurrentCursorX)
52  {
53  CurrentCursorX = 0;
55  }
56 }
_In_opt_ PALLOCATE_FUNCTION _In_opt_ PFREE_FUNCTION _In_ ULONG _In_ SIZE_T _In_ ULONG _In_ USHORT Depth
Definition: exfuncs.h:656
VOID XboxVideoGetDisplaySize(PULONG Width, PULONG Height, PULONG Depth)
Definition: xboxvideo.c:173
const GLubyte * c
Definition: glext.h:8905
static unsigned CurrentCursorX
Definition: xboxcons.c:21
VOID XboxVideoPutChar(int Ch, UCHAR Attr, unsigned X, unsigned Y)
Definition: xboxvideo.c:114
static unsigned CurrentCursorY
Definition: xboxcons.c:22
unsigned int ULONG
Definition: retypes.h:1
static unsigned CurrentAttr
Definition: xboxcons.c:23

Referenced by XboxMachInit().

Variable Documentation

◆ CurrentAttr

unsigned CurrentAttr = 0x0f
static

Definition at line 23 of file xboxcons.c.

Referenced by XboxConsPutChar().

◆ CurrentCursorX

unsigned CurrentCursorX = 0
static

Definition at line 21 of file xboxcons.c.

Referenced by XboxConsPutChar().

◆ CurrentCursorY

unsigned CurrentCursorY = 0
static

Definition at line 22 of file xboxcons.c.

Referenced by XboxConsPutChar().