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
4998bbac
Commit
4998bbac
authored
Jun 03, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Rename MOUSE_MOVE_RELATIVE to avoid collision with wincontypes.h.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
parent
7a8254fd
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
11 deletions
+11
-11
cocoa_app.m
dlls/winemac.drv/cocoa_app.m
+2
-2
cocoa_event.m
dlls/winemac.drv/cocoa_event.m
+3
-3
event.c
dlls/winemac.drv/event.c
+3
-3
macdrv_cocoa.h
dlls/winemac.drv/macdrv_cocoa.h
+1
-1
mouse.c
dlls/winemac.drv/mouse.c
+2
-2
No files found.
dlls/winemac.drv/cocoa_app.m
View file @
4998bbac
...
...
@@ -1188,7 +1188,7 @@ static NSString* WineLocalizedString(unsigned int stringID)
[
eventQueuesLock
lock
];
for
(
queue
in
eventQueues
)
{
[
queue
discardEventsMatchingMask
:
event_mask_for_type
(
MOUSE_MOVED
)
|
[
queue
discardEventsMatchingMask
:
event_mask_for_type
(
MOUSE_MOVED
_RELATIVE
)
|
event_mask_for_type
(
MOUSE_MOVED_ABSOLUTE
)
forWindow
:
nil
];
[
queue
resetMouseEventPositions
:
pos
];
...
...
@@ -1444,7 +1444,7 @@ static NSString* WineLocalizedString(unsigned int stringID)
mouseMoveDeltaX
+=
[
anEvent
deltaX
];
mouseMoveDeltaY
+=
[
anEvent
deltaY
];
event
=
macdrv_create_event
(
MOUSE_MOVED
,
targetWindow
);
event
=
macdrv_create_event
(
MOUSE_MOVED
_RELATIVE
,
targetWindow
);
event
->
mouse_moved
.
x
=
mouseMoveDeltaX
*
scale
;
event
->
mouse_moved
.
y
=
mouseMoveDeltaY
*
scale
;
...
...
dlls/winemac.drv/cocoa_event.m
View file @
4998bbac
...
...
@@ -204,17 +204,17 @@ static const OSType WineHotKeySignature = 'Wine';
}];
[
events
removeObjectsAtIndexes
:
indexes
];
if
((
event
->
event
->
type
==
MOUSE_MOVED
||
if
((
event
->
event
->
type
==
MOUSE_MOVED
_RELATIVE
||
event
->
event
->
type
==
MOUSE_MOVED_ABSOLUTE
)
&&
event
->
event
->
deliver
==
INT_MAX
&&
(
lastEvent
=
[
events
lastObject
])
&&
(
lastEvent
->
event
->
type
==
MOUSE_MOVED
||
(
lastEvent
->
event
->
type
==
MOUSE_MOVED
_RELATIVE
||
lastEvent
->
event
->
type
==
MOUSE_MOVED_ABSOLUTE
)
&&
lastEvent
->
event
->
deliver
==
INT_MAX
&&
lastEvent
->
event
->
window
==
event
->
event
->
window
&&
lastEvent
->
event
->
mouse_moved
.
drag
==
event
->
event
->
mouse_moved
.
drag
)
{
if
(
event
->
event
->
type
==
MOUSE_MOVED
)
if
(
event
->
event
->
type
==
MOUSE_MOVED
_RELATIVE
)
{
lastEvent
->
event
->
mouse_moved
.
x
+=
event
->
event
->
mouse_moved
.
x
;
lastEvent
->
event
->
mouse_moved
.
y
+=
event
->
event
->
mouse_moved
.
y
;
...
...
dlls/winemac.drv/event.c
View file @
4998bbac
...
...
@@ -44,7 +44,7 @@ static const char *dbgstr_event(int type)
"KEYBOARD_CHANGED"
,
"LOST_PASTEBOARD_OWNERSHIP"
,
"MOUSE_BUTTON"
,
"MOUSE_MOVED"
,
"MOUSE_MOVED
_RELATIVE
"
,
"MOUSE_MOVED_ABSOLUTE"
,
"MOUSE_SCROLL"
,
"QUERY_EVENT"
,
...
...
@@ -100,7 +100,7 @@ static macdrv_event_mask get_event_mask(DWORD mask)
if
(
mask
&
QS_MOUSEMOVE
)
{
event_mask
|=
event_mask_for_type
(
MOUSE_MOVED
);
event_mask
|=
event_mask_for_type
(
MOUSE_MOVED
_RELATIVE
);
event_mask
|=
event_mask_for_type
(
MOUSE_MOVED_ABSOLUTE
);
}
...
...
@@ -325,7 +325,7 @@ void macdrv_handle_event(const macdrv_event *event)
case
MOUSE_BUTTON
:
macdrv_mouse_button
(
hwnd
,
event
);
break
;
case
MOUSE_MOVED
:
case
MOUSE_MOVED
_RELATIVE
:
case
MOUSE_MOVED_ABSOLUTE
:
macdrv_mouse_moved
(
hwnd
,
event
);
break
;
...
...
dlls/winemac.drv/macdrv_cocoa.h
View file @
4998bbac
...
...
@@ -328,7 +328,7 @@ enum {
KEYBOARD_CHANGED
,
LOST_PASTEBOARD_OWNERSHIP
,
MOUSE_BUTTON
,
MOUSE_MOVED
,
MOUSE_MOVED
_RELATIVE
,
MOUSE_MOVED_ABSOLUTE
,
MOUSE_SCROLL
,
QUERY_EVENT
,
...
...
dlls/winemac.drv/mouse.c
View file @
4998bbac
...
...
@@ -892,14 +892,14 @@ void macdrv_mouse_button(HWND hwnd, const macdrv_event *event)
/***********************************************************************
* macdrv_mouse_moved
*
* Handler for MOUSE_MOVED and MOUSE_MOVED_ABSOLUTE events.
* Handler for MOUSE_MOVED
_RELATIVE
and MOUSE_MOVED_ABSOLUTE events.
*/
void
macdrv_mouse_moved
(
HWND
hwnd
,
const
macdrv_event
*
event
)
{
UINT
flags
=
MOUSEEVENTF_MOVE
;
TRACE
(
"win %p/%p %s (%d,%d) drag %d time %lu (%lu ticks ago)
\n
"
,
hwnd
,
event
->
window
,
(
event
->
type
==
MOUSE_MOVED
)
?
"relative"
:
"absolute"
,
(
event
->
type
==
MOUSE_MOVED
_RELATIVE
)
?
"relative"
:
"absolute"
,
event
->
mouse_moved
.
x
,
event
->
mouse_moved
.
y
,
event
->
mouse_moved
.
drag
,
event
->
mouse_moved
.
time_ms
,
(
NtGetTickCount
()
-
event
->
mouse_moved
.
time_ms
));
...
...
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