diff options
author | pierre lamot <pierre.lamot@openwide.fr> | 2015-02-19 10:25:00 +0100 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-03-12 07:43:59 +0100 |
commit | d9830a199fc1dc755b4091cc4194942f2d3e3670 (patch) | |
tree | d974fb009cc5e37767d9c87966c1bc21632cd53a /src/lib/ecore_cocoa | |
parent | c0aedc828a0156fcb563890921302302a67747b8 (diff) |
ecore_cocoa: handle right and other mouse events
right and other mouse events where missing in the patch
correcting mouse event handling
@fix
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/ecore_cocoa')
-rw-r--r-- | src/lib/ecore_cocoa/ecore_cocoa_window.m | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/lib/ecore_cocoa/ecore_cocoa_window.m b/src/lib/ecore_cocoa/ecore_cocoa_window.m index 0a7d290f9b..4c5352fb65 100644 --- a/src/lib/ecore_cocoa/ecore_cocoa_window.m +++ b/src/lib/ecore_cocoa/ecore_cocoa_window.m | |||
@@ -145,6 +145,16 @@ | |||
145 | ecore_event_add(ECORE_EVENT_MOUSE_BUTTON_DOWN, ev, NULL, NULL); | 145 | ecore_event_add(ECORE_EVENT_MOUSE_BUTTON_DOWN, ev, NULL, NULL); |
146 | } | 146 | } |
147 | 147 | ||
148 | - (void) rightMouseDown:(NSEvent*) event | ||
149 | { | ||
150 | [self mouseDown: event]; | ||
151 | } | ||
152 | |||
153 | - (void) otherMouseDown:(NSEvent*) event | ||
154 | { | ||
155 | [self mouseDown: event]; | ||
156 | } | ||
157 | |||
148 | - (void) mouseUp:(NSEvent*) event | 158 | - (void) mouseUp:(NSEvent*) event |
149 | { | 159 | { |
150 | unsigned int time = (unsigned int)((unsigned long long)(ecore_time_get() * 1000.0) & 0xffffffff); | 160 | unsigned int time = (unsigned int)((unsigned long long)(ecore_time_get() * 1000.0) & 0xffffffff); |
@@ -192,6 +202,16 @@ | |||
192 | ecore_event_add(ECORE_EVENT_MOUSE_BUTTON_UP, ev, NULL, NULL); | 202 | ecore_event_add(ECORE_EVENT_MOUSE_BUTTON_UP, ev, NULL, NULL); |
193 | } | 203 | } |
194 | 204 | ||
205 | - (void) rightMouseUp:(NSEvent*) event | ||
206 | { | ||
207 | [self mouseUp: event]; | ||
208 | } | ||
209 | |||
210 | - (void) otherMouseUp:(NSEvent*) event | ||
211 | { | ||
212 | [self mouseUp: event]; | ||
213 | } | ||
214 | |||
195 | - (void) mouseMoved:(NSEvent*) event | 215 | - (void) mouseMoved:(NSEvent*) event |
196 | { | 216 | { |
197 | Ecore_Event_Mouse_Move * ev = calloc(1, sizeof(Ecore_Event_Mouse_Move)); | 217 | Ecore_Event_Mouse_Move * ev = calloc(1, sizeof(Ecore_Event_Mouse_Move)); |