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
0115cba6
Commit
0115cba6
authored
Jun 27, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xinput1: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
55604f85
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
7 deletions
+13
-7
Makefile.in
dlls/xinput1_1/Makefile.in
+2
-0
Makefile.in
dlls/xinput1_2/Makefile.in
+2
-0
Makefile.in
dlls/xinput1_3/Makefile.in
+2
-0
hid.c
dlls/xinput1_3/hid.c
+3
-6
xinput_main.c
dlls/xinput1_3/xinput_main.c
+0
-1
Makefile.in
dlls/xinput1_4/Makefile.in
+2
-0
Makefile.in
dlls/xinput9_1_0/Makefile.in
+2
-0
No files found.
dlls/xinput1_1/Makefile.in
View file @
0115cba6
...
@@ -2,6 +2,8 @@ MODULE = xinput1_1.dll
...
@@ -2,6 +2,8 @@ MODULE = xinput1_1.dll
PARENTSRC
=
../xinput1_3
PARENTSRC
=
../xinput1_3
DELAYIMPORTS
=
hid setupapi
DELAYIMPORTS
=
hid setupapi
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
C_SRCS
=
\
hid.c
\
hid.c
\
xinput_main.c
xinput_main.c
...
...
dlls/xinput1_2/Makefile.in
View file @
0115cba6
...
@@ -2,6 +2,8 @@ MODULE = xinput1_2.dll
...
@@ -2,6 +2,8 @@ MODULE = xinput1_2.dll
PARENTSRC
=
../xinput1_3
PARENTSRC
=
../xinput1_3
DELAYIMPORTS
=
hid setupapi
DELAYIMPORTS
=
hid setupapi
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
C_SRCS
=
\
hid.c
\
hid.c
\
xinput_main.c
xinput_main.c
...
...
dlls/xinput1_3/Makefile.in
View file @
0115cba6
...
@@ -2,6 +2,8 @@ MODULE = xinput1_3.dll
...
@@ -2,6 +2,8 @@ MODULE = xinput1_3.dll
IMPORTLIB
=
xinput
IMPORTLIB
=
xinput
DELAYIMPORTS
=
hid setupapi
DELAYIMPORTS
=
hid setupapi
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
C_SRCS
=
\
hid.c
\
hid.c
\
xinput_main.c
xinput_main.c
...
...
dlls/xinput1_3/hid.c
View file @
0115cba6
...
@@ -17,8 +17,6 @@
...
@@ -17,8 +17,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include "wine/port.h"
#include <assert.h>
#include <assert.h>
#include <stdarg.h>
#include <stdarg.h>
...
@@ -44,7 +42,6 @@
...
@@ -44,7 +42,6 @@
#include "xinput.h"
#include "xinput.h"
#include "xinput_private.h"
#include "xinput_private.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
xinput
);
WINE_DEFAULT_DEBUG_CHANNEL
(
xinput
);
...
@@ -190,7 +187,7 @@ static void build_private(struct hid_platform_private *private, PHIDP_PREPARSED_
...
@@ -190,7 +187,7 @@ static void build_private(struct hid_platform_private *private, PHIDP_PREPARSED_
private
->
current_report
=
0
;
private
->
current_report
=
0
;
private
->
reports
[
0
]
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
private
->
report_length
);
private
->
reports
[
0
]
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
private
->
report_length
);
private
->
reports
[
1
]
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
private
->
report_length
);
private
->
reports
[
1
]
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
private
->
report_length
);
size
=
(
strlenW
(
path
)
+
1
)
*
sizeof
(
WCHAR
);
size
=
(
l
strlenW
(
path
)
+
1
)
*
sizeof
(
WCHAR
);
private
->
device_path
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
private
->
device_path
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
memcpy
(
private
->
device_path
,
path
,
size
);
memcpy
(
private
->
device_path
,
path
,
size
);
private
->
enabled
=
TRUE
;
private
->
enabled
=
TRUE
;
...
@@ -238,13 +235,13 @@ void HID_find_gamepads(xinput_controller *devices)
...
@@ -238,13 +235,13 @@ void HID_find_gamepads(xinput_controller *devices)
&
interface_data
,
data
,
sizeof
(
*
data
)
+
detail_size
,
NULL
,
NULL
))
&
interface_data
,
data
,
sizeof
(
*
data
)
+
detail_size
,
NULL
,
NULL
))
continue
;
continue
;
if
(
!
strstrW
(
data
->
DevicePath
,
ig
))
if
(
!
wcsstr
(
data
->
DevicePath
,
ig
))
continue
;
continue
;
for
(
i
=
0
;
i
<
XUSER_MAX_COUNT
;
i
++
)
for
(
i
=
0
;
i
<
XUSER_MAX_COUNT
;
i
++
)
{
{
struct
hid_platform_private
*
private
=
devices
[
i
].
platform_private
;
struct
hid_platform_private
*
private
=
devices
[
i
].
platform_private
;
if
(
devices
[
i
].
connected
&&
!
strcmpW
(
data
->
DevicePath
,
private
->
device_path
))
if
(
devices
[
i
].
connected
&&
!
wcscmp
(
data
->
DevicePath
,
private
->
device_path
))
break
;
break
;
}
}
if
(
i
!=
XUSER_MAX_COUNT
)
if
(
i
!=
XUSER_MAX_COUNT
)
...
...
dlls/xinput1_3/xinput_main.c
View file @
0115cba6
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include <assert.h>
#include <assert.h>
#include <stdarg.h>
#include <stdarg.h>
#include <string.h>
#include <string.h>
...
...
dlls/xinput1_4/Makefile.in
View file @
0115cba6
...
@@ -2,6 +2,8 @@ MODULE = xinput1_4.dll
...
@@ -2,6 +2,8 @@ MODULE = xinput1_4.dll
PARENTSRC
=
../xinput1_3
PARENTSRC
=
../xinput1_3
DELAYIMPORTS
=
hid setupapi
DELAYIMPORTS
=
hid setupapi
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
C_SRCS
=
\
hid.c
\
hid.c
\
xinput_main.c
xinput_main.c
...
...
dlls/xinput9_1_0/Makefile.in
View file @
0115cba6
...
@@ -2,6 +2,8 @@ MODULE = xinput9_1_0.dll
...
@@ -2,6 +2,8 @@ MODULE = xinput9_1_0.dll
PARENTSRC
=
../xinput1_3
PARENTSRC
=
../xinput1_3
DELAYIMPORTS
=
hid setupapi
DELAYIMPORTS
=
hid setupapi
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
C_SRCS
=
\
hid.c
\
hid.c
\
xinput_main.c
xinput_main.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