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
30f1a611
Commit
30f1a611
authored
Oct 18, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Implement GetRawInputDeviceInfoW().
parent
6beb7dc1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
3 deletions
+65
-3
input.c
dlls/user32/input.c
+65
-3
No files found.
dlls/user32/input.c
View file @
30f1a611
...
...
@@ -617,11 +617,73 @@ UINT WINAPI GetRawInputDeviceInfoA(HANDLE hDevice, UINT uiCommand, LPVOID pData,
/******************************************************************
* GetRawInputDeviceInfoW (USER32.@)
*/
UINT
WINAPI
GetRawInputDeviceInfoW
(
HANDLE
hDevice
,
UINT
uiCommand
,
LPVOID
pData
,
PUINT
pcbS
ize
)
UINT
WINAPI
GetRawInputDeviceInfoW
(
HANDLE
device
,
UINT
command
,
void
*
data
,
UINT
*
data_s
ize
)
{
FIXME
(
"(hDevice=%p, uiCommand=%d, pData=%p, pcbSize=%p) stub!
\n
"
,
hDevice
,
uiCommand
,
pData
,
pcbSize
);
/* FIXME: Most of this is made up. */
static
const
WCHAR
keyboard_name
[]
=
{
'\\'
,
'\\'
,
'?'
,
'\\'
,
'W'
,
'I'
,
'N'
,
'E'
,
'_'
,
'K'
,
'E'
,
'Y'
,
'B'
,
'O'
,
'A'
,
'R'
,
'D'
,
0
};
static
const
WCHAR
mouse_name
[]
=
{
'\\'
,
'\\'
,
'?'
,
'\\'
,
'W'
,
'I'
,
'N'
,
'E'
,
'_'
,
'M'
,
'O'
,
'U'
,
'S'
,
'E'
,
0
};
static
const
RID_DEVICE_INFO_KEYBOARD
keyboard_info
=
{
0
,
0
,
1
,
12
,
3
,
101
};
static
const
RID_DEVICE_INFO_MOUSE
mouse_info
=
{
1
,
5
,
0
,
FALSE
};
const
WCHAR
*
name
=
NULL
;
RID_DEVICE_INFO
*
info
;
UINT
s
;
return
0
;
TRACE
(
"device %p, command %u, data %p, data_size %p.
\n
"
,
device
,
command
,
data
,
data_size
);
if
(
!
data_size
||
(
device
!=
WINE_MOUSE_HANDLE
&&
device
!=
WINE_KEYBOARD_HANDLE
))
return
~
0U
;
switch
(
command
)
{
case
RIDI_DEVICENAME
:
if
(
device
==
WINE_MOUSE_HANDLE
)
{
s
=
sizeof
(
mouse_name
);
name
=
mouse_name
;
}
else
{
s
=
sizeof
(
keyboard_name
);
name
=
keyboard_name
;
}
break
;
case
RIDI_DEVICEINFO
:
s
=
sizeof
(
*
info
);
break
;
default:
return
~
0U
;
}
if
(
!
data
)
{
*
data_size
=
s
;
return
0
;
}
if
(
*
data_size
<
s
)
{
*
data_size
=
s
;
return
~
0U
;
}
if
(
command
==
RIDI_DEVICENAME
)
{
memcpy
(
data
,
name
,
s
);
return
s
;
}
info
=
data
;
info
->
cbSize
=
sizeof
(
*
info
);
if
(
device
==
WINE_MOUSE_HANDLE
)
{
info
->
dwType
=
RIM_TYPEMOUSE
;
info
->
u
.
mouse
=
mouse_info
;
}
else
{
info
->
dwType
=
RIM_TYPEKEYBOARD
;
info
->
u
.
keyboard
=
keyboard_info
;
}
return
s
;
}
...
...
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