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
0f5231d9
Commit
0f5231d9
authored
Oct 31, 2000
by
Andreas Mohr
Committed by
Alexandre Julliard
Oct 31, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed mouse UnAcquire to NOT unacquire it on multiple unacquires.
Implemented DIPROP_AXISMODE for SysMouseAImpl_SetProperty.
parent
4dc7f4ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
14 deletions
+25
-14
dinput_main.c
dlls/dinput/dinput_main.c
+25
-14
No files found.
dlls/dinput/dinput_main.c
View file @
0f5231d9
...
...
@@ -1125,7 +1125,7 @@ static ULONG WINAPI SysMouseAImpl_Release(LPDIRECTINPUTDEVICE2A iface)
if
(
This
->
data_queue
!=
NULL
)
HeapFree
(
GetProcessHeap
(),
0
,
This
->
data_queue
);
/* Install the previous event handler (in case of releasing an aquired
/* Install the previous event handler (in case of releasing an a
c
quired
mouse device) */
if
(
This
->
prev_handler
!=
NULL
)
MOUSE_Enable
(
This
->
prev_handler
);
...
...
@@ -1456,7 +1456,7 @@ static HRESULT WINAPI SysMouseAImpl_Acquire(LPDIRECTINPUTDEVICE2A iface)
This
->
acquired
=
1
;
}
return
0
;
return
DI_OK
;
}
/******************************************************************************
...
...
@@ -1464,21 +1464,26 @@ static HRESULT WINAPI SysMouseAImpl_Acquire(LPDIRECTINPUTDEVICE2A iface)
*/
static
HRESULT
WINAPI
SysMouseAImpl_Unacquire
(
LPDIRECTINPUTDEVICE2A
iface
)
{
ICOM_THIS
(
SysMouseAImpl
,
iface
);
ICOM_THIS
(
SysMouseAImpl
,
iface
);
TRACE
(
"(this=%p)
\n
"
,
This
);
TRACE
(
"(this=%p)
\n
"
,
This
);
/* Reinstall previous mouse event handler */
MOUSE_Enable
(
This
->
prev_handler
);
This
->
prev_handler
=
NULL
;
if
(
This
->
acquired
)
{
/* Reinstall previous mouse event handler */
MOUSE_Enable
(
This
->
prev_handler
);
This
->
prev_handler
=
NULL
;
/* No more locks */
current_lock
=
NULL
;
/* No more locks */
current_lock
=
NULL
;
/* Unacquire device */
This
->
acquired
=
0
;
/* Unacquire device */
This
->
acquired
=
0
;
}
else
ERR
(
"Unacquiring a not-acquired device !!!
\n
"
);
return
0
;
return
DI_OK
;
}
/******************************************************************************
...
...
@@ -1610,6 +1615,12 @@ static HRESULT WINAPI SysMouseAImpl_SetProperty(LPDIRECTINPUTDEVICE2A iface,
This
->
queue_len
=
pd
->
dwData
;
break
;
}
case
(
DWORD
)
DIPROP_AXISMODE
:
{
LPCDIPROPDWORD
pd
=
(
LPCDIPROPDWORD
)
ph
;
This
->
absolute
=
!
(
pd
->
dwData
);
TRACE
(
"absolute mode: %d
\n
"
,
This
->
absolute
);
break
;
}
default:
FIXME
(
"Unknown type %ld (%s)
\n
"
,(
DWORD
)
rguid
,
debugstr_guid
(
rguid
));
break
;
...
...
@@ -1876,7 +1887,7 @@ static HRESULT WINAPI JoystickAImpl_Unacquire(LPDIRECTINPUTDEVICE2A iface)
close
(
This
->
joyfd
);
This
->
joyfd
=
-
1
;
}
return
0
;
return
DI_OK
;
}
#define map_axis(val) ((val+32768)*(This->lMax-This->lMin)/65536+This->lMin)
...
...
@@ -1944,7 +1955,7 @@ static HRESULT WINAPI JoystickAImpl_GetDeviceState(
}
/******************************************************************************
* GetDevice
State
: gets buffered input data.
* GetDevice
Data
: gets buffered input data.
*/
static
HRESULT
WINAPI
JoystickAImpl_GetDeviceData
(
LPDIRECTINPUTDEVICE2A
iface
,
DWORD
dodsize
,
...
...
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