d31 1
a31 1
dmxinputinit.c File Reference
d67 2
a68 2
| #define | DMX_WINDOW_DEBUG 0 |
| #define | LEN 32 |
d71 39
a109 39
| void | DDXRingBell (int volume, int pitch, int duration) |
| static void | dmxKbdCtrl (DeviceIntPtr pDevice, KeybdCtrl *ctrl) |
| static void | dmxBell (int volume, DeviceIntPtr pDev, pointer arg, int something) |
| static void | _dmxChangePointerControl (DMXLocalInputInfoPtr dmxLocal, PtrCtrl *ctrl) |
| void | dmxChangePointerControl (DeviceIntPtr pDevice, PtrCtrl *ctrl) |
| static void | _dmxKeyboardKbdCtrlProc (DMXLocalInputInfoPtr dmxLocal, KeybdCtrl *ctrl) |
| void | dmxKeyboardKbdCtrlProc (DeviceIntPtr pDevice, KeybdCtrl *ctrl) |
| static void | _dmxKeyboardBellProc (DMXLocalInputInfoPtr dmxLocal, int percent) |
| void | dmxKeyboardBellProc (int percent, DeviceIntPtr pDevice, pointer ctrl, int unknown) |
| static void | dmxKeyboardFreeNames (XkbComponentNamesPtr names) |
| static int | dmxKeyboardOn (DeviceIntPtr pDevice, DMXLocalInitInfo *info) |
| static int | dmxDeviceOnOff (DeviceIntPtr pDevice, int what) |
| static void | dmxProcessInputEvents (DMXInputInfo *dmxInput) |
| static void | dmxUpdateWindowInformation (DMXInputInfo *dmxInput, DMXUpdateType type, WindowPtr pWindow) |
| static void | dmxCollectAll (DMXInputInfo *dmxInput) |
| static void | dmxBlockHandler (pointer blockData, OSTimePtr pTimeout, pointer pReadMask) |
| static void | dmxSwitchReturn (pointer p) |
| static void | dmxWakeupHandler (pointer blockData, int result, pointer pReadMask) |
| static char * | dmxMakeUniqueDeviceName (DMXLocalInputInfoPtr dmxLocal) |
| static DeviceIntPtr | dmxAddDevice (DMXLocalInputInfoPtr dmxLocal) |
| static DMXLocalInputInfoPtr | dmxLookupLocal (const char *name) |
| DMXLocalInputInfoPtr | dmxInputCopyLocal (DMXInputInfo *dmxInput, DMXLocalInputInfoPtr s) |
| static void | dmxPopulateLocal (DMXInputInfo *dmxInput, dmxArg a) |
| int | dmxInputExtensionErrorHandler (Display *dsp, _Xconst char *name, _Xconst char *reason) |
| static void | dmxInputScanForExtensions (DMXInputInfo *dmxInput, int doXI) |
| void | dmxInputReInit (DMXInputInfo *dmxInput) |
| void | dmxInputLateReInit (DMXInputInfo *dmxInput) |
| void | dmxInputInit (DMXInputInfo *dmxInput) |
| static void | dmxInputFreeLocal (DMXLocalInputInfoRec *local) |
| void | dmxInputFree (DMXInputInfo *dmxInput) |
| void | dmxInputLogDevices (void) |
| int | dmxInputDetach (DMXInputInfo *dmxInput) |
| void | dmxInputDetachAll (DMXScreenInfo *dmxScreen) |
| int | dmxInputDetachId (int id) |
| DMXInputInfo * | dmxInputLocateId (int id) |
| static int | dmxInputAttachNew (DMXInputInfo *dmxInput, int *id) |
| static int | dmxInputAttachOld (DMXInputInfo *dmxInput, int *id) |
| int | dmxInputAttachConsole (const char *name, int isCore, int *id) |
| int | dmxInputAttachBackend (int physicalScreen, int isCore, int *id) |
d112 10
a121 9
| DMXLocalInputInfoPtr | dmxLocalCorePointer |
| DMXLocalInputInfoPtr | dmxLocalCoreKeyboard |
| static DMXLocalInputInfoRec | DMXDummyMou |
| static DMXLocalInputInfoRec | DMXDummyKbd |
| static DMXLocalInputInfoRec | DMXBackendMou |
| static DMXLocalInputInfoRec | DMXBackendKbd |
| static DMXLocalInputInfoRec | DMXConsoleMou |
| static DMXLocalInputInfoRec | DMXConsoleKbd |
| static DMXLocalInputInfoRec | DMXLocalDevices [] |
d123 3
a125 3
Detailed Description
This file provides generic input support. Functions here set up input and lead to the calling of low-level device drivers for input.
Define Documentation
d131 1
a131 1
#define DMX_WINDOW_DEBUG 0 |
d144 1
a144 1
#define LEN 32 |
d162 2
a163 2
DMXLocalInputInfoPtr |
dmxLocal, |
d168 2
a169 2
PtrCtrl * |
ctrl |
d174 1
a174 1
| [static] |
d193 2
a194 2
DMXLocalInputInfoPtr |
dmxLocal, |
d199 2
a200 2
int |
percent |
d205 1
a205 1
| [static] |
d224 2
a225 2
DMXLocalInputInfoPtr |
dmxLocal, |
d230 2
a231 2
KeybdCtrl * |
ctrl |
d236 1
a236 1
| [static] |
d255 2
a256 2
int |
volume, |
d261 2
a262 2
int |
pitch, |
d267 2
a268 2
int |
duration |
d273 1
a273 1
| |
d288 3
a290 2
DMXLocalInputInfoPtr |
dmxLocal | ) |
d310 2
a311 2
int |
volume, |
d316 2
a317 2
DeviceIntPtr |
pDev, |
d322 2
a323 2
pointer |
arg, |
d328 2
a329 2
int |
something |
d334 1
a334 1
| [static] |
d351 2
a352 2
pointer |
blockData, |
d357 2
a358 2
OSTimePtr |
pTimeout, |
d363 2
a364 2
pointer |
pReadMask |
d369 1
a369 1
| [static] |
d388 2
a389 2
DeviceIntPtr |
pDevice, |
d394 2
a395 2
PtrCtrl * |
ctrl |
d400 1
a400 1
| |
d407 1
a407 1
References _dmxChangePointerControl(), _DMXInputInfo::detached, _DMXInputInfo::devs, dmxInputs, dmxNumInputs, GETDMXLOCALFROMPDEVICE, _DMXInputInfo::numDevs, and _DMXLocalInputInfo::sendsCore.
d420 3
a422 2
DMXInputInfo * |
dmxInput | ) |
d442 2
a443 2
DeviceIntPtr |
pDevice, |
d448 2
a449 2
int |
what |
d454 1
a454 1
| [static] |
d460 1
a460 1
References _DMXLocalInitInfo::belFeedbackClass, _DMXLocalInitInfo::buttonClass, dmxBell(), dmxChangePointerControl(), dmxConfigGetXkbLayout(), dmxConfigGetXkbModel(), dmxConfigGetXkbOptions(), dmxConfigGetXkbRules(), dmxConfigGetXkbVariant(), dmxKbdCtrl(), dmxKeyboardOn(), dmxLog(), dmxPointerGetMotionBufferSize(), dmxSigioRegister(), dmxSigioUnregister(), dmxWarning, _DMXLocalInitInfo::focusClass, _DMXLocalInitInfo::freemap, GETDMXINPUTFROMPDEVICE, _DMXLocalInitInfo::intFeedbackClass, _DMXLocalInitInfo::keyboard, _DMXLocalInitInfo::keyClass, _DMXLocalInitInfo::keySyms, _DMXLocalInitInfo::ledFeedbackClass, _DMXLocalInitInfo::map, _DMXLocalInitInfo::maxres, _DMXLocalInitInfo::maxval, _DMXLocalInitInfo::minres, _DMXLocalInitInfo::minval, _DMXLocalInitInfo::numAbsAxes, _DMXLocalInitInfo::numButtons, _DMXLocalInitInfo::numRelAxes, _DMXLocalInitInfo::proximityClass, _DMXLocalInitInfo::ptrFeedbackClass, _DMXLocalInitInfo::res, _DMXLocalInitInfo::strFeedbackClass, _DMXLocalInitInfo::valuatorClass, and _DMXLocalInitInfo::xkb.
d473 2
a474 2
int |
physicalScreen, |
d479 2
a480 2
int |
isCore, |
d485 2
a486 2
int * |
id |
d491 1
a491 1
| |
d510 2
a511 2
const char * |
name, |
d516 2
a517 2
int |
isCore, |
d522 2
a523 2
int * |
id |
d528 1
a528 1
| |
d547 2
a548 2
DMXInputInfo * |
dmxInput, |
d553 2
a554 2
int * |
id |
d559 1
a559 1
| [static] |
d578 2
a579 2
DMXInputInfo * |
dmxInput, |
d584 2
a585 2
int * |
id |
d590 1
a590 1
| [static] |
d609 2
a610 2
DMXInputInfo * |
dmxInput, |
d615 2
a616 2
DMXLocalInputInfoPtr |
s |
d621 1
a621 1
| |
d630 1
a630 1
Referenced by dmxInputInit(), and dmxPopulateLocal().
d641 3
a643 2
DMXInputInfo * |
dmxInput | ) |
d662 3
a664 2
DMXScreenInfo * |
dmxScreen | ) |
d685 3
a687 2
int |
id | ) |
d708 2
a709 2
Display * |
dsp, |
d714 2
a715 2
_Xconst char * |
name, |
d720 2
a721 2
_Xconst char * |
reason |
d726 1
a726 1
| |
d743 3
a745 2
DMXInputInfo * |
dmxInput | ) |
d766 3
a768 2
DMXLocalInputInfoRec * |
local | ) |
d788 3
a790 2
DMXInputInfo * |
dmxInput | ) |
d798 1
a798 1
References _DMXInputInfo::console, _DMXInputInfo::core, _DMXInputInfo::detached, _DMXInputInfo::devs, DMX_LOCAL_KEYBOARD, DMX_LOCAL_MOUSE, dmxAddDevice(), dmxArgC(), dmxArgFree(), dmxArgParse(), dmxArgV(), dmxBlockHandler(), dmxFatal, dmxInputCopyLocal(), dmxInputScanForExtensions(), dmxLog(), dmxLogInput(), dmxNumScreens, dmxPopulateLocal(), dmxProcessInputEvents(), dmxPropertySameDisplay(), dmxScreens, dmxUpdateWindowInformation(), dmxWakeupHandler(), dmxWarning, _DMXInputInfo::geometry, _DMXInputInfo::inputIdx, _DMXLocalInputInfo::isCore, _DMXInputInfo::keycodes, _DMXInputInfo::name, _DMXInputInfo::numDevs, _DMXLocalInputInfo::pDevice, _DMXInputInfo::processInputEvents, _DMXInputInfo::scrnIdx, _DMXInputInfo::symbols, _DMXLocalInputInfo::type, _DMXInputInfo::updateWindowInfo, and _DMXInputInfo::windows.
d811 3
a813 2
DMXInputInfo * |
dmxInput | ) |
d834 3
a836 2
int |
id | ) |
d856 3
a858 2
void |
| ) |
d879 3
a881 2
DMXInputInfo * |
dmxInput | ) |
d902 2
a903 2
DMXInputInfo * |
dmxInput, |
d908 2
a909 2
int |
doXI |
d914 1
a914 1
| [static] |
d920 1
a920 1
References _DMXLocalInputInfo::deviceId, _DMXLocalInputInfo::deviceName, _DMXInputInfo::devs, display, DMX_LOCAL_KEYBOARD, DMX_LOCAL_MOUSE, dmxInputExtensionErrorHandler(), dmxLogInput(), _DMXInputInfo::name, _DMXInputInfo::numDevs, and _DMXLocalInputInfo::type.
d933 2
a934 2
DeviceIntPtr |
pDevice, |
d939 2
a940 2
KeybdCtrl * |
ctrl |
d945 1
a945 1
| [static] |
d962 2
a963 2
int |
percent, |
d968 2
a969 2
DeviceIntPtr |
pDevice, |
d974 2
a975 2
pointer |
ctrl, |
d980 2
a981 2
int |
unknown |
d986 1
a986 1
| |
d993 1
a993 1
References _dmxKeyboardBellProc(), _DMXInputInfo::detached, _DMXInputInfo::devs, dmxInputs, dmxNumInputs, GETDMXLOCALFROMPDEVICE, _DMXInputInfo::numDevs, and _DMXLocalInputInfo::sendsCore.
d1006 3
a1008 2
XkbComponentNamesPtr |
names | ) |
d1026 2
a1027 2
DeviceIntPtr |
pDevice, |
d1032 2
a1033 2
KeybdCtrl * |
ctrl |
d1038 1
a1038 1
| |
d1045 1
a1045 1
References _dmxKeyboardKbdCtrlProc(), _DMXInputInfo::detached, _DMXInputInfo::devs, dmxInputs, dmxNumInputs, GETDMXLOCALFROMPDEVICE, _DMXInputInfo::numDevs, and _DMXLocalInputInfo::sendsCore.
d1058 2
a1059 2
DeviceIntPtr |
pDevice, |
d1064 2
a1065 2
DMXLocalInitInfo * |
info |
d1070 1
a1070 1
| [static] |
d1076 1
a1076 1
References dmxConfigGetXkbLayout(), dmxConfigGetXkbModel(), dmxConfigGetXkbOptions(), dmxConfigGetXkbRules(), dmxConfigGetXkbVariant(), dmxKeyboardBellProc(), dmxKeyboardFreeNames(), dmxKeyboardKbdCtrlProc(), dmxLogInput(), dmxLogInputCont(), _DMXLocalInitInfo::force, _DMXLocalInitInfo::freenames, GETDMXINPUTFROMPDEVICE, and _DMXLocalInitInfo::names.
d1089 3
a1091 2
const char * |
name | ) |
d1111 3
a1113 2
DMXLocalInputInfoPtr |
dmxLocal | ) |
d1133 2
a1134 2
DMXInputInfo * |
dmxInput, |
d1139 2
a1140 2
dmxArg |
a |
d1145 1
a1145 1
| [static] |
d1164 3
a1166 2
DMXInputInfo * |
dmxInput | ) |
a1174 2
Referenced by dmxInputInit().
d1184 3
a1186 2
pointer |
p | ) |
d1206 2
a1207 2
DMXInputInfo * |
dmxInput, |
d1212 2
a1213 2
DMXUpdateType |
type, |
d1218 2
a1219 2
WindowPtr |
pWindow |
d1224 1
a1224 1
| [static] |
a1231 2
Referenced by dmxInputInit().
d1241 2
a1242 2
pointer |
blockData, |
d1247 2
a1248 2
int |
result, |
d1253 2
a1254 2
pointer |
pReadMask |
d1259 1
a1259 1
| [static] |
d1283 1
a1283 1
"backend-kbd", DMX_LOCAL_KEYBOARD, DMX_LOCAL_TYPE_BACKEND,
d1285 3
a1287 3
dmxCommonCopyPrivate, NULL,
dmxBackendInit, NULL, NULL, dmxBackendKbdGetInfo,
dmxCommonKbdOn, dmxCommonKbdOff, NULL,
d1290 1
a1290 1
NULL, dmxCommonKbdCtrl, dmxCommonKbdBell
d1306 4
a1309 4
"backend-mou", DMX_LOCAL_MOUSE, DMX_LOCAL_TYPE_BACKEND, 2,
dmxBackendCreatePrivate, dmxBackendDestroyPrivate,
dmxBackendInit, NULL, dmxBackendLateReInit, dmxBackendMouGetInfo,
dmxCommonMouOn, dmxCommonMouOff, dmxBackendUpdatePosition,
d1311 1
a1311 1
dmxBackendCollectEvents, dmxBackendProcessInput, dmxBackendFunctions, NULL,
d1317 19
d1347 1
a1347 1
"console-kbd", DMX_LOCAL_KEYBOARD, DMX_LOCAL_TYPE_CONSOLE,
d1349 3
a1351 3
dmxCommonCopyPrivate, NULL,
dmxConsoleInit, dmxConsoleReInit, NULL, dmxConsoleKbdGetInfo,
dmxCommonKbdOn, dmxCommonKbdOff, NULL,
d1354 1
a1354 1
NULL, dmxCommonKbdCtrl, dmxCommonKbdBell
d1370 4
a1373 4
"console-mou", DMX_LOCAL_MOUSE, DMX_LOCAL_TYPE_CONSOLE, 2,
dmxConsoleCreatePrivate, dmxConsoleDestroyPrivate,
dmxConsoleInit, dmxConsoleReInit, NULL, dmxConsoleMouGetInfo,
dmxCommonMouOn, dmxCommonMouOff, dmxConsoleUpdatePosition,
d1375 1
a1375 1
dmxConsoleCollectEvents, NULL, dmxConsoleFunctions, dmxConsoleUpdateInfo,
d1392 1
a1392 1
"dummy-kbd", DMX_LOCAL_KEYBOARD, DMX_LOCAL_TYPE_LOCAL, 1,
d1409 1
a1409 1
"dummy-mou", DMX_LOCAL_MOUSE, DMX_LOCAL_TYPE_LOCAL, 1,
a1456 4