Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
06050f8b
Commit
06050f8b
authored
Jan 21, 2011
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed mouse button index for additional mouse buttons
parent
6a6cc495
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
SDL_cocoaevents.m
src/video/cocoa/SDL_cocoaevents.m
+1
-1
SDL_cocoamouse.m
src/video/cocoa/SDL_cocoamouse.m
+1
-1
No files found.
src/video/cocoa/SDL_cocoaevents.m
View file @
06050f8b
...
@@ -201,8 +201,8 @@ Cocoa_PumpEvents(_THIS)
...
@@ -201,8 +201,8 @@ Cocoa_PumpEvents(_THIS)
case
NSLeftMouseDragged
:
case
NSLeftMouseDragged
:
case
NSRightMouseDragged
:
case
NSRightMouseDragged
:
case
NSOtherMouseDragged
:
/* usually middle mouse dragged */
case
NSOtherMouseDragged
:
/* usually middle mouse dragged */
case
NSScrollWheel
:
case
NSMouseMoved
:
case
NSMouseMoved
:
case
NSScrollWheel
:
Cocoa_HandleMouseEvent
(
_this
,
event
);
Cocoa_HandleMouseEvent
(
_this
,
event
);
/* Pass through to NSApp to make sure everything stays in sync */
/* Pass through to NSApp to make sure everything stays in sync */
[
NSApp
sendEvent
:
event
];
[
NSApp
sendEvent
:
event
];
...
...
src/video/cocoa/SDL_cocoamouse.m
View file @
06050f8b
...
@@ -43,7 +43,7 @@ ConvertMouseButtonToSDL(int button)
...
@@ -43,7 +43,7 @@ ConvertMouseButtonToSDL(int button)
case
2
:
case
2
:
return
(
SDL
_
BUTTON
_
MIDDLE
)
;
/*
2
*/
return
(
SDL
_
BUTTON
_
MIDDLE
)
;
/*
2
*/
}
}
return
button
;
return
button
+
1
;
}
}
void
void
...
...
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