mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-18 00:11:39 +03:00
530be3ff9d
multiple systems with automake, with X Windows and Carbon window system APIs supported. It's also a starting port for supporting win32 builds using mingw. OS X support is incomplete; the tree will compile and link but the binaries will not function.
77 lines
1.5 KiB
C++
77 lines
1.5 KiB
C++
/*
|
|
* synergy -- mouse and keyboard sharing utility
|
|
* Copyright (C) 2004 Chris Schoeneman
|
|
*
|
|
* This package is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* found in the file COPYING that should have accompanied this file.
|
|
*
|
|
* This package is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#include "COSXEventQueueBuffer.h"
|
|
|
|
//
|
|
// COSXEventQueueBuffer
|
|
//
|
|
|
|
COSXEventQueueBuffer::COSXEventQueueBuffer()
|
|
{
|
|
// FIXME
|
|
}
|
|
|
|
COSXEventQueueBuffer::~COSXEventQueueBuffer()
|
|
{
|
|
// FIXME
|
|
}
|
|
|
|
void
|
|
COSXEventQueueBuffer::waitForEvent(double timeout)
|
|
{
|
|
EventRef event;
|
|
ReceiveNextEvent(0, NULL, timeout, false, &event);
|
|
}
|
|
|
|
IEventQueueBuffer::Type
|
|
COSXEventQueueBuffer::getEvent(CEvent& event, UInt32& dataID)
|
|
{
|
|
// FIXME
|
|
(void)event;
|
|
(void)dataID;
|
|
return kNone;
|
|
}
|
|
|
|
bool
|
|
COSXEventQueueBuffer::addEvent(UInt32 dataID)
|
|
{
|
|
// FIXME
|
|
(void)dataID;
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
COSXEventQueueBuffer::isEmpty() const
|
|
{
|
|
EventRef event;
|
|
OSStatus status = ReceiveNextEvent(0, NULL, 0.0, false, &event);
|
|
return (status != eventLoopTimedOutErr);
|
|
}
|
|
|
|
CEventQueueTimer*
|
|
COSXEventQueueBuffer::newTimer(double duration, bool oneShot) const
|
|
{
|
|
// FIXME
|
|
(void)duration;
|
|
(void)oneShot;
|
|
return NULL;
|
|
}
|
|
|
|
void
|
|
COSXEventQueueBuffer::deleteTimer(CEventQueueTimer*) const
|
|
{
|
|
// FIXME
|
|
}
|