Commit e7ec001f authored by Steven Fuller's avatar Steven Fuller

fixed null driver. some joystick functions had been duplicated, and the

mouse functions were missing.
parent f7f267b9
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
byte *gfxbuf = NULL; byte *gfxbuf = NULL;
static unsigned char pal[768];
/* /*
========================== ==========================
= =
...@@ -58,8 +60,9 @@ void VW_UpdateScreen() ...@@ -58,8 +60,9 @@ void VW_UpdateScreen()
void VL_Startup() void VL_Startup()
{ {
if (gfxbuf == NULL) if (gfxbuf == NULL) {
gfxbuf = malloc(320 * 200 * 1); gfxbuf = malloc(320 * 200 * 1);
}
} }
/* /*
...@@ -90,6 +93,7 @@ void VL_Shutdown() ...@@ -90,6 +93,7 @@ void VL_Shutdown()
void VL_SetPalette(const byte *palette) void VL_SetPalette(const byte *palette)
{ {
memcpy(pal, palette, 768);
} }
/* /*
...@@ -102,55 +106,20 @@ void VL_SetPalette(const byte *palette) ...@@ -102,55 +106,20 @@ void VL_SetPalette(const byte *palette)
void VL_GetPalette(byte *palette) void VL_GetPalette(byte *palette)
{ {
memcpy(palette, pal, 768);
} }
void INL_Update() void INL_Update()
{ {
} }
/* void IN_GetMouseDelta(int *dx, int *dy)
===================
=
= IN_JoyButtons
=
===================
*/
byte IN_JoyButtons()
{
return 0;
}
///////////////////////////////////////////////////////////////////////////
//
// IN_GetJoyAbs() - Reads the absolute position of the specified joystick
//
///////////////////////////////////////////////////////////////////////////
void IN_GetJoyAbs(word joy,word *xp,word *yp)
{
*xp = 0;
*yp = 0;
}
///////////////////////////////////////////////////////////////////////////
//
// INL_GetJoyDelta() - Returns the relative movement of the specified
// joystick (from +/-127)
//
///////////////////////////////////////////////////////////////////////////
void INL_GetJoyDelta(word joy,int *dx,int *dy)
{ {
*dx = 0; *dx = 0;
*dy = 0; *dy = 0;
} }
/////////////////////////////////////////////////////////////////////////// byte IN_MouseButtons()
//
// INL_GetJoyButtons() - Returns the button status of the specified
// joystick
//
///////////////////////////////////////////////////////////////////////////
word INL_GetJoyButtons(word joy)
{ {
return 0; return 0;
} }
...@@ -197,7 +166,7 @@ void INL_GetJoyDelta(word joy,int *dx,int *dy) ...@@ -197,7 +166,7 @@ void INL_GetJoyDelta(word joy,int *dx,int *dy)
// joystick // joystick
// //
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
static word INL_GetJoyButtons(word joy) word INL_GetJoyButtons(word joy)
{ {
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment