Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wolf3d
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
wolf3d
Commits
e7ec001f
Commit
e7ec001f
authored
Nov 24, 2003
by
Steven Fuller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed null driver. some joystick functions had been duplicated, and the
mouse functions were missing.
parent
f7f267b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
41 deletions
+10
-41
vi_null.c
src/vi_null.c
+10
-41
No files found.
src/vi_null.c
View file @
e7ec001f
...
...
@@ -6,6 +6,8 @@
byte
*
gfxbuf
=
NULL
;
static
unsigned
char
pal
[
768
];
/*
==========================
=
...
...
@@ -58,8 +60,9 @@ void VW_UpdateScreen()
void
VL_Startup
()
{
if
(
gfxbuf
==
NULL
)
gfxbuf
=
malloc
(
320
*
200
*
1
);
if
(
gfxbuf
==
NULL
)
{
gfxbuf
=
malloc
(
320
*
200
*
1
);
}
}
/*
...
...
@@ -90,6 +93,7 @@ void VL_Shutdown()
void
VL_SetPalette
(
const
byte
*
palette
)
{
memcpy
(
pal
,
palette
,
768
);
}
/*
...
...
@@ -102,55 +106,20 @@ void VL_SetPalette(const byte *palette)
void
VL_GetPalette
(
byte
*
palette
)
{
memcpy
(
palette
,
pal
,
768
);
}
void
INL_Update
()
{
}
/*
===================
=
= 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
)
void
IN_GetMouseDelta
(
int
*
dx
,
int
*
dy
)
{
*
dx
=
0
;
*
dy
=
0
;
}
///////////////////////////////////////////////////////////////////////////
//
// INL_GetJoyButtons() - Returns the button status of the specified
// joystick
//
///////////////////////////////////////////////////////////////////////////
word
INL_GetJoyButtons
(
word
joy
)
byte
IN_MouseButtons
()
{
return
0
;
}
...
...
@@ -197,7 +166,7 @@ void INL_GetJoyDelta(word joy,int *dx,int *dy)
// joystick
//
///////////////////////////////////////////////////////////////////////////
static
word
INL_GetJoyButtons
(
word
joy
)
word
INL_GetJoyButtons
(
word
joy
)
{
return
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment