Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
c2e52469
Commit
c2e52469
authored
Mar 04, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Make keyboard.drv into a stand-alone 16-bit module.
parent
02ada6e4
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
43 additions
and
35 deletions
+43
-35
.gitignore
.gitignore
+0
-1
configure
configure
+10
-0
configure.ac
configure.ac
+2
-0
Makefile.in
dlls/Makefile.in
+1
-2
Makefile.in
dlls/keyboard.drv16/Makefile.in
+15
-0
keyboard.c
dlls/keyboard.drv16/keyboard.c
+12
-27
keyboard.drv16.spec
dlls/keyboard.drv16/keyboard.drv16.spec
+3
-3
Makefile.in
dlls/user32/Makefile.in
+0
-2
No files found.
.gitignore
View file @
c2e52469
...
...
@@ -41,7 +41,6 @@ dlls/kernel32/nls/winerr_enu.mc.rc
dlls/kernel32/nls/winerr_fra.mc.rc
dlls/kernel32/nls/winerr_kor.mc.rc
dlls/kernel32/nls/winerr_nor.mc.rc
dlls/keyboard.drv16
dlls/krnl386.exe16
dlls/libd3dx9.def
dlls/libwinspool.def
...
...
configure
View file @
c2e52469
...
...
@@ -3905,6 +3905,7 @@ then
enable_dispdib_dll16
=
${
enable_dispdib_dll16
:-
no
}
enable_display_drv16
=
${
enable_display_drv16
:-
no
}
enable_ifsmgr_vxd
=
${
enable_ifsmgr_vxd
:-
no
}
enable_keyboard_drv16
=
${
enable_keyboard_drv16
:-
no
}
enable_mmdevldr_vxd
=
${
enable_mmdevldr_vxd
:-
no
}
enable_monodebg_vxd
=
${
enable_monodebg_vxd
:-
no
}
enable_stress_dll16
=
${
enable_stress_dll16
:-
no
}
...
...
@@ -25617,6 +25618,14 @@ dlls/kernel32/tests/Makefile: dlls/kernel32/tests/Makefile.in dlls/Maketest.rule
ac_config_files
=
"
$ac_config_files
dlls/kernel32/tests/Makefile"
ALL_MAKEFILES
=
"
$ALL_MAKEFILES
\\
dlls/keyboard.drv16/Makefile"
test
"x
$enable_keyboard_drv16
"
!=
xno
&&
ALL_DLL_DIRS
=
"
$ALL_DLL_DIRS
\\
keyboard.drv16"
ALL_MAKEFILE_DEPENDS
=
"
$ALL_MAKEFILE_DEPENDS
dlls/keyboard.drv16/Makefile: dlls/keyboard.drv16/Makefile.in dlls/Makedll.rules"
ac_config_files
=
"
$ac_config_files
dlls/keyboard.drv16/Makefile"
ALL_MAKEFILES
=
"
$ALL_MAKEFILES
\\
dlls/loadperf/Makefile"
test
"x
$enable_loadperf
"
!=
xno
&&
ALL_DLL_DIRS
=
"
$ALL_DLL_DIRS
\\
loadperf"
...
...
@@ -28856,6 +28865,7 @@ do
"dlls/jscript/tests/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/jscript/tests/Makefile" ;;
"dlls/kernel32/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/kernel32/Makefile" ;;
"dlls/kernel32/tests/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/kernel32/tests/Makefile" ;;
"dlls/keyboard.drv16/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/keyboard.drv16/Makefile" ;;
"dlls/loadperf/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/loadperf/Makefile" ;;
"dlls/localspl/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/localspl/Makefile" ;;
"dlls/localspl/tests/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/localspl/tests/Makefile" ;;
...
...
configure.ac
View file @
c2e52469
...
...
@@ -142,6 +142,7 @@ then
enable_dispdib_dll16=${enable_dispdib_dll16:-no}
enable_display_drv16=${enable_display_drv16:-no}
enable_ifsmgr_vxd=${enable_ifsmgr_vxd:-no}
enable_keyboard_drv16=${enable_keyboard_drv16:-no}
enable_mmdevldr_vxd=${enable_mmdevldr_vxd:-no}
enable_monodebg_vxd=${enable_monodebg_vxd:-no}
enable_stress_dll16=${enable_stress_dll16:-no}
...
...
@@ -2038,6 +2039,7 @@ WINE_CONFIG_MAKEFILE([dlls/jscript/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DL
WINE_CONFIG_MAKEFILE([dlls/jscript/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests])
WINE_CONFIG_MAKEFILE([dlls/kernel32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/kernel32/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests])
WINE_CONFIG_MAKEFILE([dlls/keyboard.drv16/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/loadperf/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/localspl/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/localspl/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests])
...
...
dlls/Makefile.in
View file @
c2e52469
...
...
@@ -26,7 +26,6 @@ WIN16_FILES = \
ddeml.dll16
\
gdi.exe16
\
imm.dll16
\
keyboard.drv16
\
krnl386.exe16
\
lzexpand.dll16
\
mmsystem.dll16
\
...
...
@@ -121,7 +120,7 @@ shell.dll16:
twain.dll16
:
echo
"twain_32.dll"
>
$@
ddeml.dll16
keyboard.drv16
mouse.drv16 user.exe16
:
ddeml.dll16 mouse.drv16 user.exe16
:
echo
"user32.dll"
>
$@
ver.dll16
:
...
...
dlls/keyboard.drv16/Makefile.in
0 → 100644
View file @
c2e52469
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
MODULE
=
keyboard.drv16
IMPORTS
=
user32 kernel32
EXTRADLLFLAGS
=
-Wb
,--subsystem,win16
SPEC_SRCS
=
keyboard.drv16.spec
C_SRCS
=
keyboard.c
@MAKE_DLL_RULES@
@DEPENDENCIES@
# everything below this line is overwritten by make depend
dlls/
user32/kbd16
.c
→
dlls/
keyboard.drv16/keyboard
.c
View file @
c2e52469
...
...
@@ -54,7 +54,7 @@ static LPBYTE pKeyStateTable;
/***********************************************************************
* Inquire (KEYBOARD.1)
*/
WORD
WINAPI
KEYBOARD_Inquire
(
LPKBINFO
kbInfo
)
WORD
WINAPI
Inquire16
(
LPKBINFO
kbInfo
)
{
kbInfo
->
Begin_First_Range
=
0
;
kbInfo
->
End_First_Range
=
0
;
...
...
@@ -68,7 +68,7 @@ WORD WINAPI KEYBOARD_Inquire(LPKBINFO kbInfo)
/***********************************************************************
* Enable (KEYBOARD.2)
*/
VOID
WINAPI
KEYBOARD_Enable
(
FARPROC16
proc
,
LPBYTE
lpKeyState
)
VOID
WINAPI
Enable16
(
FARPROC16
proc
,
LPBYTE
lpKeyState
)
{
DefKeybEventProc
=
proc
;
pKeyStateTable
=
lpKeyState
;
...
...
@@ -79,12 +79,21 @@ VOID WINAPI KEYBOARD_Enable( FARPROC16 proc, LPBYTE lpKeyState )
/***********************************************************************
* Disable (KEYBOARD.3)
*/
VOID
WINAPI
KEYBOARD_Disable
(
VOID
)
VOID
WINAPI
Disable16
(
VOID
)
{
DefKeybEventProc
=
NULL
;
pKeyStateTable
=
NULL
;
}
/****************************************************************************
* ToAscii (KEYBOARD.4)
*/
INT16
WINAPI
ToAscii16
(
UINT16
virtKey
,
UINT16
scanCode
,
LPBYTE
lpKeyState
,
LPVOID
lpChar
,
UINT16
flags
)
{
return
ToAscii
(
virtKey
,
scanCode
,
lpKeyState
,
lpChar
,
flags
);
}
/***********************************************************************
* AnsiToOem (KEYBOARD.5)
*/
...
...
@@ -185,27 +194,3 @@ void WINAPI OemToAnsiBuff16( LPCSTR s, LPSTR d, UINT16 len )
{
if
(
len
!=
0
)
OemToCharBuffA
(
s
,
d
,
len
);
}
/****************************************************************************
* ToAscii (KEYBOARD.4)
*
* The ToAscii function translates the specified virtual-key code and keyboard
* state to the corresponding Windows character or characters.
*
* If the specified key is a dead key, the return value is negative. Otherwise,
* it is one of the following values:
* Value Meaning
* 0 The specified virtual key has no translation for the current state of the keyboard.
* 1 One Windows character was copied to the buffer.
* 2 Two characters were copied to the buffer. This usually happens when a
* dead-key character (accent or diacritic) stored in the keyboard layout cannot
* be composed with the specified virtual key to form a single character.
*
* FIXME : should do the above (return 2 for non matching deadchar+char combinations)
*
*/
INT16
WINAPI
ToAscii16
(
UINT16
virtKey
,
UINT16
scanCode
,
LPBYTE
lpKeyState
,
LPVOID
lpChar
,
UINT16
flags
)
{
return
ToAscii
(
virtKey
,
scanCode
,
lpKeyState
,
lpChar
,
flags
);
}
dlls/
user32/keyboard.drv
.spec
→
dlls/
keyboard.drv16/keyboard.drv16
.spec
View file @
c2e52469
1 pascal -ret16 Inquire(ptr)
KEYBOARD_Inquire
2 pascal -ret16 Enable(segptr ptr)
KEYBOARD_Enable
3 pascal -ret16 Disable()
KEYBOARD_Disable
1 pascal -ret16 Inquire(ptr)
Inquire16
2 pascal -ret16 Enable(segptr ptr)
Enable16
3 pascal -ret16 Disable()
Disable16
4 pascal -ret16 ToAscii(word word ptr ptr word) ToAscii16
5 pascal -ret16 AnsiToOem(str ptr) AnsiToOem16
6 pascal -ret16 OemToAnsi(str ptr) OemToAnsi16
...
...
dlls/user32/Makefile.in
View file @
c2e52469
...
...
@@ -10,7 +10,6 @@ DELAYIMPORTS = imm32
SPEC_SRCS16
=
\
ddeml.spec
\
keyboard.drv.spec
\
mouse.drv.spec
\
user.exe.spec
...
...
@@ -68,7 +67,6 @@ C_SRCS16 = \
bidi16.c
\
comm16.c
\
hook16.c
\
kbd16.c
\
mouse16.c
\
network.c
\
user16.c
\
...
...
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