cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=d9830a199fc1dc755b4091cc4194942f2d3e3670

commit d9830a199fc1dc755b4091cc4194942f2d3e3670
Author: pierre lamot <[email protected]>
Date:   Thu Feb 19 10:25:00 2015 +0100

    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 <[email protected]>
---
 src/lib/ecore_cocoa/ecore_cocoa_window.m | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/src/lib/ecore_cocoa/ecore_cocoa_window.m 
b/src/lib/ecore_cocoa/ecore_cocoa_window.m
index 0a7d290..4c5352f 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa_window.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa_window.m
@@ -145,6 +145,16 @@
    ecore_event_add(ECORE_EVENT_MOUSE_BUTTON_DOWN, ev, NULL, NULL);
 }
 
+- (void) rightMouseDown:(NSEvent*) event
+{
+       [self mouseDown: event];
+}
+
+- (void) otherMouseDown:(NSEvent*) event
+{
+       [self mouseDown: event];
+}
+
 - (void) mouseUp:(NSEvent*) event
 {
    unsigned int time = (unsigned int)((unsigned long long)(ecore_time_get() * 
1000.0) & 0xffffffff);
@@ -192,6 +202,16 @@
    ecore_event_add(ECORE_EVENT_MOUSE_BUTTON_UP, ev, NULL, NULL);
 }
 
+- (void) rightMouseUp:(NSEvent*) event
+{
+       [self mouseUp: event];
+}
+
+- (void) otherMouseUp:(NSEvent*) event
+{
+       [self mouseUp: event];
+}
+
 - (void) mouseMoved:(NSEvent*) event
 {
    Ecore_Event_Mouse_Move * ev = calloc(1, sizeof(Ecore_Event_Mouse_Move));

-- 


Reply via email to