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
a179f491
Commit
a179f491
authored
Dec 27, 2008
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Dec 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Warn if failed to open device.
parent
e0152e85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+11
-7
No files found.
dlls/dinput/joystick_linuxinput.c
View file @
a179f491
...
...
@@ -231,12 +231,17 @@ static void find_joydevs(void)
snprintf
(
buf
,
sizeof
(
buf
),
EVDEVPREFIX
"%d"
,
i
);
if
((
fd
=
open
(
buf
,
O_RDWR
))
==-
1
)
{
fd
=
open
(
buf
,
O_RDONLY
);
no_ff_check
=
1
;
}
if
((
fd
=
open
(
buf
,
O_RDWR
))
==
-
1
)
{
fd
=
open
(
buf
,
O_RDONLY
);
no_ff_check
=
1
;
}
if
(
fd
!=-
1
)
{
if
(
fd
==
-
1
)
{
WARN
(
"Failed to open
\"
%s
\"
: %d %s
\n
"
,
buf
,
errno
,
strerror
(
errno
));
continue
;
}
if
((
-
1
==
ioctl
(
fd
,
EVIOCGBIT
(
0
,
sizeof
(
joydev
.
evbits
)),
joydev
.
evbits
)))
{
perror
(
"EVIOCGBIT 0"
);
...
...
@@ -319,9 +324,8 @@ static void find_joydevs(void)
have_joydevs
++
;
}
close
(
fd
);
close
(
fd
);
}
}
}
static
void
fill_joystick_dideviceinstanceA
(
LPDIDEVICEINSTANCEA
lpddi
,
DWORD
version
,
int
id
)
...
...
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