Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
e2c477b2
Commit
e2c477b2
authored
Nov 08, 2001
by
Ove Kaaven
Committed by
Alexandre Julliard
Nov 08, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved the int 9 (keyboard) handler to dlls/winedos.
parent
daf347ac
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
12 deletions
+27
-12
Makefile.in
dlls/winedos/Makefile.in
+1
-0
dosvm.c
dlls/winedos/dosvm.c
+15
-0
int09.c
dlls/winedos/int09.c
+3
-6
winedos.spec
dlls/winedos/winedos.spec
+3
-0
Makefile.in
msdos/Makefile.in
+0
-1
interrupts.c
msdos/interrupts.c
+1
-1
ioports.c
msdos/ioports.c
+4
-4
No files found.
dlls/winedos/Makefile.in
View file @
e2c477b2
...
...
@@ -8,6 +8,7 @@ IMPORTS = user32 kernel32 ntdll
C_SRCS
=
\
dosvm.c
\
int09.c
\
module.c
@MAKE_DLL_RULES@
...
...
dlls/winedos/dosvm.c
View file @
e2c477b2
...
...
@@ -693,3 +693,18 @@ void WINAPI DOSVM_QueueEvent( INT irq, INT priority, DOSRELAY relay, LPVOID data
}
#endif
BOOL
WINAPI
DOSVM_Init
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
TRACE_
(
module
)(
"(0x%08x,%ld,%p)
\n
"
,
hinstDLL
,
fdwReason
,
lpvReserved
);
if
(
fdwReason
==
DLL_PROCESS_ATTACH
)
{
INT_SetWineHandler
(
9
,
INT_Int09Handler
);
}
else
if
(
fdwReason
==
DLL_PROCESS_DETACH
)
{
INT_SetWineHandler
(
9
,
NULL
);
}
return
TRUE
;
}
ms
dos/int09.c
→
dlls/wine
dos/int09.c
View file @
e2c477b2
...
...
@@ -42,13 +42,10 @@ void WINAPI INT_Int09Handler( CONTEXT86 *context )
ch
[
0
]
=
ascii
;
cnt
=
1
;
}
else
{
#if 0 /* FIXME: cannot call USER functions here */
UINT
vkey
=
MapVirtualKeyA
(
scan
&
0x7f
,
1
);
/* as in TranslateMessage, windows/input.c */
cnt = ToAscii(vkey, scan, QueueKeyStateTable, (LPWORD)ch, 0);
#else
cnt
=
0
;
#endif
BYTE
keystate
[
256
];
GetKeyboardState
(
keystate
);
cnt
=
ToAscii
(
vkey
,
scan
,
keystate
,
(
LPWORD
)
ch
,
0
);
}
if
(
cnt
>
0
)
{
for
(
c2
=
0
;
c2
<
cnt
;
c2
++
)
...
...
dlls/winedos/winedos.spec
View file @
e2c477b2
name winedos
type win32
init DOSVM_Init
import user32.dll
import kernel32.dll
...
...
@@ -20,3 +21,5 @@ debug_channels (int module relay)
@ stdcall OutPIC(long long) DOSVM_PIC_ioport_out
@ stdcall SetTimer(long) DOSVM_SetTimer
@ stdcall GetTimer() DOSVM_GetTimer
@ stdcall KbdReadScan(ptr) INT_Int09ReadScan
msdos/Makefile.in
View file @
e2c477b2
...
...
@@ -12,7 +12,6 @@ C_SRCS = \
dosmem.c
\
dpmi.c
\
xms.c
\
int09.c
\
int10.c
\
int11.c
\
int12.c
\
...
...
msdos/interrupts.c
View file @
e2c477b2
...
...
@@ -16,7 +16,7 @@ DEFAULT_DEBUG_CHANNEL(int);
static
INTPROC
INT_WineHandler
[
256
]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
INT_Int09Handler
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
INT_Int10Handler
,
INT_Int11Handler
,
INT_Int12Handler
,
INT_Int13Handler
,
0
,
INT_Int15Handler
,
INT_Int16Handler
,
INT_Int17Handler
,
0
,
0
,
INT_Int1aHandler
,
0
,
0
,
0
,
0
,
0
,
...
...
msdos/ioports.c
View file @
e2c477b2
...
...
@@ -37,9 +37,9 @@ static struct {
BYTE
ctrlbyte_ch
;
WORD
oldval
;
}
tmr_8253
[
3
]
=
{
{
0xFFFF
,
FALSE
,
0
,
FALSE
,
0x
0
6
,
0
},
{
0x0012
,
FALSE
,
0
,
FALSE
,
0x
4
4
,
0
},
{
0x0001
,
FALSE
,
0
,
FALSE
,
0x
8
6
,
0
},
{
0xFFFF
,
FALSE
,
0
,
FALSE
,
0x
3
6
,
0
},
{
0x0012
,
FALSE
,
0
,
FALSE
,
0x
7
4
,
0
},
{
0x0001
,
FALSE
,
0
,
FALSE
,
0x
B
6
,
0
},
};
static
int
dummy_ctr
=
0
;
...
...
@@ -345,7 +345,7 @@ DWORD IO_inport( int port, int size )
}
break
;
case
0x60
:
res
=
INT_Int09ReadScan
(
NULL
)
;
res
=
Dosvm
.
KbdReadScan
?
Dosvm
.
KbdReadScan
(
NULL
)
:
0
;
#if 0 /* what's this port got to do with parport ? */
res = (DWORD)parport_8255[0];
#endif
...
...
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