Partial work related to OS X 10.6 SDK compilation

issue #33: Modernize support for various MacOS APIs to their 10.5 equivalents.
This commit is contained in:
Sorin Sbarnea 2009-04-24 10:11:28 +00:00
parent e69caf4d8b
commit 86c29452f9
5 changed files with 5 additions and 5 deletions

View File

@ -15,9 +15,9 @@
#ifndef COSXCLIPBOARD_H
#define COSXCLIPBOARD_H
#include <Carbon/Carbon.h>
#include "IClipboard.h"
#include <vector>
#include <Carbon/Carbon.h>
class IOSXClipboardConverter;

View File

@ -15,8 +15,8 @@
#ifndef COSXEVENTQUEUEBUFFER_H
#define COSXEVENTQUEUEBUFFER_H
#include "IEventQueueBuffer.h"
#include <Carbon/Carbon.h>
#include "IEventQueueBuffer.h"
//! Event queue buffer for OS X
class COSXEventQueueBuffer : public IEventQueueBuffer {

View File

@ -353,7 +353,7 @@ COSXKeyState::fakeKey(const Keystroke& keystroke)
LOG((CLOG_DEBUG1 " %03x (%08x) %s", keystroke.m_data.m_button.m_button, keystroke.m_data.m_button.m_client, keystroke.m_data.m_button.m_press ? "down" : "up"));
// let system figure out character for us
CGPostKeyboardEvent(0, mapKeyButtonToVirtualKey(
CGEventCreateKeyboardEvent(0, mapKeyButtonToVirtualKey(
keystroke.m_data.m_button.m_button),
keystroke.m_data.m_button.m_press);

View File

@ -15,11 +15,11 @@
#ifndef COSXKEYSTATE_H
#define COSXKEYSTATE_H
#include <Carbon/Carbon.h>
#include "CKeyState.h"
#include "stdmap.h"
#include "stdset.h"
#include "stdvector.h"
#include <Carbon/Carbon.h>
//! OS X key state
/*!

View File

@ -15,10 +15,10 @@
#ifndef COSXSCREEN_H
#define COSXSCREEN_H
#include <Carbon/Carbon.h>
#include "CPlatformScreen.h"
#include "stdmap.h"
#include "stdvector.h"
#include <Carbon/Carbon.h>
#include <mach/mach_port.h>
#include <mach/mach_interface.h>