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
ab4e40cf
Commit
ab4e40cf
authored
Oct 30, 2003
by
Hannu Valtonen
Committed by
Alexandre Julliard
Oct 30, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JoystickAImpl_Unacquire should return DI_NOEFFECT if the device is not
in an acquired state.
parent
e40da9f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
linux.c
dlls/dinput/joystick/linux.c
+3
-1
linuxinput.c
dlls/dinput/joystick/linuxinput.c
+3
-1
No files found.
dlls/dinput/joystick/linux.c
View file @
ab4e40cf
...
@@ -306,8 +306,10 @@ static HRESULT WINAPI JoystickAImpl_Unacquire(LPDIRECTINPUTDEVICE8A iface)
...
@@ -306,8 +306,10 @@ static HRESULT WINAPI JoystickAImpl_Unacquire(LPDIRECTINPUTDEVICE8A iface)
if
(
This
->
joyfd
!=-
1
)
{
if
(
This
->
joyfd
!=-
1
)
{
close
(
This
->
joyfd
);
close
(
This
->
joyfd
);
This
->
joyfd
=
-
1
;
This
->
joyfd
=
-
1
;
return
DI_OK
;
}
}
return
DI_OK
;
else
return
DI_NOEFFECT
;
}
}
#define map_axis(val) ((val+32768)*(This->lMax-This->lMin)/65536+This->lMin)
#define map_axis(val) ((val+32768)*(This->lMax-This->lMin)/65536+This->lMin)
...
...
dlls/dinput/joystick/linuxinput.c
View file @
ab4e40cf
...
@@ -432,8 +432,10 @@ static HRESULT WINAPI JoystickAImpl_Unacquire(LPDIRECTINPUTDEVICE8A iface)
...
@@ -432,8 +432,10 @@ static HRESULT WINAPI JoystickAImpl_Unacquire(LPDIRECTINPUTDEVICE8A iface)
if
(
This
->
joyfd
!=-
1
)
{
if
(
This
->
joyfd
!=-
1
)
{
close
(
This
->
joyfd
);
close
(
This
->
joyfd
);
This
->
joyfd
=
-
1
;
This
->
joyfd
=
-
1
;
return
DI_OK
;
}
}
return
DI_OK
;
else
return
DI_NOEFFECT
;
}
}
/*
/*
...
...
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