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
b86e7dfc
Commit
b86e7dfc
authored
Jun 21, 2018
by
Józef Kucia
Committed by
Alexandre Julliard
Jun 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ninput: Add SetInteractionConfigurationInteractionContext() stub.
Signed-off-by:
Józef Kucia
<
jkucia@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ca8b8664
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
1 deletion
+54
-1
main.c
dlls/ninput/main.c
+17
-0
ninput.spec
dlls/ninput/ninput.spec
+1
-1
ninput.c
dlls/ninput/tests/ninput.c
+36
-0
No files found.
dlls/ninput/main.c
View file @
b86e7dfc
...
...
@@ -131,6 +131,23 @@ HRESULT WINAPI SetPropertyInteractionContext(HINTERACTIONCONTEXT handle,
}
}
HRESULT
WINAPI
SetInteractionConfigurationInteractionContext
(
HINTERACTIONCONTEXT
handle
,
UINT32
count
,
const
INTERACTION_CONTEXT_CONFIGURATION
*
configuration
)
{
struct
interaction_context
*
context
=
context_from_handle
(
handle
);
FIXME
(
"context %p, count %u, configuration %p: stub!.
\n
"
,
context
,
count
,
configuration
);
if
(
!
context
)
return
E_HANDLE
;
if
(
!
count
)
return
E_INVALIDARG
;
if
(
!
configuration
)
return
E_POINTER
;
return
S_OK
;
}
HRESULT
WINAPI
ProcessInertiaInteractionContext
(
HINTERACTIONCONTEXT
context
)
{
FIXME
(
"context %p: stub!
\n
"
,
context
);
...
...
dlls/ninput/ninput.spec
View file @
b86e7dfc
...
...
@@ -17,7 +17,7 @@
@ stub ResetInteractionContext
@ stub SetCrossSlideParametersInteractionContext
@ stub SetInertiaParameterInteractionContext
@ st
ub SetInteractionConfigurationInteractionContext
@ st
dcall SetInteractionConfigurationInteractionContext(ptr long ptr)
@ stub SetMouseWheelParameterInteractionContext
@ stub SetPivotInteractionContext
@ stdcall SetPropertyInteractionContext(ptr long long)
...
...
dlls/ninput/tests/ninput.c
View file @
b86e7dfc
...
...
@@ -82,8 +82,44 @@ static void test_properties(void)
ok
(
hr
==
S_OK
,
"Failed to destroy context, hr %#x.
\n
"
,
hr
);
}
static
void
test_configuration
(
void
)
{
HINTERACTIONCONTEXT
context
;
HRESULT
hr
;
static
const
INTERACTION_CONTEXT_CONFIGURATION
config
[]
=
{
{
INTERACTION_ID_MANIPULATION
,
INTERACTION_CONFIGURATION_FLAG_MANIPULATION
|
INTERACTION_CONFIGURATION_FLAG_MANIPULATION_TRANSLATION_X
|
INTERACTION_CONFIGURATION_FLAG_MANIPULATION_TRANSLATION_Y
|
INTERACTION_CONFIGURATION_FLAG_MANIPULATION_SCALING
|
INTERACTION_CONFIGURATION_FLAG_MANIPULATION_TRANSLATION_INERTIA
|
INTERACTION_CONFIGURATION_FLAG_MANIPULATION_SCALING_INERTIA
},
};
hr
=
CreateInteractionContext
(
&
context
);
ok
(
hr
==
S_OK
,
"Failed to create context, hr %#x.
\n
"
,
hr
);
hr
=
SetInteractionConfigurationInteractionContext
(
NULL
,
0
,
NULL
);
ok
(
hr
==
E_HANDLE
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
SetInteractionConfigurationInteractionContext
(
context
,
0
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
SetInteractionConfigurationInteractionContext
(
context
,
1
,
NULL
);
ok
(
hr
==
E_POINTER
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
SetInteractionConfigurationInteractionContext
(
context
,
ARRAY_SIZE
(
config
),
config
);
ok
(
hr
==
S_OK
,
"Failed to set configuration, hr %#x.
\n
"
,
hr
);
hr
=
DestroyInteractionContext
(
context
);
ok
(
hr
==
S_OK
,
"Failed to destroy context, hr %#x.
\n
"
,
hr
);
}
START_TEST
(
ninput
)
{
test_context
();
test_properties
();
test_configuration
();
}
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