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
f0ac3b21
Commit
f0ac3b21
authored
Nov 30, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Feb 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add new kbd.h header with KBDTABLES definition.
parent
a6f3e4ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
117 additions
and
0 deletions
+117
-0
Makefile.in
include/Makefile.in
+1
-0
kbd.h
include/kbd.h
+116
-0
No files found.
include/Makefile.in
View file @
f0ac3b21
...
...
@@ -379,6 +379,7 @@ SOURCES = \
iptypes.h
\
isguids.h
\
ivectorchangedeventargs.idl
\
kbd.h
\
knownfolders.h
\
ks.h
\
ksguid.h
\
...
...
include/kbd.h
0 → 100644
View file @
f0ac3b21
/*
* Copyright 2022 Rémi Bernon for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __WINE_KBD_H
#define __WINE_KBD_H
#include "windef.h"
typedef
struct
{
BYTE
Vk
;
BYTE
ModBits
;
}
VK_TO_BIT
,
*
PVK_TO_BIT
;
typedef
struct
{
VK_TO_BIT
*
pVkToBit
;
WORD
wMaxModBits
;
BYTE
ModNumber
[];
}
MODIFIERS
,
*
PMODIFIERS
;
#define TYPEDEF_VK_TO_WCHARS(n) \
typedef struct _VK_TO_WCHARS##n \
{ \
BYTE VirtualKey; \
BYTE Attributes; \
WCHAR wch[n]; \
} VK_TO_WCHARS##n, *PVK_TO_WCHARS##n
TYPEDEF_VK_TO_WCHARS
(
1
);
TYPEDEF_VK_TO_WCHARS
(
2
);
TYPEDEF_VK_TO_WCHARS
(
3
);
TYPEDEF_VK_TO_WCHARS
(
4
);
TYPEDEF_VK_TO_WCHARS
(
5
);
TYPEDEF_VK_TO_WCHARS
(
6
);
TYPEDEF_VK_TO_WCHARS
(
7
);
TYPEDEF_VK_TO_WCHARS
(
8
);
TYPEDEF_VK_TO_WCHARS
(
9
);
TYPEDEF_VK_TO_WCHARS
(
10
);
typedef
struct
_VK_TO_WCHAR_TABLE
{
VK_TO_WCHARS1
*
pVkToWchars
;
BYTE
nModifications
;
BYTE
cbSize
;
}
VK_TO_WCHAR_TABLE
,
*
PVK_TO_WCHAR_TABLE
;
typedef
struct
{
DWORD
dwBoth
;
WCHAR
wchComposed
;
USHORT
uFlags
;
}
DEADKEY
,
*
PDEADKEY
;
typedef
struct
{
BYTE
vsc
;
WCHAR
*
pwsz
;
}
VSC_LPWSTR
,
*
PVSC_LPWSTR
;
typedef
struct
_VSC_VK
{
BYTE
Vsc
;
USHORT
Vk
;
}
VSC_VK
,
*
PVSC_VK
;
#define TYPEDEF_LIGATURE(n) \
typedef struct _LIGATURE##n \
{ \
BYTE VirtualKey; \
WORD ModificationNumber; \
WCHAR wch[n]; \
} LIGATURE##n, *PLIGATURE##n;
TYPEDEF_LIGATURE
(
1
)
TYPEDEF_LIGATURE
(
2
)
TYPEDEF_LIGATURE
(
3
)
TYPEDEF_LIGATURE
(
4
)
TYPEDEF_LIGATURE
(
5
)
typedef
struct
tagKbdLayer
{
MODIFIERS
*
pCharModifiers
;
VK_TO_WCHAR_TABLE
*
pVkToWcharTable
;
DEADKEY
*
pDeadKey
;
VSC_LPWSTR
*
pKeyNames
;
VSC_LPWSTR
*
pKeyNamesExt
;
WCHAR
**
pKeyNamesDead
;
USHORT
*
pusVSCtoVK
;
BYTE
bMaxVSCtoVK
;
VSC_VK
*
pVSCtoVK_E0
;
VSC_VK
*
pVSCtoVK_E1
;
DWORD
fLocaleFlags
;
BYTE
nLgMax
;
BYTE
cbLgEntry
;
LIGATURE1
*
pLigature
;
DWORD
dwType
;
DWORD
dwSubType
;
}
KBDTABLES
,
*
PKBDTABLES
;
#endif
/* __WINE_KBD_H */
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