+ CGEventKeyboardGetUnicodeString(ref, sizeof(unicodeString) / sizeof(*unicodeString), &actualStringLength, unicodeString);
--- src/mac/MacKeyboard.cpp (revision 34)
+++ src/mac/MacKeyboard.cpp (working copy)
- Copyright (c) 2006 Chris Snyder
+ 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
+ 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
+ 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
+ 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/MacKeyboard.h"
#include "mac/MacInputManager.h"
#include "mac/MacHelpers.h"
// if not buffered just return, we update the unbuffered automatically
if ( !mBuffered || !mListener )
- //If the mListener returns false, that means that we are probably deleted...
- //send no more events and just leave as the this pointer is invalid now...
// run through our event stack
eventStack::iterator cur_it;
//-------------------------------------------------------------------//
std::string& MacKeyboard::getAsString( KeyCode key )
+ CGKeyCode deviceKeycode;
+ // Convert OIS KeyCode back into device keycode
+ for(VirtualtoOIS_KeyMap::iterator it = keyConversion.begin(); it != keyConversion.end(); ++it)