/* IsCommandPeriod() */ Boolean IsCommandPeriod(EventRecord *eventPtr) { Boolean isCommandPeriod; isCommandPeriod=(eventPtr->what==keyDown || eventPtr->what==autoKey) && IsCmdChar(eventPtr,'.') && (eventPtr->modifiers & cmdKey); return isCommandPeriod; }
static PyObject *Evt_IsCmdChar(PyObject *_self, PyObject *_args) { PyObject *_res = NULL; Boolean _rv; EventRecord event; short test; #ifndef IsCmdChar PyMac_PRECHECK(IsCmdChar); #endif if (!PyArg_ParseTuple(_args, "O&h", PyMac_GetEventRecord, &event, &test)) return NULL; _rv = IsCmdChar(&event, test); _res = Py_BuildValue("b", _rv); return _res; }