mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-12 03:16:07 +08:00
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:
@@ -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;
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
/*!
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user