+ oisMouseObj->getEventCallback()->mouseReleased( MouseEvent( oisMouseObj, *state ), (MouseButtonID)mouseButton );
--- src/mac/CocoaMouse.mm (revision 0)
+++ src/mac/CocoaMouse.mm (revision 0)
+ The zlib/libpng License
+ Copyright (c) 2005-2007 Phillip Castaneda (pjcast -- www.wreckedgames.com)
+ This software is provided 'as-is', without any express or implied warranty. In no event will
+ the authors be held liable for any damages arising from the use of this software.
+ Permission is granted to anyone to use this software for any purpose, including commercial
+ applications, and to alter it and redistribute it freely, subject to the following
+ 1. The origin of this software must not be misrepresented; you must not claim that
+ you wrote the original software. If you use this software in a product,
+ an acknowledgment in the product documentation would be appreciated but is
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+#include "mac/CocoaMouse.h"
+#include "mac/CocoaInputManager.h"
+#include "mac/CocoaHelpers.h"
+#include "OISException.h"
+//-------------------------------------------------------------------//
+CocoaMouse::CocoaMouse( InputManager* creator, bool buffered )
+ : Mouse(creator->inputSystemName(), buffered, 0, creator)
+ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+ CocoaInputManager *man = static_cast<CocoaInputManager*>(mCreator);
+ mResponder = [[CocoaMouseView alloc] initWithFrame:[[man->_getWindow() contentView] frame]];
+ OIS_EXCEPT( E_General, "CocoaMouseView::CocoaMouseView >> Error creating event responder" );
+ [[man->_getWindow() contentView] addSubview:mResponder];
+ [mResponder setOISMouseObj:this];
+ static_cast<CocoaInputManager*>(mCreator)->_setMouseUsed(true);
+CocoaMouse::~CocoaMouse()
+// CGAssociateMouseAndMouseCursorPosition(true);
+ CGDisplayShowCursor(kCGDirectMainDisplay);