OS X: Some prep work for Cocoa input handling
OS X: Some prep work for Cocoa input handling

--HG--
branch : v1-7
extra : rebase_source : fe4ca9285f1408dacb529c03ef61a27f1e6e4c09

ehsan/ogre,ruleless/ogre,bhlzlx/ogre,bhlzlx/ogre,ruleless/ogre,bhlzlx/ogre,bhlzlx/ogre,ruleless/ogre,ruleless/ogre,ruleless/ogre,ehsan/ogre,bhlzlx/ogre,ehsan/ogre,ehsan/ogre,ehsan/ogre,bhlzlx/ogre,ruleless/ogre