{
PyObject *_res = NULL;
Point mouseLoc;
+#ifndef GetMouse
+ PyMac_PRECHECK(GetMouse);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
GetMouse(&mouseLoc);
{
PyObject *_res = NULL;
Boolean _rv;
+#ifndef Button
+ PyMac_PRECHECK(Button);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = Button();
{
PyObject *_res = NULL;
Boolean _rv;
+#ifndef StillDown
+ PyMac_PRECHECK(StillDown);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = StillDown();
{
PyObject *_res = NULL;
Boolean _rv;
+#ifndef WaitMouseUp
+ PyMac_PRECHECK(WaitMouseUp);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = WaitMouseUp();
{
PyObject *_res = NULL;
UInt32 _rv;
+#ifndef GetCaretTime
+ PyMac_PRECHECK(GetCaretTime);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = GetCaretTime();
{
PyObject *_res = NULL;
KeyMap theKeys__out__;
+#ifndef GetKeys
+ PyMac_PRECHECK(GetKeys);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
GetKeys(theKeys__out__);
{
PyObject *_res = NULL;
UInt32 _rv;
+#ifndef GetDblTime
+ PyMac_PRECHECK(GetDblTime);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = GetDblTime();
{
PyObject *_res = NULL;
EventMask value;
+#ifndef SetEventMask
+ PyMac_PRECHECK(SetEventMask);
+#endif
if (!PyArg_ParseTuple(_args, "H",
&value))
return NULL;
Boolean _rv;
EventMask eventMask;
EventRecord theEvent;
+#ifndef GetNextEvent
+ PyMac_PRECHECK(GetNextEvent);
+#endif
if (!PyArg_ParseTuple(_args, "H",
&eventMask))
return NULL;
Boolean _rv;
EventMask eventMask;
EventRecord theEvent;
+#ifndef EventAvail
+ PyMac_PRECHECK(EventAvail);
+#endif
if (!PyArg_ParseTuple(_args, "H",
&eventMask))
return NULL;
OSErr _err;
EventKind eventNum;
UInt32 eventMsg;
+#ifndef PostEvent
+ PyMac_PRECHECK(PostEvent);
+#endif
if (!PyArg_ParseTuple(_args, "Hl",
&eventNum,
&eventMsg))
Boolean _rv;
EventMask mask;
EventRecord theEvent;
+#ifndef OSEventAvail
+ PyMac_PRECHECK(OSEventAvail);
+#endif
if (!PyArg_ParseTuple(_args, "H",
&mask))
return NULL;
Boolean _rv;
EventMask mask;
EventRecord theEvent;
+#ifndef GetOSEvent
+ PyMac_PRECHECK(GetOSEvent);
+#endif
if (!PyArg_ParseTuple(_args, "H",
&mask))
return NULL;
PyObject *_res = NULL;
EventMask whichMask;
EventMask stopMask;
+#ifndef FlushEvents
+ PyMac_PRECHECK(FlushEvents);
+#endif
if (!PyArg_ParseTuple(_args, "HH",
&whichMask,
&stopMask))
PyObject *_res = NULL;
EventRecord theEvent;
WindowPtr theWindow;
+#ifndef SystemClick
+ PyMac_PRECHECK(SystemClick);
+#endif
if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetEventRecord, &theEvent,
WinObj_Convert, &theWindow))
static PyObject *Evt_SystemTask(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
+#ifndef SystemTask
+ PyMac_PRECHECK(SystemTask);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
SystemTask();
PyObject *_res = NULL;
Boolean _rv;
EventRecord theEvent;
+#ifndef SystemEvent
+ PyMac_PRECHECK(SystemEvent);
+#endif
if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetEventRecord, &theEvent))
return NULL;
{
PyObject *_res = NULL;
Point globalMouse;
+#ifndef GetGlobalMouse
+ PyMac_PRECHECK(GetGlobalMouse);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
GetGlobalMouse(&globalMouse);
{
PyObject *_res = NULL;
UInt32 _rv;
+#ifndef GetCurrentKeyModifiers
+ PyMac_PRECHECK(GetCurrentKeyModifiers);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = GetCurrentKeyModifiers();
{
PyObject *_res = NULL;
Boolean _rv;
+#ifndef CheckEventQueueForUserCancel
+ PyMac_PRECHECK(CheckEventQueueForUserCancel);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = CheckEventQueueForUserCancel();
{
PyObject *_res = NULL;
short code;
+#ifndef KeyScript
+ PyMac_PRECHECK(KeyScript);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&code))
return NULL;
Boolean _rv;
EventRecord event;
short test;
+#ifndef IsCmdChar
+ PyMac_PRECHECK(IsCmdChar);
+#endif
if (!PyArg_ParseTuple(_args, "O&h",
PyMac_GetEventRecord, &event,
&test))
{
PyObject *_res = NULL;
SInt16 _rv;
+#ifndef LMGetKeyThresh
+ PyMac_PRECHECK(LMGetKeyThresh);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = LMGetKeyThresh();
{
PyObject *_res = NULL;
SInt16 value;
+#ifndef LMSetKeyThresh
+ PyMac_PRECHECK(LMSetKeyThresh);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&value))
return NULL;
{
PyObject *_res = NULL;
SInt16 _rv;
+#ifndef LMGetKeyRepThresh
+ PyMac_PRECHECK(LMGetKeyRepThresh);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = LMGetKeyRepThresh();
{
PyObject *_res = NULL;
SInt16 value;
+#ifndef LMSetKeyRepThresh
+ PyMac_PRECHECK(LMSetKeyRepThresh);
+#endif
if (!PyArg_ParseTuple(_args, "h",
&value))
return NULL;
{
PyObject *_res = NULL;
UInt8 _rv;
+#ifndef LMGetKbdLast
+ PyMac_PRECHECK(LMGetKbdLast);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = LMGetKbdLast();
{
PyObject *_res = NULL;
UInt8 value;
+#ifndef LMSetKbdLast
+ PyMac_PRECHECK(LMSetKbdLast);
+#endif
if (!PyArg_ParseTuple(_args, "b",
&value))
return NULL;
{
PyObject *_res = NULL;
UInt8 _rv;
+#ifndef LMGetKbdType
+ PyMac_PRECHECK(LMGetKbdType);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = LMGetKbdType();
{
PyObject *_res = NULL;
UInt8 value;
+#ifndef LMSetKbdType
+ PyMac_PRECHECK(LMSetKbdType);
+#endif
if (!PyArg_ParseTuple(_args, "b",
&value))
return NULL;
{
PyObject *_res = NULL;
UInt32 _rv;
+#ifndef TickCount
+ PyMac_PRECHECK(TickCount);
+#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
_rv = TickCount();