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
d1b919c7
Commit
d1b919c7
authored
Nov 08, 1998
by
Ulrich Weigand
Committed by
Alexandre Julliard
Nov 08, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implementation of KEYBOARD.DRV (code mostly taken from previous
windows/keyboard.c).
parent
e8b02745
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
12 deletions
+36
-12
keyboard.spec
if1632/keyboard.spec
+3
-3
keyboard.h
include/keyboard.h
+33
-9
keyboard.c
windows/keyboard.c
+0
-0
No files found.
if1632/keyboard.spec
View file @
d1b919c7
name keyboard
type win16
1 pascal16 Inquire(ptr) K
eyboard
Inquire
2 pascal16 Enable(segptr ptr)
Keyboard
Enable
3 pascal16 Disable() K
eyboard
Disable
1 pascal16 Inquire(ptr) K
EYBOARD_
Inquire
2 pascal16 Enable(segptr ptr)
THUNK_KEYBOARD_
Enable
3 pascal16 Disable() K
EYBOARD_
Disable
4 pascal16 ToAscii(word word ptr ptr word) ToAscii16
5 pascal16 AnsiToOem(str ptr) AnsiToOem16
6 pascal16 OemToAnsi(str ptr) OemToAnsi16
...
...
include/keyboard.h
View file @
d1b919c7
/*
* Keyboard header file
* Copyright 1997 David Faure
* KEYBOARD driver interface
*
* Copyright 1998 Ulrich Weigand
*/
#ifndef __WINE_KEYBOARD_H
#define __WINE_KEYBOARD_H
extern
BOOL32
MouseButtonsStates
[
3
];
extern
BOOL32
AsyncMouseButtonsStates
[
3
];
extern
BYTE
InputKeyStateTable
[
256
];
extern
BYTE
QueueKeyStateTable
[
256
];
extern
BYTE
AsyncKeyStateTable
[
256
];
#pragma pack(1)
typedef
struct
_KBINFO
{
BYTE
Begin_First_Range
;
BYTE
End_First_Range
;
BYTE
Begin_Second_Range
;
BYTE
End_Second_Range
;
WORD
StateSize
;
}
KBINFO
,
*
LPKBINFO
;
#pragma pack(4)
typedef
VOID
(
CALLBACK
*
LPKEYBD_EVENT_PROC
)(
BYTE
,
BYTE
,
DWORD
,
DWORD
);
WORD
WINAPI
KEYBOARD_Inquire
(
LPKBINFO
kbInfo
);
VOID
WINAPI
KEYBOARD_Enable
(
LPKEYBD_EVENT_PROC
lpKeybEventProc
,
LPBYTE
lpKeyState
);
VOID
WINAPI
KEYBOARD_Disable
(
VOID
);
/* Wine internals */
extern
BOOL32
KEYBOARD_Init
(
void
);
extern
void
KEYBOARD_HandleEvent
(
WND
*
pWnd
,
XKeyEvent
*
event
);
extern
void
KEYBOARD_UpdateState
(
void
);
#endif
/* __WINE_KEYBOARD_H */
#define WINE_KEYBDEVENT_MAGIC ( ('K'<<24)|('E'<<16)|('Y'<<8)|'B' )
typedef
struct
_WINE_KEYBDEVENT
{
DWORD
magic
;
DWORD
posX
;
DWORD
posY
;
DWORD
time
;
}
WINE_KEYBDEVENT
;
#endif
/* __WINE_KEYBOARD_H */
windows/keyboard.c
View file @
d1b919c7
This diff is collapsed.
Click to expand it.
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